Merge pull request #74860 from lawnjelly/normalize_classref

Improve Vector2 / 3 / 4 normalized() classref.
This commit is contained in:
Yuri Sizov 2023-03-16 12:43:18 +01:00 committed by GitHub
commit 7470514ae2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 0 deletions

View File

@ -288,6 +288,7 @@
<return type="Vector2" /> <return type="Vector2" />
<description> <description>
Returns the result of scaling the vector to unit length. Equivalent to [code]v / v.length()[/code]. See also [method is_normalized]. 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> </description>
</method> </method>
<method name="orthogonal" qualifiers="const"> <method name="orthogonal" qualifiers="const">

View File

@ -256,6 +256,7 @@
<return type="Vector3" /> <return type="Vector3" />
<description> <description>
Returns the result of scaling the vector to unit length. Equivalent to [code]v / v.length()[/code]. See also [method is_normalized]. 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> </description>
</method> </method>
<method name="octahedron_decode" qualifiers="static"> <method name="octahedron_decode" qualifiers="static">

View File

@ -191,6 +191,7 @@
<return type="Vector4" /> <return type="Vector4" />
<description> <description>
Returns the result of scaling the vector to unit length. Equivalent to [code]v / v.length()[/code]. See also [method is_normalized]. 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> </description>
</method> </method>
<method name="posmod" qualifiers="const"> <method name="posmod" qualifiers="const">