mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-11 17:51:04 +00:00
Document that matrix composition is RTL
This commit is contained in:
parent
06bb45135e
commit
b4dbda3eb7
1 changed files with 4 additions and 1 deletions
|
@ -4277,8 +4277,11 @@ Linear algebra:
|
||||||
* `Matrix4:transform_direction(dir)`:
|
* `Matrix4:transform_direction(dir)`:
|
||||||
* Apply the matrix to a vector representing a direction.
|
* Apply the matrix to a vector representing a direction.
|
||||||
* Ignores the fourth row and column; does not apply the translation (w = 0).
|
* Ignores the fourth row and column; does not apply the translation (w = 0).
|
||||||
* `Matrix4.compose(...)`: Returns the composition of the given matrices.
|
* `Matrix4.compose(...)`: Returns the composition of the given matrices
|
||||||
|
in right-to-left order: `second:compose(first):apply(v)`
|
||||||
|
is equivalent to `second:apply(first:apply(v))`.
|
||||||
If `...` is empty, this is just the identity.
|
If `...` is empty, this is just the identity.
|
||||||
|
`Matrix4:compose()` copies the matrix.
|
||||||
* `Matrix4:determinant()`: Returns the determinant.
|
* `Matrix4:determinant()`: Returns the determinant.
|
||||||
* `Matrix4:invert()`: Returns a newly created inverse, or `nil` if the matrix is (close to being) singular.
|
* `Matrix4:invert()`: Returns a newly created inverse, or `nil` if the matrix is (close to being) singular.
|
||||||
* `Matrix4:transpose()`: Returns a transposed copy of the matrix.
|
* `Matrix4:transpose()`: Returns a transposed copy of the matrix.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue