Trait pix_engine::core::shape::Contains[][src]

pub trait Contains<T, const N: usize> {
    type Shape;
    fn contains_point<P>(&self, _p: P) -> bool
    where
        P: Into<Point<T, N>>
;
fn contains_shape<O>(&self, _other: O) -> bool
    where
        O: Into<Self::Shape>
; }
Expand description

Trait for shape containing operations.

Associated Types

The shape type. e.g. Rect.

Required methods

Returns whether this shape contains a given Point.

Returns whether this shape completely contains another shape of the same type.

Implementors