Udostępnij za pośrednictwem


Matrix.MultiplyMV(Single[], Int32, Single[], Int32, Single[], Int32) Method

Definition

Multiplies a 4 element vector by a 4x4 matrix and stores the result in a 4-element column vector.

[Android.Runtime.Register("multiplyMV", "([FI[FI[FI)V", "")]
public static void MultiplyMV (float[]? resultVec, int resultVecOffset, float[]? lhsMat, int lhsMatOffset, float[]? rhsVec, int rhsVecOffset);
[<Android.Runtime.Register("multiplyMV", "([FI[FI[FI)V", "")>]
static member MultiplyMV : single[] * int * single[] * int * single[] * int -> unit

Parameters

resultVec
Single[]

The float array that holds the result vector.

resultVecOffset
Int32

The offset into the result array where the result vector is stored.

lhsMat
Single[]

The float array that holds the left-hand-side matrix.

lhsMatOffset
Int32

The offset into the lhs array where the lhs is stored

rhsVec
Single[]

The float array that holds the right-hand-side vector.

rhsVecOffset
Int32

The offset into the rhs vector where the rhs vector is stored.

Attributes

Exceptions

if 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. This operation is expected to do the correct thing if the result elements overlap with either of the lhs or rhs elements.

Java documentation for android.opengl.Matrix.multiplyMV(float[], int, float[], int, float[], int).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to