From ee8661158c545bac2d98c34708518146cb5b60e4 Mon Sep 17 00:00:00 2001 From: Hugo Locurcio Date: Mon, 15 Mar 2021 17:25:22 +0100 Subject: [PATCH] Document the valid input range for `acos()` and `atan()` (cherry picked from commit d359e159da9170417a65bbd4a5b7b4e64a01bded) --- modules/gdscript/doc_classes/@GDScript.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/gdscript/doc_classes/@GDScript.xml b/modules/gdscript/doc_classes/@GDScript.xml index 8811d29d0e4..b9e5d2afc76 100644 --- a/modules/gdscript/doc_classes/@GDScript.xml +++ b/modules/gdscript/doc_classes/@GDScript.xml @@ -64,7 +64,7 @@ - Returns the arc cosine of [code]s[/code] in radians. Use to get the angle of cosine [code]s[/code]. + Returns the arc cosine of [code]s[/code] in radians. Use to get the angle of cosine [code]s[/code]. [code]s[/code] must be between [code]-1.0[/code] and [code]1.0[/code] (inclusive), otherwise, [method acos] will return [constant NAN]. [codeblock] # c is 0.523599 or 30 degrees if converted with rad2deg(s) c = acos(0.866025) @@ -77,7 +77,7 @@ - Returns the arc sine of [code]s[/code] in radians. Use to get the angle of sine [code]s[/code]. + Returns the arc sine of [code]s[/code] in radians. Use to get the angle of sine [code]s[/code]. [code]s[/code] must be between [code]-1.0[/code] and [code]1.0[/code] (inclusive), otherwise, [method asin] will return [constant NAN]. [codeblock] # s is 0.523599 or 30 degrees if converted with rad2deg(s) s = asin(0.5)