Trait truck_geometry::base::Rotation2
pub trait Rotation2: Rotation<Space = Point2<Self::Scalar>> + Into<Matrix2<Self::Scalar>> + Into<Basis2<Self::Scalar>> {
type Scalar: BaseFloat;
fn from_angle<A>(theta: A) -> Self
where
A: Into<Rad<Self::Scalar>>;
}
Expand description
A two-dimensional rotation.
Required Associated Types§
Required Methods§
fn from_angle<A>(theta: A) -> Selfwhere
A: Into<Rad<Self::Scalar>>,
fn from_angle<A>(theta: A) -> Selfwhere
A: Into<Rad<Self::Scalar>>,
Create a rotation by a given angle. Thus is a redundant case of both from_axis_angle() and from_euler() for 2D space.