Trait truck_rendimpl::polymesh::Rotation3 [−]
A three-dimensional rotation.
Required methods
pub 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
pub 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).
pub 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).
pub 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).
Implementations on Foreign Types
impl<S> Rotation3<S> for Basis3<S> where
S: BaseFloat,
S: BaseFloat,
pub fn from_axis_angle<A>(axis: Vector3<S>, angle: A) -> Basis3<S> where
A: Into<Rad<S>>,
A: Into<Rad<S>>,
pub fn from_angle_x<A>(theta: A) -> Basis3<S> where
A: Into<Rad<S>>,
A: Into<Rad<S>>,
pub fn from_angle_y<A>(theta: A) -> Basis3<S> where
A: Into<Rad<S>>,
A: Into<Rad<S>>,
pub fn from_angle_z<A>(theta: A) -> Basis3<S> where
A: Into<Rad<S>>,
A: Into<Rad<S>>,
impl<S> Rotation3<S> for Quaternion<S> where
S: BaseFloat,
S: BaseFloat,
pub fn from_axis_angle<A>(axis: Vector3<S>, angle: A) -> Quaternion<S> where
A: Into<Rad<S>>,
A: Into<Rad<S>>,