Merge pull request #60769 from Mickeon/patch-1

This commit is contained in:
Rémi Verschelde 2022-05-05 14:14:28 +02:00 committed by GitHub
commit b05fbb21e5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 6 deletions

View File

@ -141,14 +141,14 @@
<return type="Transform2D" /> <return type="Transform2D" />
<argument index="0" name="phi" type="float" /> <argument index="0" name="phi" type="float" />
<description> <description>
Rotates the transform by the given angle (in radians), using matrix multiplication. Returns a copy of the transform rotated by the given [code]phi[/code] angle (in radians), using matrix multiplication.
</description> </description>
</method> </method>
<method name="scaled" qualifiers="const"> <method name="scaled" qualifiers="const">
<return type="Transform2D" /> <return type="Transform2D" />
<argument index="0" name="scale" type="Vector2" /> <argument index="0" name="scale" type="Vector2" />
<description> <description>
Scales the transform by the given scale factor, using matrix multiplication. Returns a copy of the transform scaled by the given [code]scale[/code] factor, using matrix multiplication.
</description> </description>
</method> </method>
<method name="set_rotation"> <method name="set_rotation">
@ -176,7 +176,7 @@
<return type="Transform2D" /> <return type="Transform2D" />
<argument index="0" name="offset" type="Vector2" /> <argument index="0" name="offset" type="Vector2" />
<description> <description>
Translates the transform by the given offset, relative to the transform's basis vectors. Returns a copy of the transform translated by the given [code]offset[/code], relative to the transform's basis vectors.
Unlike [method rotated] and [method scaled], this does not use matrix multiplication. Unlike [method rotated] and [method scaled], this does not use matrix multiplication.
</description> </description>
</method> </method>

View File

@ -96,14 +96,14 @@
<argument index="0" name="axis" type="Vector3" /> <argument index="0" name="axis" type="Vector3" />
<argument index="1" name="phi" type="float" /> <argument index="1" name="phi" type="float" />
<description> <description>
Rotates the transform around the given axis by the given angle (in radians), using matrix multiplication. The axis must be a normalized vector. Returns a copy of the transform rotated around the given [code]axis[/code] by the given [code]phi[/code] angle (in radians), using matrix multiplication. The [code]axis[/code] must be a normalized vector.
</description> </description>
</method> </method>
<method name="scaled" qualifiers="const"> <method name="scaled" qualifiers="const">
<return type="Transform3D" /> <return type="Transform3D" />
<argument index="0" name="scale" type="Vector3" /> <argument index="0" name="scale" type="Vector3" />
<description> <description>
Scales basis and origin of the transform by the given scale factor, using matrix multiplication. Returns a copy of the transform with its basis and origin scaled by the given [code]scale[/code] factor, using matrix multiplication.
</description> </description>
</method> </method>
<method name="sphere_interpolate_with" qualifiers="const"> <method name="sphere_interpolate_with" qualifiers="const">
@ -118,7 +118,7 @@
<return type="Transform3D" /> <return type="Transform3D" />
<argument index="0" name="offset" type="Vector3" /> <argument index="0" name="offset" type="Vector3" />
<description> <description>
Translates the transform by the given offset, relative to the transform's basis vectors. Returns a copy of the transform translated by the given [code]offset[/code], relative to the transform's basis vectors.
Unlike [method rotated] and [method scaled], this does not use matrix multiplication. Unlike [method rotated] and [method scaled], this does not use matrix multiplication.
</description> </description>
</method> </method>