weldx.transformations.WXRotation#

class weldx.transformations.WXRotation#

Wrapper for creating meta-tagged Rotation objects.

See scipy.spatial.transform.Rotation docs for details.

Methods

align_vectors

Estimate a rotation to optimally align two sets of vectors.

apply

Apply this rotation to a set of vectors.

as_euler

Represent as Euler angles.

as_matrix

Represent as rotation matrix.

as_mrp

Represent as Modified Rodrigues Parameters (MRPs).

as_quat

Represent as quaternions.

as_rotvec

Represent as rotation vectors.

concatenate

Concatenate a sequence of Rotation objects.

create_group

Create a 3D rotation group.

from_euler

Initialize from euler angles.

from_matrix

Initialize from matrix.

from_mrp

Initialize from Modified Rodrigues Parameters (MRPs).

from_quat

Initialize from quaternions.

from_rotvec

Initialize from rotation vector.

identity

Get identity rotation(s).

inv

Invert this rotation.

magnitude

Get the magnitude(s) of the rotation(s).

mean

Get the mean of the rotations.

random

Generate uniformly distributed rotations.

reduce

Reduce this rotation with the provided rotation groups.

Attributes

single

Whether this instance represents a single rotation.