Skip to content

Commit

Permalink
refactor(raymath): parameter typo
Browse files Browse the repository at this point in the history
  • Loading branch information
anasrar committed Oct 22, 2024
1 parent da901b8 commit f9b5993
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions raylib/raymath.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f9b5993

Please sign in to comment.