derive Debug for axis types
use super::{Point3i, PointN};
/// Either the X or Y axis.
-#[derive(Clone, Copy)]
+#[derive(Clone, Copy, Debug)]
pub enum Axis2 {
X = 0,
Y = 1,
@@ -14,14 +14,14 @@ impl Axis2 {
}
}
-#[derive(Clone, Copy)]
+#[derive(Clone, Copy, Debug)]
pub struct SignedAxis2 {
pub sign: i32,
pub axis: Axis2,
}
/// Either the X, Y, or Z axis.
-#[derive(Clone, Copy)]
+#[derive(Clone, Copy, Debug)]
pub enum Axis3 {
X = 0,
Y = 1,
@@ -43,7 +43,7 @@ impl Axis3 {
}
}
-#[derive(Clone, Copy)]
+#[derive(Clone, Copy, Debug)]
pub enum Axis3Permutation {
// Even permutations
XYZ,
@@ -95,7 +95,7 @@ impl Axis3Permutation {
}
}
-#[derive(Clone, Copy)]
+#[derive(Clone, Copy, Debug)]
pub struct SignedAxis3 {
pub sign: i32,
pub axis: Axis3,
