mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Clarify docs for operators performing xform_inv
This commit is contained in:
parent
3bc1c9b5e0
commit
a8c62c5928
10 changed files with 32 additions and 13 deletions
|
|
@ -237,7 +237,9 @@
|
|||
<return type="Rect2" />
|
||||
<param index="0" name="right" type="Transform2D" />
|
||||
<description>
|
||||
Inversely transforms (multiplies) the [Rect2] by the given [Transform2D] transformation matrix.
|
||||
Inversely transforms (multiplies) the [Rect2] by the given [Transform2D] transformation matrix, under the assumption that the transformation basis is orthonormal (i.e. rotation/reflection is fine, scaling/skew is not).
|
||||
[code]rect * transform[/code] is equivalent to [code]transform.inverse() * rect[/code]. See [method Transform2D.inverse].
|
||||
For transforming by inverse of an affine transformation (e.g. with scaling) [code]transform.affine_inverse() * rect[/code] can be used instead. See [method Transform2D.affine_inverse].
|
||||
</description>
|
||||
</operator>
|
||||
<operator name="operator ==">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue