[]
        
(Showing Draft Content)

C1.Util.DX.Matrix4x4.RotationX

RotationX Method

RotationX(float)

Creates a matrix that rotates around the x-axis.

Declaration
public static Matrix4x4 RotationX(float radians)
Parameters
Type Name Description
float radians

Angle of rotation in radians. Angles are measured clockwise when looking along the rotation axis toward the origin.

Returns
Type Description
Matrix4x4

The created rotation matrix.

RotationX(float, Vector3)

Creates a matrix for rotating points around the X axis from a center point.

Declaration
public static Matrix4x4 RotationX(float radians, Vector3 centerPoint)
Parameters
Type Name Description
float radians

The amount, in radians, by which to rotate around the X axis.

Vector3 centerPoint

The center point.

Returns
Type Description
Matrix4x4

The rotation matrix.