MatrixRotationYawPitchRoll Method (Double, Double, Double, Vector3) |
Form a rotation
Matrix from Yaw (Y-Axis rotation), Pitch (X-Axis rotation) and Roll (Z-Axis rotation), offset from the origin
Namespace:
Microsoft.DirectX
Assembly:
Demo3D.Common (in Demo3D.Common.dll) Version: 18.04.00
Syntaxpublic static Matrix RotationYawPitchRoll(
double yaw,
double pitch,
double roll,
Vector3 o
)
Parameters
- yaw
- Type: SystemDouble
Yaw in radians - pitch
- Type: SystemDouble
Pitch in radians - roll
- Type: SystemDouble
Roll in radians - o
- Type: Microsoft.DirectXVector3
Origin of rotation
Return Value
Type:
MatrixResulting rotation
Matrix
RemarksEquivalent to
Matrix.Translation(-o) * Matrix.RotationYawPitchRoll(yaw, pitch, roll) * Matrix.Translation(o)
See Also