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 {
36
36
/// (X angle, Y angle, Z angle).
37
37
#[ inline]
38
38
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
+ ) )
40
45
}
41
46
42
47
/// Constructs a quaternion that will rotate around the given axis by the specified angle. The
@@ -68,7 +73,7 @@ impl Quat {
68
73
/// the rotation angles in the format (X angle, Y angle, Z angle).
69
74
#[ inline]
70
75
pub fn to_euler ( self ) -> Vector3 {
71
- Basis :: from_quat ( self ) . to_euler ( )
76
+ Basis :: from_quat ( self ) . to_euler ( )
72
77
}
73
78
74
79
/// Returns the inverse of the quaternion.
@@ -106,8 +111,8 @@ impl Quat {
106
111
}
107
112
108
113
/// 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 `*`.
111
116
#[ inline]
112
117
pub fn normalized ( self ) -> Self {
113
118
Self :: gd ( self . glam ( ) . normalize ( ) )
You can’t perform that action at this time.
0 commit comments