[−][src]Trait spacebattleship::board::ColinearCheck
Trait for Dimensions
that support colinearity checks on their coordinates.
Required methods
fn is_colinear(
&self,
c1: &Self::Coordinate,
c2: &Self::Coordinate,
c3: &Self::Coordinate
) -> bool
&self,
c1: &Self::Coordinate,
c2: &Self::Coordinate,
c3: &Self::Coordinate
) -> bool
Returns true if the 3 coordinates are colinear.