Trait Rotation3

Source
pub trait Rotation3<S>:
    Rotation<Point3<S>>
    + Into<Matrix3<S>>
    + Into<Basis3<S>>
    + Into<Quaternion<S>>
    + From<Euler<Rad<S>>>
where S: BaseFloat,
{ // Required method fn from_axis_angle<A>(axis: Vector3<S>, angle: A) -> Self where A: Into<Rad<S>>; // Provided methods 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>> { ... } }
Expand description

A three-dimensional rotation.

Required Methods§

Source

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

Create a rotation using an angle around a given axis.

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

Provided Methods§

Source

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

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

Source

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

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

Source

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

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

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> Rotation3<S> for Quaternion<S>
where S: BaseFloat,

Source§

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