geo/algorithm/intersects/coordinate.rs
1use super::Intersects;
2use crate::*;
3
4impl<T> Intersects<Coord<T>> for Coord<T>
5where
6 T: CoordNum,
7{
8 fn intersects(&self, rhs: &Coord<T>) -> bool {
9 self == rhs
10 }
11}
12
13// The other side of this is handled via a blanket impl.
14impl<T> Intersects<Point<T>> for Coord<T>
15where
16 T: CoordNum,
17{
18 fn intersects(&self, rhs: &Point<T>) -> bool {
19 self == &rhs.0
20 }
21}