[−][src]Trait nannou::math::prelude::Rotation3
A three-dimensional rotation.
Required methods
fn from_axis_angle<A>(axis: Vector3<S>, angle: A) -> Self where
A: Into<Rad<S>>,
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
fn from_angle_x<A>(theta: A) -> Self where
A: Into<Rad<S>>,
A: Into<Rad<S>>,
Create a rotation from an angle around the x
axis (pitch).
fn from_angle_y<A>(theta: A) -> Self where
A: Into<Rad<S>>,
A: Into<Rad<S>>,
Create a rotation from an angle around the y
axis (yaw).
fn from_angle_z<A>(theta: A) -> Self where
A: Into<Rad<S>>,
A: Into<Rad<S>>,
Create a rotation from an angle around the z
axis (roll).
Implementors
impl<S> Rotation3<S> for Quaternion<S> where
S: BaseFloat,
[src]
S: BaseFloat,
fn from_axis_angle<A>(axis: Vector3<S>, angle: A) -> Quaternion<S> where
A: Into<Rad<S>>,
[src]
A: Into<Rad<S>>,
fn from_angle_x<A>(theta: A) -> Self where
A: Into<Rad<S>>,
[src]
A: Into<Rad<S>>,
fn from_angle_y<A>(theta: A) -> Self where
A: Into<Rad<S>>,
[src]
A: Into<Rad<S>>,
fn from_angle_z<A>(theta: A) -> Self where
A: Into<Rad<S>>,
[src]
A: Into<Rad<S>>,
impl<S> Rotation3<S> for Basis3<S> where
S: BaseFloat,
[src]
S: BaseFloat,
fn from_axis_angle<A>(axis: Vector3<S>, angle: A) -> Basis3<S> where
A: Into<Rad<S>>,
[src]
A: Into<Rad<S>>,
fn from_angle_x<A>(theta: A) -> Basis3<S> where
A: Into<Rad<S>>,
[src]
A: Into<Rad<S>>,
fn from_angle_y<A>(theta: A) -> Basis3<S> where
A: Into<Rad<S>>,
[src]
A: Into<Rad<S>>,
fn from_angle_z<A>(theta: A) -> Basis3<S> where
A: Into<Rad<S>>,
[src]
A: Into<Rad<S>>,