1
0
mirror of https://github.com/godotengine/godot.git synced 2026-01-05 19:31:35 +00:00

Unify descriptions of vector methods

* is_equal_approx
* normalize
* length_squared
* posmod
* posmodv

(cherry picked from commit 6cd8e706fa)
This commit is contained in:
Haoyu Qiu
2023-04-14 14:39:35 +08:00
committed by Yuri Sizov
parent 12da78cf30
commit c6297f46fe
4 changed files with 11 additions and 9 deletions

View File

@@ -214,7 +214,7 @@
<return type="bool" />
<param index="0" name="to" type="Vector2" />
<description>
Returns [code]true[/code] if this vector and [code]v[/code] are approximately equal, by running [method @GlobalScope.is_equal_approx] on each component.
Returns [code]true[/code] if this vector and [param to] are approximately equal, by running [method @GlobalScope.is_equal_approx] on each component.
</description>
</method>
<method name="is_finite" qualifiers="const">
@@ -288,7 +288,7 @@
<return type="Vector2" />
<description>
Returns the result of scaling the vector to unit length. Equivalent to [code]v / v.length()[/code]. See also [method is_normalized].
[b]Note:[/b] This function may return incorrect values if the initial vector length is near zero.
[b]Note:[/b] This function may return incorrect values if the input vector length is near zero.
</description>
</method>
<method name="orthogonal" qualifiers="const">