summaryrefslogtreecommitdiff
path: root/doc/classes
diff options
context:
space:
mode:
authorAaron Franke <arnfranke@yahoo.com>2018-07-31 18:34:20 -0500
committerAaron Franke <arnfranke@yahoo.com>2019-04-25 13:20:29 -0400
commit7f7d97f536ebbf5aa2e9335da728aa2056710297 (patch)
tree3177a7af5947ecbd2c43d41694c51a939492f2bc /doc/classes
parentb2e1c9c276cd833b642dfbaea3dde36d490b014e (diff)
[Core] Expose approximate equality methods to GDScript
Diffstat (limited to 'doc/classes')
-rw-r--r--doc/classes/@GDScript.xml20
1 files changed, 20 insertions, 0 deletions
diff --git a/doc/classes/@GDScript.xml b/doc/classes/@GDScript.xml
index 29bf9b62ce..22834a4c81 100644
--- a/doc/classes/@GDScript.xml
+++ b/doc/classes/@GDScript.xml
@@ -498,6 +498,17 @@
[/codeblock]
</description>
</method>
+ <method name="is_equal_approx">
+ <return type="bool">
+ </return>
+ <argument index="0" name="a" type="float">
+ </argument>
+ <argument index="1" name="b" type="float">
+ </argument>
+ <description>
+ Returns True/False whether [code]a[/code] and [code]b[/code] are approximately equal to each other.
+ </description>
+ </method>
<method name="is_inf">
<return type="bool">
</return>
@@ -525,6 +536,15 @@
Returns whether [code]s[/code] is a NaN (Not-A-Number) value.
</description>
</method>
+ <method name="is_zero_approx">
+ <return type="bool">
+ </return>
+ <argument index="0" name="s" type="float">
+ </argument>
+ <description>
+ Returns True/False whether [code]s[/code] is zero or almost zero.
+ </description>
+ </method>
<method name="len">
<return type="int">
</return>