Rotation2

Trait Rotation2 

Source
pub trait Rotation2
where 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§

Source

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.

Implementors§