Click or drag to resize

MatrixRotationXDegrees(Double, Vector3) Method

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

Namespace: Microsoft.DirectX
Assembly: Demo3D.Common (in Demo3D.Common.dll) Version: 19.00.00
Syntax
C#
public static Matrix RotationXDegrees(
	double degrees,
	Vector3 o
)

Parameters

degrees  Double
Angle in degrees
o  Vector3
Origin of rotation

Return Value

Matrix
Resulting rotation Matrix
Remarks
Equivalent to Matrix.Translation(-o) * Matrix.RotationXDegrees(degrees) * Matrix.Translation(o)
See Also