Merge pull request #76323 from aaronfranke/3.x-t2d-basis-det

[3.x] Expose `determinant` in Transform2D, rename internal method
This commit is contained in:
Rémi Verschelde
2023-04-26 12:17:00 +02:00
11 changed files with 32 additions and 9 deletions

View File

@@ -60,6 +60,13 @@
This method does not account for translation (the origin vector).
</description>
</method>
<method name="determinant">
<return type="float" />
<description>
Returns the determinant of the basis matrix. If the basis is uniformly scaled, then its determinant equals the square of the scale factor.
A negative determinant means the basis was flipped, so one part of the scale is negative. A zero determinant means the basis isn't invertible, and is usually considered invalid.
</description>
</method>
<method name="get_origin">
<return type="Vector2" />
<description>