1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-04 12:00:25 +00:00

Fix Basis.determinant() doc: uniform scale determinant is scale^3, not scale^2

Corrected a documentation mistake in Basis.determinant(). For a uniform scale basis, the determinant is scale^3, not scale^2.
This commit is contained in:
Roman Goldman
2025-09-11 18:45:02 +03:00
committed by GitHub
parent 2dd26a027a
commit 6379874180

View File

@@ -74,7 +74,7 @@
Returns the [url=https://en.wikipedia.org/wiki/Determinant]determinant[/url] of this basis's matrix. For advanced math, this number can be used to determine a few attributes: Returns the [url=https://en.wikipedia.org/wiki/Determinant]determinant[/url] of this basis's matrix. For advanced math, this number can be used to determine a few attributes:
- If the determinant is exactly [code]0.0[/code], the basis is not invertible (see [method inverse]). - If the determinant is exactly [code]0.0[/code], the basis is not invertible (see [method inverse]).
- If the determinant is a negative number, the basis represents a negative scale. - If the determinant is a negative number, the basis represents a negative scale.
[b]Note:[/b] If the basis's scale is the same for every axis, its determinant is always that scale by the power of 2. [b]Note:[/b] If the basis's scale is the same for every axis, its determinant is always that scale by the power of 3.
</description> </description>
</method> </method>
<method name="from_euler" qualifiers="static"> <method name="from_euler" qualifiers="static">