pub trait Rotation2where
Self: Rotation<2>,{
// Required method
fn from_angle<Dir, Up>(angle: <Self as Collection>::Scalar) -> Self;
}Expand description
Trait for representing and manipulating rotations in 2D.
Required Methods§
Sourcefn from_angle<Dir, Up>(angle: <Self as Collection>::Scalar) -> Self
fn from_angle<Dir, Up>(angle: <Self as Collection>::Scalar) -> Self
Creates a new instance of the type from the given rotation angle.
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.