Android.Opengl.Matrix.MultiplyMM Method
Multiplies two 4x4 matrices together and stores the result in a third 4x4 matrix.

Syntax

[Android.Runtime.Register("multiplyMM", "([FI[FI[FI)V", "")]
public static void MultiplyMM (float[] result, int resultOffset, float[] lhs, int lhsOffset, float[] rhs, int rhsOffset)

Parameters

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.

Exceptions

TypeReason
Java.Lang.IllegalArgumentExceptionif result, lhs, or rhs are null, or if resultOffset + 16 > result.length or lhsOffset + 16 > lhs.length or rhsOffset + 16 > rhs.length.

Remarks

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.

[Android Documentation]

Requirements

Namespace: Android.Opengl
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1