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
Required methods
fn contains_point<P>(&self, _p: P) -> bool where
P: Into<Point<T, N>>,
fn contains_point<P>(&self, _p: P) -> bool where
P: Into<Point<T, N>>,
Returns whether this shape contains a given Point.
fn contains_shape<O>(&self, _other: O) -> bool where
O: Into<Self::Shape>,
fn contains_shape<O>(&self, _other: O) -> bool where
O: Into<Self::Shape>,
Returns whether this shape completely contains another shape of the same type.