Skip to content

Commit

Permalink
Correct matrix operation order
Browse files Browse the repository at this point in the history
  • Loading branch information
Hugh Sanderson committed Nov 13, 2024
1 parent 67cbddc commit 041d07c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/nme/geom/Matrix3D.hx
Original file line number Diff line number Diff line change
Expand Up @@ -515,10 +515,10 @@ class Matrix3D
{
var x:Float = v.x, y:Float = v.y, z:Float = v.z;
return new Vector3D(
x * rawData[0] + y * rawData[1] + z * rawData[2],
x * rawData[4] + y * rawData[5] + z * rawData[6],
x * rawData[8] + y * rawData[9] + z * rawData[10],
0);
x * rawData[0] + y * rawData[4] + z * rawData[8],
x * rawData[1] + y * rawData[5] + z * rawData[9],
x * rawData[2] + y * rawData[6] + z * rawData[10],
1);
}


Expand Down

0 comments on commit 041d07c

Please sign in to comment.