Improve Vector2 / 3 / 4 normalized() classref.

Mention that the results will be unreliable with initial vector near zero.
This commit is contained in:
lawnjelly 2023-03-13 12:48:05 +00:00
parent ea31842b72
commit cca01afd82
3 changed files with 3 additions and 0 deletions

View File

@ -288,6 +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.
</description>
</method>
<method name="orthogonal" qualifiers="const">

View File

@ -256,6 +256,7 @@
<return type="Vector3" />
<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 input vector length is near zero.
</description>
</method>
<method name="octahedron_decode" qualifiers="static">

View File

@ -191,6 +191,7 @@
<return type="Vector4" />
<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 input vector length is near zero.
</description>
</method>
<method name="posmod" qualifiers="const">