Sdílet prostřednictvím


Matrix44.Rotate(Single, Single, Single, Single) Method

Definition

Applies a rotation around a given axis, then returns self.

[Android.Runtime.Register("rotate", "(FFFF)Landroid/graphics/Matrix44;", "GetRotate_FFFFHandler", ApiSince=35)]
public virtual Android.Graphics.Matrix44 Rotate (float deg, float xComp, float yComp, float zComp);
[<Android.Runtime.Register("rotate", "(FFFF)Landroid/graphics/Matrix44;", "GetRotate_FFFFHandler", ApiSince=35)>]
abstract member Rotate : single * single * single * single -> Android.Graphics.Matrix44
override this.Rotate : single * single * single * single -> Android.Graphics.Matrix44

Parameters

deg
Single

Amount in degrees to rotate the matrix about the x-axis

xComp
Single

X component of the rotation axis

yComp
Single

Y component of the rotation axis

zComp
Single

Z component of the rotation axis

Returns

A reference to this Matrix, which can be used to chain Matrix operations

Attributes

Remarks

Applies a rotation around a given axis, then returns self. x, y, z represent the axis by which to rotate around. For example, pass in 1, 0, 0 to rotate around the x-axis. The axis provided will be normalized.

Java documentation for android.graphics.Matrix44.rotate(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