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 AngleType
Type of the angle between two elements.
type DeltaRotationType
Type of the rotation between two elements.
Required Methods
fn angle_to(&self, other: &Self) -> Self::AngleType
Computes an angle nedded to transform the first element to the second one using a rotation.
fn rotation_to(&self, other: &Self) -> Self::DeltaRotationType
Computes the smallest rotation needed to transform the first element to the second one.