2
0
Эх сурвалжийг харах

Merge pull request #74860 from lawnjelly/normalize_classref

Improve Vector2 / 3 / 4 normalized() classref.
Yuri Sizov 2 жил өмнө
parent
commit
7470514ae2

+ 1 - 0
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">

+ 1 - 0
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">

+ 1 - 0
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">