1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
use serde::{Deserialize, Serialize}; /// A two dimensional axis. #[derive(Debug, Copy, Clone, Serialize, Deserialize, PartialEq, Eq)] pub enum Axis2 { /// The X axis. Often the horizontal (left-right) position. X, /// The Y axis. Often the vertical height. Y, } /// A three dimensional axis. #[derive(Debug, Copy, Clone, Serialize, Deserialize, PartialEq, Eq)] pub enum Axis3 { /// The X axis. Often the horizontal (left-right) position. X, /// The Y axis. Often the vertical height. Y, /// The Z axis. Often the depth. Z, }