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: 18.04.00
Syntaxpublic static Matrix RotationZDegrees(
double degrees,
Vector3 o
)
Parameters
- degrees
- Type: SystemDouble
Angle in degrees - o
- Type: Microsoft.DirectXVector3
Origin of rotation
Return Value
Type:
MatrixResulting rotation
Matrix
RemarksEquivalent to
Matrix.Translation(-o) * Matrix.RotationZDegrees(degrees) * Matrix.Translation(o)
See Also