mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 07:53:26 +00:00
Improve Vector2 / 3 / 4 normalized() classref.
Mention that the results will be unreliable with initial vector near zero.
(cherry picked from commit cca01afd82
)
This commit is contained in:
parent
8e8ecf52cf
commit
c0e5879b41
3 changed files with 3 additions and 0 deletions
|
@ -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">
|
||||
|
|
|
@ -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">
|
||||
|
|
|
@ -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">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue