Trait alga::linear::Rotation [] [src]

pub trait Rotation<E: EuclideanSpace>: OrthogonalTransformation<E> + DirectIsometry<E> {
    fn powf(&self, n: E::Real) -> Option<Self>;
    fn rotation_between(a: &E::Vector, b: &E::Vector) -> Option<Self>;
}

Subgroups of the n-dimensional rotation group SO(n).

Required Methods

Raises this rotation to a power. If this is a simple rotation, the result must be equivalent to multiplying the rotation angle by n.

Computes a simple rotation that makes the angle between a and b equal to zero, i.e., b.angle(a * delta_rotation(a, b)) = 0. If a and b are collinear, the computed rotation may not be unique. Returns None if no such simple rotation exists in the subgroup represented by Self.

Implementors