Trait truck_geometry::base::Rotation3
pub trait Rotation3: Rotation<Space = Point3<Self::Scalar>> + Into<Matrix3<Self::Scalar>> + Into<Basis3<Self::Scalar>> + Into<Quaternion<Self::Scalar>> + From<Euler<Rad<Self::Scalar>>> {
type Scalar: BaseFloat;
fn from_axis_angle<A>(axis: Vector3<Self::Scalar>, angle: A) -> Self
where
A: Into<Rad<Self::Scalar>>;
fn from_angle_x<A>(theta: A) -> Self
where
A: Into<Rad<Self::Scalar>>,
{ ... }
fn from_angle_y<A>(theta: A) -> Self
where
A: Into<Rad<Self::Scalar>>,
{ ... }
fn from_angle_z<A>(theta: A) -> Self
where
A: Into<Rad<Self::Scalar>>,
{ ... }
}
Expand description
A three-dimensional rotation.
Required Associated Types§
Required Methods§
Provided Methods§
fn from_angle_x<A>(theta: A) -> Selfwhere
A: Into<Rad<Self::Scalar>>,
fn from_angle_x<A>(theta: A) -> Selfwhere
A: Into<Rad<Self::Scalar>>,
Create a rotation from an angle around the x
axis (pitch).
fn from_angle_y<A>(theta: A) -> Selfwhere
A: Into<Rad<Self::Scalar>>,
fn from_angle_y<A>(theta: A) -> Selfwhere
A: Into<Rad<Self::Scalar>>,
Create a rotation from an angle around the y
axis (yaw).
fn from_angle_z<A>(theta: A) -> Selfwhere
A: Into<Rad<Self::Scalar>>,
fn from_angle_z<A>(theta: A) -> Selfwhere
A: Into<Rad<Self::Scalar>>,
Create a rotation from an angle around the z
axis (roll).