Matrix4.RotateFromEuler
Contents
[
Hide
]RotateFromEuler(Vector3)
Create a rotation matrix from Euler angle
public static Matrix4 RotateFromEuler(Vector3 eul)
Parameter | Type | Description |
---|---|---|
eul | Vector3 | Rotation in radian |
Examples
The following code shows how to create a matrix for rotate operation.
var t = Matrix4.RotateFromEuler(new Vector3(0, Math.PI, 0));
var pos = new Vector3(1, 1, 10);
Console.WriteLine($"Transformed: {t * pos}");
See Also
- struct Vector3
- struct Matrix4
- namespace Aspose.ThreeD.Utilities
- assembly Aspose.3D
RotateFromEuler(double, double, double)
Create a rotation matrix from Euler angle
public static Matrix4 RotateFromEuler(double rx, double ry, double rz)
Parameter | Type | Description |
---|---|---|
rx | Double | Rotation in x axis in radian |
ry | Double | Rotation in y axis in radian |
rz | Double | Rotation in z axis in radian |
Examples
The following code shows how to create a matrix for rotate operation.
var t = Matrix4.RotateFromEuler(0, Math.PI, 0);
var pos = new Vector3(1, 1, 10);
Console.WriteLine($"Transformed: {t * pos}");
See Also
- struct Matrix4
- namespace Aspose.ThreeD.Utilities
- assembly Aspose.3D