다음을 통해 공유


Matrix.TranslateM Method

Definition

Overloads

TranslateM(Single[], Int32, Single[], Int32, Single, Single, Single)

Translates matrix m by x, y, and z, putting the result in tm.

TranslateM(Single[], Int32, Single, Single, Single)

Translates matrix m by x, y, and z in place.

TranslateM(Single[], Int32, Single[], Int32, Single, Single, Single)

Translates matrix m by x, y, and z, putting the result in tm.

[Android.Runtime.Register("translateM", "([FI[FIFFF)V", "")]
public static void TranslateM (float[]? tm, int tmOffset, float[]? m, int mOffset, float x, float y, float z);
[<Android.Runtime.Register("translateM", "([FI[FIFFF)V", "")>]
static member TranslateM : single[] * int * single[] * int * single * single * single -> unit

Parameters

tm
Single[]

returns the result

tmOffset
Int32

index into sm where the result matrix starts

m
Single[]

source matrix

mOffset
Int32

index into m where the source matrix starts

x
Single

translation factor x

y
Single

translation factor y

z
Single

translation factor z

Attributes

Remarks

Translates matrix m by x, y, and z, putting the result in tm.

m and tm must not overlap.

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

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

TranslateM(Single[], Int32, Single, Single, Single)

Translates matrix m by x, y, and z in place.

[Android.Runtime.Register("translateM", "([FIFFF)V", "")]
public static void TranslateM (float[]? m, int mOffset, float x, float y, float z);
[<Android.Runtime.Register("translateM", "([FIFFF)V", "")>]
static member TranslateM : single[] * int * single * single * single -> unit

Parameters

m
Single[]

matrix

mOffset
Int32

index into m where the matrix starts

x
Single

translation factor x

y
Single

translation factor y

z
Single

translation factor z

Attributes

Remarks

Translates matrix m by x, y, and z in place.

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

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