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