Click or drag to resize

MatrixRotationZDegrees Method (Double, Vector3)

Form a rotation Matrix rotating about the Z-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 RotationZDegrees(
	double degrees,
	Vector3 o
)

Parameters

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

Return Value

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