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