contains
Check if a point lies within this rectangle, inclusive of its edges.
Examples
# use bevy_math::IRect; let r = IRect::new(0, 0, 5, 1); // w=5 h=1 assert!(r.contains(r.center())); assert!(r.contains(r.min)); assert!(r.contains(r.max));
Arguments
- _self :
IRect
- No Documentation 🚧 - point :
IVec2
- No Documentation 🚧
Returns
- arg0 :
bool
- No Documentation 🚧