pub struct AABB {
pub tl: Point,
pub br: Point,
}
Expand description
An axis-aligned bounding box defined by its edge coordinates.
Fields§
§tl: Point
Top left coordinate of the rectangle of the element.
br: Point
Bottom right coordinate of the rectangle of the element.
Implementations§
Source§impl AABB
impl AABB
pub fn from_ranges(x: RangeInclusive<i32>, y: RangeInclusive<i32>) -> Self
Trait Implementations§
Source§impl IntersectsWith for AABB
impl IntersectsWith for AABB
impl Copy for AABB
impl Eq for AABB
impl StructuralPartialEq for AABB
Auto Trait Implementations§
impl Freeze for AABB
impl RefUnwindSafe for AABB
impl Send for AABB
impl Sync for AABB
impl Unpin for AABB
impl UnwindSafe for AABB
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more