Click or drag to resize

MatrixRotationX Method (Double, Vector3)

Form a rotation Matrix rotating about the X-Axis, offset from the origin

Namespace:  Microsoft.DirectX
Assembly:  Demo3D.Common (in Demo3D.Common.dll) Version: 15.0.2.11458
Syntax
C#
public static Matrix RotationX(
	double radians,
	Vector3 o
)

Parameters

radians
Type: SystemDouble
Angle in radians
o
Type: Microsoft.DirectXVector3
Origin of rotation

Return Value

Type: Matrix
Resulting rotation Matrix
Remarks
Equivalent to
Matrix.Translation(-o) * Matrix.RotationX(radians) * Matrix.Translation(o)
See Also