Trait nalgebra::RotationTo [] [src]

pub trait RotationTo {
    type AngleType;
    type DeltaRotationType;
    fn angle_to(&self, other: &Self) -> Self::AngleType;
    fn rotation_to(&self, other: &Self) -> Self::DeltaRotationType;
}

Trait of object that can be rotated to be superimposed with another one of the same nature.

Associated Types

Type of the angle between two elements.

Type of the rotation between two elements.

Required Methods

Computes an angle nedded to transform the first element to the second one using a rotation.

Computes the smallest rotation needed to transform the first element to the second one.

Implementors