pub trait Rotation: Copy {
// Required methods
fn identity() -> Self;
fn inverted(self) -> Self;
fn combine(&self, other: &Self) -> Self;
}Expand description
Describes the transformation from one orthonormal basis to another.
A Rotation represents a single rotation operation. Rotations change the direction of a vector
while keeping its magnitude constant. To maintain generality, this documentation shows rotations
mathematically as functions:
\vec{b} = R(\vec{a})All types that implement Rotation should implement Rotate for at least one vector type.
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.