use super::*;
#[derive(Copy, Clone, Ord, PartialOrd, Eq, Hash, Serialize, Deserialize)]
pub struct AxialPoint {
pub q: isize,
pub r: isize,
}
impl AxialPoint {
pub fn new(q: isize, r: isize) -> Self {
Self { q, r }
}
pub fn go(&self, direction: Orientation) -> Self {
<AxialPoint as Into<CubicPoint>>::into(*self).go(direction).into()
}
}