refactor(raymath): parameter typo

This commit is contained in:
anasrar 2024-10-23 01:44:47 +13:00
parent da901b89c1
commit f9b5993843
No known key found for this signature in database
GPG key ID: 0C9C19C0B0591486

View file

@ -1794,11 +1794,11 @@ func QuaternionEquals(p, q Quaternion) bool {
}
// 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.
translational.X = mat.M12
translational.Y = mat.M13
translational.Z = mat.M14
translation.X = mat.M12
translation.Y = mat.M13
translation.Z = mat.M14
// Extract upper-left for determinant computation
a := mat.M0