[]
        
(Showing Draft Content)

C1.Util.DX.Matrix4x4.RotationXRef

RotationXRef Method

RotationXRef(out Matrix4x4, float)

Creates a matrix that rotates around the x-axis.

Declaration
public static void RotationXRef(out Matrix4x4 result, float radians)
Public Shared Sub RotationXRef(ByRef result As Matrix4x4, radians As Single)
Parameters
Type Name Description
Matrix4x4 result

When the method completes, contains the created rotation matrix.

float radians

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

RotationXRef(out Matrix4x4, float, ref Vector3)

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

Declaration
public static void RotationXRef(out Matrix4x4 result, float radians, ref Vector3 centerPoint)
Public Shared Sub RotationXRef(ByRef result As Matrix4x4, radians As Single, ByRef centerPoint As Vector3)
Parameters
Type Name Description
Matrix4x4 result

When the method completes, contains the created rotation matrix.

float radians

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

Vector3 centerPoint

The center point.