hexagon-map 0.0.2

Coordinate transformation and pathfinding for hexagonal maps
Documentation
use super::*;

impl<P> PartialEq<P> for CubicPoint
where
    P: HexPoint,
{
    fn eq(&self, other: &P) -> bool {
        let rhs = other.as_cubic_point();
        self.p == rhs.p && self.q == rhs.q
    }
}

impl<P> PartialEq<P> for AxialPoint
where
    P: HexPoint,
{
    fn eq(&self, other: &P) -> bool {
        let rhs = other.as_axial_point();
        self.q == rhs.q && self.r == rhs.r
    }
}