Trait truck_rendimpl::modeling::Rotation3[]

pub trait Rotation3: Rotation<Space = Point3<Self::Scalar>> + Into<Matrix3<Self::Scalar>> + Into<Basis3<Self::Scalar>> + Into<Quaternion<Self::Scalar>> + From<Euler<Rad<Self::Scalar>>> {
    type Scalar: BaseFloat;
    pub fn from_axis_angle<A>(axis: Vector3<Self::Scalar>, angle: A) -> Self
    where
        A: Into<Rad<Self::Scalar>>
; pub fn from_angle_x<A>(theta: A) -> Self
    where
        A: Into<Rad<Self::Scalar>>
, { ... }
pub fn from_angle_y<A>(theta: A) -> Self
    where
        A: Into<Rad<Self::Scalar>>
, { ... }
pub fn from_angle_z<A>(theta: A) -> Self
    where
        A: Into<Rad<Self::Scalar>>
, { ... } }

A three-dimensional rotation.

Associated Types

type Scalar: BaseFloat

Loading content...

Required methods

pub fn from_axis_angle<A>(axis: Vector3<Self::Scalar>, angle: A) -> Self where
    A: Into<Rad<Self::Scalar>>, 

Create a rotation using an angle around a given axis.

The specified axis must be normalized, or it represents an invalid rotation.

Loading content...

Provided methods

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

Create a rotation from an angle around the x axis (pitch).

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

Create a rotation from an angle around the y axis (yaw).

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

Create a rotation from an angle around the z axis (roll).

Loading content...

Implementations on Foreign Types

impl<S> Rotation3 for Basis3<S> where
    S: BaseFloat, 

type Scalar = S

impl<S> Rotation3 for Quaternion<S> where
    S: BaseFloat, 

type Scalar = S

Loading content...

Implementors

Loading content...