mirror of
https://github.com/godotengine/godot.git
synced 2026-01-03 18:11:19 +03:00
Add is_zero_approx methods to Vector2, 3, and 4
This commit is contained in:
@@ -141,6 +141,13 @@
|
||||
Returns [code]true[/code] if the vector is normalized, i.e. its length is equal to 1.
|
||||
</description>
|
||||
</method>
|
||||
<method name="is_zero_approx" qualifiers="const">
|
||||
<return type="bool" />
|
||||
<description>
|
||||
Returns [code]true[/code] if this vector's values are approximately zero, by running [method @GlobalScope.is_zero_approx] on each component.
|
||||
This method is faster than using [method is_equal_approx] with one value as a zero vector.
|
||||
</description>
|
||||
</method>
|
||||
<method name="length" qualifiers="const">
|
||||
<return type="float" />
|
||||
<description>
|
||||
|
||||
Reference in New Issue
Block a user