Android.Opengl.Matrix.MultiplyMV Method
Multiplies a 4 element vector by a 4x4 matrix and stores the result in a 4-element column vector.

Syntax

[Android.Runtime.Register("multiplyMV", "([FI[FI[FI)V", "")]
public static void MultiplyMV (float[] resultVec, int resultVecOffset, float[] lhsMat, int lhsMatOffset, float[] rhsVec, int rhsVecOffset)

Parameters

resultVec
The float array that holds the result vector.
resultVecOffset
The offset into the result array where the result vector is stored.
lhsMat
The float array that holds the left-hand-side matrix.
lhsMatOffset
The offset into the lhs array where the lhs is stored
rhsVec
The float array that holds the right-hand-side vector.
rhsVecOffset
The offset into the rhs vector where the rhs vector is stored.

Exceptions

TypeReason
Java.Lang.IllegalArgumentExceptionif resultVec, lhsMat, or rhsVec are null, or if resultVecOffset + 4 > resultVec.length or lhsMatOffset + 16 > lhsMat.length or rhsVecOffset + 4 > rhsVec.length.

Remarks

Multiplies a 4 element vector by a 4x4 matrix and stores the result in a 4-element column vector. In matrix notation: result = lhs x rhs

The same float array may be passed for resultVec, lhsMat, and/or rhsVec. However, the resultVec element values are undefined if the resultVec elements overlap either the lhsMat or rhsVec 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