pytransform3d.rotations.matrix_from_euler#

pytransform3d.rotations.matrix_from_euler(e, i, j, k, extrinsic)[source]#

General method to compute active rotation matrix from any Euler angles.

Parameters:
earray-like, shape (3,)

Rotation angles in radians about the axes i, j, k in this order.

iint from [0, 1, 2]

The first rotation axis (0: x, 1: y, 2: z)

jint from [0, 1, 2]

The second rotation axis (0: x, 1: y, 2: z)

kint from [0, 1, 2]

The third rotation axis (0: x, 1: y, 2: z)

extrinsicbool

Do we use extrinsic transformations? Intrinsic otherwise.

Returns:
Rarray, shape (3, 3)

Active rotation matrix

Raises:
ValueError

If basis is invalid

Examples using pytransform3d.rotations.matrix_from_euler#

Invert Uncertain Transform

Invert Uncertain Transform