summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2024-06-04 10:10:13 +0200
committerRémi Verschelde <rverschelde@gmail.com>2024-06-04 10:10:13 +0200
commit2f26842d866447cc55d5a42a35630427b2768b12 (patch)
tree98a7c26010c9e863c9174e267aa0b9f6c782d05e
parent62b15238e52bee84863a89d760a607d3e35414e8 (diff)
parent0560e890ca5c2e4f4dea7589eb2c64e8d3472fdc (diff)
downloadredot-engine-2f26842d866447cc55d5a42a35630427b2768b12.tar.gz
Merge pull request #92707 from GrahameGW/vector_normalized_docs
Clarify the results of `VectorN.normalized()` in the docs
-rw-r--r--doc/classes/Vector2.xml2
-rw-r--r--doc/classes/Vector3.xml2
-rw-r--r--doc/classes/Vector4.xml2
3 files changed, 3 insertions, 3 deletions
diff --git a/doc/classes/Vector2.xml b/doc/classes/Vector2.xml
index 5fadfd0d95..a7df54e880 100644
--- a/doc/classes/Vector2.xml
+++ b/doc/classes/Vector2.xml
@@ -324,7 +324,7 @@
<method name="normalized" qualifiers="const">
<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].
+ Returns the result of scaling the vector to unit length. Equivalent to [code]v / v.length()[/code]. Returns [code](0, 0)[/code] if [code]v.length() == 0[/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>
diff --git a/doc/classes/Vector3.xml b/doc/classes/Vector3.xml
index 387359a97f..1692ba3ece 100644
--- a/doc/classes/Vector3.xml
+++ b/doc/classes/Vector3.xml
@@ -293,7 +293,7 @@
<method name="normalized" qualifiers="const">
<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].
+ Returns the result of scaling the vector to unit length. Equivalent to [code]v / v.length()[/code]. Returns [code](0, 0, 0)[/code] if [code]v.length() == 0[/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>
diff --git a/doc/classes/Vector4.xml b/doc/classes/Vector4.xml
index 87af370462..f70c59fbef 100644
--- a/doc/classes/Vector4.xml
+++ b/doc/classes/Vector4.xml
@@ -227,7 +227,7 @@
<method name="normalized" qualifiers="const">
<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].
+ Returns the result of scaling the vector to unit length. Equivalent to [code]v / v.length()[/code]. Returns [code](0, 0, 0, 0)[/code] if [code]v.length() == 0[/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>