hexagon_map/point/
arithmetic.rs

1use super::*;
2
3impl<P> PartialEq<P> for CubicPoint
4where
5    P: HexPoint,
6{
7    fn eq(&self, other: &P) -> bool {
8        let rhs = other.as_cubic_point();
9        self.p == rhs.p && self.q == rhs.q
10    }
11}
12
13impl<P> PartialEq<P> for AxialPoint
14where
15    P: HexPoint,
16{
17    fn eq(&self, other: &P) -> bool {
18        let rhs = other.as_axial_point();
19        self.q == rhs.q && self.r == rhs.r
20    }
21}