rotate_from_euler method

rotate_from_euler

Create a rotation matrix from Euler angle

Returns

def rotate_from_euler(self, eul):
    ...
ParameterTypeDescription
eulVector3Rotation 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):
    ...
ParameterTypeDescription
rxfloatRotation in x axis in radian
ryfloatRotation in y axis in radian
rzfloatRotation in z axis in radian

See Also