Trait Rotation2

Source
pub trait Rotation2<S>:
    Rotation<Point2<S>>
    + Into<Matrix2<S>>
    + Into<Basis2<S>>
where S: BaseFloat,
{ // Required method fn from_angle<A>(theta: A) -> Self where A: Into<Rad<S>>; }
Expand description

A two-dimensional rotation.

Required Methods§

Source

fn from_angle<A>(theta: A) -> Self
where A: Into<Rad<S>>,

Create a rotation by a given angle. Thus is a redundant case of both from_axis_angle() and from_euler() for 2D space.

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§

Source§

impl<S> Rotation2<S> for Basis2<S>
where S: BaseFloat,