Trait embedded_graphics::primitives::ContainsPoint

source ·
pub trait ContainsPoint {
    // Required method
    fn contains(&self, point: Point) -> bool;
}
Expand description

Trait to check if a point is inside a closed shape.

Required Methods§

source

fn contains(&self, point: Point) -> bool

Returns true if the given point is inside the shape.

Implementors§