diff options
author | lawnjelly <lawnjelly@gmail.com> | 2023-03-13 12:48:05 +0000 |
---|---|---|
committer | lawnjelly <lawnjelly@gmail.com> | 2023-03-16 11:20:30 +0000 |
commit | cca01afd82bd6e7b3e852a66ca459f5d61022585 (patch) | |
tree | 3a6c973cec8c86b240f0dcc37f402d65f7c9b01b /doc | |
parent | ea31842b72974dd663e908872213979f47e66f0d (diff) | |
download | redot-engine-cca01afd82bd6e7b3e852a66ca459f5d61022585.tar.gz |
Improve Vector2 / 3 / 4 normalized() classref.
Mention that the results will be unreliable with initial vector near zero.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/classes/Vector2.xml | 1 | ||||
-rw-r--r-- | doc/classes/Vector3.xml | 1 | ||||
-rw-r--r-- | doc/classes/Vector4.xml | 1 |
3 files changed, 3 insertions, 0 deletions
diff --git a/doc/classes/Vector2.xml b/doc/classes/Vector2.xml index 126a68b161..7be743fb91 100644 --- a/doc/classes/Vector2.xml +++ b/doc/classes/Vector2.xml @@ -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"> diff --git a/doc/classes/Vector3.xml b/doc/classes/Vector3.xml index f1400b9900..79d25b8091 100644 --- a/doc/classes/Vector3.xml +++ b/doc/classes/Vector3.xml @@ -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"> diff --git a/doc/classes/Vector4.xml b/doc/classes/Vector4.xml index 9f2ff338c1..74ae115421 100644 --- a/doc/classes/Vector4.xml +++ b/doc/classes/Vector4.xml @@ -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"> |