rotate_from_euler method
Contents
[
Hide
]rotate_from_euler
Create a rotation matrix from Euler angle
Returns
def rotate_from_euler(self, eul):
...
Parameter | Type | Description |
---|---|---|
eul | Vector3 | Rotation in radian |
Example
The following code shows how to create a matrix for rotate operation.
from aspose.threed.utilities import Matrix4, Vector3
import math
t = Matrix4.rotate_from_euler(Vector3(0, math.pi, 0))
pos = Vector3(1, 1, 10)
print(f"Transformed: {t * pos}")
rotate_from_euler
Create a rotation matrix from Euler angle
Returns
def rotate_from_euler(self, rx, ry, rz):
...
Parameter | Type | Description |
---|---|---|
rx | float | Rotation in x axis in radian |
ry | float | Rotation in y axis in radian |
rz | float | Rotation in z axis in radian |
See Also
- module
aspose.threed.utilities
- class
Matrix4