Trait cgmath::Rotation3
[−]
[src]
pub trait Rotation3<S: BaseFloat>: Rotation<S, Vector3<S>, Point3<S>> + Into<Matrix3<S>> + Into<Basis3<S>> + Into<Quaternion<S>> {
fn from_axis_angle(axis: &Vector3<S>, angle: Rad<S>) -> Self;
fn from_euler(x: Rad<S>, y: Rad<S>, z: Rad<S>) -> Self;
fn from_angle_x(theta: Rad<S>) -> Self { ... }
fn from_angle_y(theta: Rad<S>) -> Self { ... }
fn from_angle_z(theta: Rad<S>) -> Self { ... }
}A three-dimensional rotation.
Required Methods
fn from_axis_angle(axis: &Vector3<S>, angle: Rad<S>) -> Self
Create a rotation using an angle around a given axis.
fn from_euler(x: Rad<S>, y: Rad<S>, z: Rad<S>) -> Self
Create a rotation from a set of euler angles.
Parameters
x: the angular rotation around thexaxis (pitch).y: the angular rotation around theyaxis (yaw).z: the angular rotation around thezaxis (roll).
Provided Methods
fn from_angle_x(theta: Rad<S>) -> Self
Create a rotation from an angle around the x axis (pitch).
fn from_angle_y(theta: Rad<S>) -> Self
Create a rotation from an angle around the y axis (yaw).
fn from_angle_z(theta: Rad<S>) -> Self
Create a rotation from an angle around the z axis (roll).