Trait nannou::math::Rotation3[][src]

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

A three-dimensional rotation.

Required Methods

Create a rotation using an angle around a given axis.

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

Provided Methods

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

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

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

Implementors