locan.utils.rotation.Rotation3D¶
- class locan.utils.rotation.Rotation3D[source]¶
Bases:
RotationRotation in 3 dimensions.
Adapter class for class:scipy.spatial.transform.Rotation.
Methods
__init__(*args, **kwargs)align_vectors(cls, a, b[, weights, ...])Estimate a rotation to optimally align two sets of vectors.
apply(self, vectors[, inverse])Apply this rotation to a set of vectors.
approx_equal(self, Rotation other[, atol, ...])Determine if another rotation is approximately equal to this one.
as_davenport(self, axes, order[, degrees])Represent as Davenport angles.
as_euler(self, seq[, degrees])Represent as Euler angles.
as_matrix(self)Represent as rotation matrix.
as_mrp(self)Represent as Modified Rodrigues Parameters (MRPs).
as_quat(self[, canonical, scalar_first])Represent as quaternions.
as_rotvec(self[, degrees])Represent as rotation vectors.
concatenate(cls, rotations)Concatenate a sequence of Rotation objects into a single object.
create_group(cls, group[, axis])Create a 3D rotation group.
from_davenport(cls, axes, order, angles[, ...])Initialize from Davenport angles.
from_euler(cls, seq, angles[, degrees])Initialize from Euler angles.
from_matrix(cls, matrix)Initialize from rotation matrix.
from_mrp(cls, mrp)Initialize from Modified Rodrigues Parameters (MRPs).
from_quat(cls, quat, *[, scalar_first])Initialize from quaternions.
from_rotvec(cls, rotvec[, degrees])Initialize from rotation vectors.
identity(cls[, num])Get identity rotation(s).
inv(self)Invert this rotation.
magnitude(self)Get the magnitude(s) of the rotation(s).
mean(self[, weights])Get the mean of the rotations.
random(cls[, num, rng])Generate uniformly distributed rotations.
reduce(self[, left, right, return_indices])Reduce this rotation with the provided rotation groups.
Attributes
singleWhether this instance represents a single rotation.