File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed
gdnative-core/src/core_types Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff 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 ( ) )
You can’t perform that action at this time.
0 commit comments