Trait truck_rendimpl::polymesh::Rotation2[]

pub trait Rotation2: Rotation<Space = Point2<Self::Scalar>> + Into<Matrix2<Self::Scalar>> + Into<Basis2<Self::Scalar>> {
    type Scalar: BaseFloat;
    pub fn from_angle<A>(theta: A) -> Self
    where
        A: Into<Rad<Self::Scalar>>
; }

A two-dimensional rotation.

Associated Types

type Scalar: BaseFloat

Loading content...

Required methods

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

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

Loading content...

Implementations on Foreign Types

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

type Scalar = S

Loading content...

Implementors

Loading content...