diff --git a/src/rotation.rs b/src/rotation.rs index 0aa8d4c..870929f 100644 --- a/src/rotation.rs +++ b/src/rotation.rs @@ -102,19 +102,19 @@ pub trait Rotation3: Rotation, Point3> /// Create a rotation from an angle around the `x` axis (pitch). #[inline] fn from_angle_x(theta: Rad) -> Self { - Rotation3::from_axis_angle( &Vector3::unit_x(), theta ) + Rotation3::from_axis_angle(&Vector3::unit_x(), theta) } /// Create a rotation from an angle around the `y` axis (yaw). #[inline] fn from_angle_y(theta: Rad) -> Self { - Rotation3::from_axis_angle( &Vector3::unit_y(), theta ) + Rotation3::from_axis_angle(&Vector3::unit_y(), theta) } /// Create a rotation from an angle around the `z` axis (roll). #[inline] fn from_angle_z(theta: Rad) -> Self { - Rotation3::from_axis_angle( &Vector3::unit_z(), theta ) + Rotation3::from_axis_angle(&Vector3::unit_z(), theta) } } @@ -190,7 +190,7 @@ impl Rotation, Point2> for Basis2 { #[inline] fn between_vectors(a: &Vector2, b: &Vector2) -> Basis2 { - Rotation2::from_angle( acos(a.dot(b)) ) + Rotation2::from_angle(acos(a.dot(b)) ) } #[inline]