Trait truck_rendimpl::modeling::Rotation3 [−]
A three-dimensional rotation.
Associated Types
type Scalar: BaseFloat
Required methods
pub fn from_axis_angle<A>(axis: Vector3<Self::Scalar>, angle: A) -> Self where
A: Into<Rad<Self::Scalar>>,
A: Into<Rad<Self::Scalar>>,
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<Self::Scalar>>,
A: Into<Rad<Self::Scalar>>,
Create a rotation from an angle around the x
axis (pitch).
pub fn from_angle_y<A>(theta: A) -> Self where
A: Into<Rad<Self::Scalar>>,
A: Into<Rad<Self::Scalar>>,
Create a rotation from an angle around the y
axis (yaw).
pub fn from_angle_z<A>(theta: A) -> Self where
A: Into<Rad<Self::Scalar>>,
A: Into<Rad<Self::Scalar>>,
Create a rotation from an angle around the z
axis (roll).
Implementations on Foreign Types
impl<S> Rotation3 for Basis3<S> where
S: BaseFloat,
S: BaseFloat,
type Scalar = S
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 for Quaternion<S> where
S: BaseFloat,
S: BaseFloat,
type Scalar = S
pub fn from_axis_angle<A>(axis: Vector3<S>, angle: A) -> Quaternion<S> where
A: Into<Rad<S>>,
A: Into<Rad<S>>,