Skip to content

Commit 32fd68f

Browse files
committed
Run cargo fmt
1 parent c48eff9 commit 32fd68f

File tree

1 file changed

+9
-4
lines changed
  • gdnative-core/src/core_types

1 file changed

+9
-4
lines changed

gdnative-core/src/core_types/quat.rs

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,12 @@ impl Quat {
3636
/// (X angle, Y angle, Z angle).
3737
#[inline]
3838
pub fn from_euler(euler: Vector3) -> Self {
39-
Self::gd(glam::Quat::from_euler(EulerRot::YXZ, euler.y, euler.x, euler.z))
39+
Self::gd(glam::Quat::from_euler(
40+
EulerRot::YXZ,
41+
euler.y,
42+
euler.x,
43+
euler.z,
44+
))
4045
}
4146

4247
/// Constructs a quaternion that will rotate around the given axis by the specified angle. The
@@ -68,7 +73,7 @@ impl Quat {
6873
/// the rotation angles in the format (X angle, Y angle, Z angle).
6974
#[inline]
7075
pub fn to_euler(self) -> Vector3 {
71-
Basis::from_quat(self).to_euler()
76+
Basis::from_quat(self).to_euler()
7277
}
7378

7479
/// Returns the inverse of the quaternion.
@@ -106,8 +111,8 @@ impl Quat {
106111
}
107112

108113
/// Returns a copy of the quaternion, normalized to unit length.
109-
///
110-
/// Normalization is necessary before transforming vectors through `xform()` or `*`.
114+
///
115+
/// Normalization is necessary before transforming vectors through `xform()` or `*`.
111116
#[inline]
112117
pub fn normalized(self) -> Self {
113118
Self::gd(self.glam().normalize())

0 commit comments

Comments
 (0)