pub trait IntersectsShape {
    // Required methods
    fn intersects_rect(&self, rect: &Rect) -> bool;
    fn intersects_circle(&self, circle: &Circle) -> bool;
    fn intersects_line(&self, line: &Line) -> bool;
    fn intersects_triangle(&self, triangle: &Triangle) -> bool;
    fn intersects_ellipse(&self, ellipse: &Ellipse) -> bool;
    fn intersects_polygon(&self, polygon: &Polygon) -> bool;
}

Required Methods§

source

fn intersects_rect(&self, rect: &Rect) -> bool

Returns true if rect intersects self

source

fn intersects_circle(&self, circle: &Circle) -> bool

Returns true if circle intersects self

source

fn intersects_line(&self, line: &Line) -> bool

Returns true if line intersects self

source

fn intersects_triangle(&self, triangle: &Triangle) -> bool

Returns true if triangle intersects self

source

fn intersects_ellipse(&self, ellipse: &Ellipse) -> bool

Returns true if ellipse intersects self

source

fn intersects_polygon(&self, polygon: &Polygon) -> bool

Returns true if polygon intersects self

Implementors§