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