[][src]Trait spacebattleship::board::ColinearCheck

pub trait ColinearCheck: Dimensions {
    fn is_colinear(
        &self,
        c1: &Self::Coordinate,
        c2: &Self::Coordinate,
        c3: &Self::Coordinate
    ) -> bool; }

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

Returns true if the 3 coordinates are colinear.

Loading content...

Implementors

impl ColinearCheck for RectDimensions[src]

Loading content...