Trait ContainsPoint
Other items inembedded_graphics::primitives
pub trait ContainsPoint { fn contains(&self, point: Point) -> bool; }
Trait to check if a point is inside a closed shape.
fn contains(&self, point: Point) -> bool
Returns true if the given point is inside the shape.
true
impl ContainsPoint for Circle
impl ContainsPoint for Ellipse
impl ContainsPoint for Rectangle
impl ContainsPoint for RoundedRectangle
impl ContainsPoint for Sector
impl ContainsPoint for Triangle