refactor(raymath): parameter typo
This commit is contained in:
parent
da901b89c1
commit
f9b5993843
1 changed files with 4 additions and 4 deletions
|
@ -1794,11 +1794,11 @@ func QuaternionEquals(p, q Quaternion) bool {
|
||||||
}
|
}
|
||||||
|
|
||||||
// MatrixDecompose - Decompose a transformation matrix into its rotational, translational and scaling components
|
// MatrixDecompose - Decompose a transformation matrix into its rotational, translational and scaling components
|
||||||
func MatrixDecompose(mat Matrix, translational *Vector3, rotation *Quaternion, scale *Vector3) {
|
func MatrixDecompose(mat Matrix, translation *Vector3, rotation *Quaternion, scale *Vector3) {
|
||||||
// Extract translation.
|
// Extract translation.
|
||||||
translational.X = mat.M12
|
translation.X = mat.M12
|
||||||
translational.Y = mat.M13
|
translation.Y = mat.M13
|
||||||
translational.Z = mat.M14
|
translation.Z = mat.M14
|
||||||
|
|
||||||
// Extract upper-left for determinant computation
|
// Extract upper-left for determinant computation
|
||||||
a := mat.M0
|
a := mat.M0
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue