Merge pull request #100204 from KoBeWi/nananananan

Clarify `limit_length()` for infinite vectors
This commit is contained in:
Thaddeus Crews 2024-12-11 17:36:03 -06:00
commit dee79d55fe
No known key found for this signature in database
GPG key ID: 62181B86FE9E5D84
2 changed files with 2 additions and 2 deletions

View file

@ -270,7 +270,7 @@
<return type="Vector2" />
<param index="0" name="length" type="float" default="1.0" />
<description>
Returns the vector with a maximum length by limiting its length to [param length].
Returns the vector with a maximum length by limiting its length to [param length]. If the vector is non-finite, the result is undefined.
</description>
</method>
<method name="max" qualifiers="const">

View file

@ -239,7 +239,7 @@
<return type="Vector3" />
<param index="0" name="length" type="float" default="1.0" />
<description>
Returns the vector with a maximum length by limiting its length to [param length].
Returns the vector with a maximum length by limiting its length to [param length]. If the vector is non-finite, the result is undefined.
</description>
</method>
<method name="max" qualifiers="const">