Skip to content

Commit d7591ce

Browse files
committed
Restore the Default impl for EulerRot.
1 parent 4488b23 commit d7591ce

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/euler.rs

+7
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,13 @@ pub enum EulerRot {
7878
XZXEx,
7979
}
8080

81+
impl Default for EulerRot {
82+
/// Default `YXZ` as yaw (y-axis), pitch (x-axis), roll (z-axis).
83+
fn default() -> Self {
84+
Self::YXZ
85+
}
86+
}
87+
8188
pub(crate) trait ToEuler {
8289
type Scalar;
8390
fn to_euler_angles(self, order: EulerRot) -> (Self::Scalar, Self::Scalar, Self::Scalar);

0 commit comments

Comments
 (0)