Partager via


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

Definition

Creates a matrix for rotation by angle a (in degrees) around the axis (x, y, z).

[Android.Runtime.Register("setRotateM", "([FIFFFF)V", "")]
public static void SetRotateM (float[]? rm, int rmOffset, float a, float x, float y, float z);
[<Android.Runtime.Register("setRotateM", "([FIFFFF)V", "")>]
static member SetRotateM : single[] * int * single * single * single * single -> unit

Parameters

rm
Single[]

returns the result

rmOffset
Int32

index into rm where the result matrix starts

a
Single

angle to rotate in degrees

x
Single

X axis component

y
Single

Y axis component

z
Single

Z axis component

Attributes

Remarks

Creates a matrix for rotation by angle a (in degrees) around the axis (x, y, z).

An optimized path will be used for rotation about a major axis (e.g. x=1.0f y=0.0f z=0.0f).

Java documentation for android.opengl.Matrix.setRotateM(float[], int, float, 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