Skip to content

Commit dee79d5

Browse files
committed
Merge pull request #100204 from KoBeWi/nananananan
Clarify `limit_length()` for infinite vectors
2 parents 08b5bf3 + 3aebcaf commit dee79d5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

doc/classes/Vector2.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@
270270
<return type="Vector2" />
271271
<param index="0" name="length" type="float" default="1.0" />
272272
<description>
273-
Returns the vector with a maximum length by limiting its length to [param length].
273+
Returns the vector with a maximum length by limiting its length to [param length]. If the vector is non-finite, the result is undefined.
274274
</description>
275275
</method>
276276
<method name="max" qualifiers="const">

doc/classes/Vector3.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@
239239
<return type="Vector3" />
240240
<param index="0" name="length" type="float" default="1.0" />
241241
<description>
242-
Returns the vector with a maximum length by limiting its length to [param length].
242+
Returns the vector with a maximum length by limiting its length to [param length]. If the vector is non-finite, the result is undefined.
243243
</description>
244244
</method>
245245
<method name="max" qualifiers="const">

0 commit comments

Comments
 (0)