pub trait Rotation3<S: BaseFloat>: Rotation<Point3<S>> + Into<Matrix3<S>> + Into<Basis3<S>> + Into<Quaternion<S>> + From<Euler<Rad<S>>> {
// Required method
fn from_axis_angle<A: Into<Rad<S>>>(axis: Vector3<S>, angle: A) -> Self;
// Provided methods
fn from_angle_x<A: Into<Rad<S>>>(theta: A) -> Self { ... }
fn from_angle_y<A: Into<Rad<S>>>(theta: A) -> Self { ... }
fn from_angle_z<A: Into<Rad<S>>>(theta: A) -> Self { ... }
}
Expand description
A three-dimensional rotation.
Required Methods§
sourcefn from_axis_angle<A: Into<Rad<S>>>(axis: Vector3<S>, angle: A) -> Self
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§
sourcefn from_angle_x<A: Into<Rad<S>>>(theta: A) -> Self
fn from_angle_x<A: Into<Rad<S>>>(theta: A) -> Self
Create a rotation from an angle around the x
axis (pitch).
sourcefn from_angle_y<A: Into<Rad<S>>>(theta: A) -> Self
fn from_angle_y<A: Into<Rad<S>>>(theta: A) -> Self
Create a rotation from an angle around the y
axis (yaw).
sourcefn from_angle_z<A: Into<Rad<S>>>(theta: A) -> Self
fn from_angle_z<A: Into<Rad<S>>>(theta: A) -> Self
Create a rotation from an angle around the z
axis (roll).