- result
- The float array that holds the result.
- resultOffset
- The offset into the result array where the result is stored.
- lhs
- The float array that holds the left-hand-side matrix.
- lhsOffset
- The offset into the lhs array where the lhs is stored
- rhs
- The float array that holds the right-hand-side matrix.
- rhsOffset
- The offset into the rhs array where the rhs is stored.
Type Reason Java.Lang.IllegalArgumentException if result, lhs, or rhs are null, or if resultOffset + 16 > result.length or lhsOffset + 16 > lhs.length or rhsOffset + 16 > rhs.length.
Multiplies two 4x4 matrices together and stores the result in a third 4x4 matrix. In matrix notation: result = lhs x rhs. Due to the way matrix multiplication works, the result matrix will have the same effect as first multiplying by the rhs matrix, then multiplying by the lhs matrix. This is the opposite of what you might expect.
The same float array may be passed for result, lhs, and/or rhs. However, the result element values are undefined if the result elements overlap either the lhs or rhs elements.