#[repr(C)]pub struct Rectangle {
pub p_min: Point,
pub p_max: Point,
}
Expand description
An axis-aligned rectangle in 2-dimensional Euclidian space.
Fields§
§p_min: Point
§p_max: Point
Implementations§
Trait Implementations§
Source§impl Transform for Rectangle
impl Transform for Rectangle
fn transform<T>(self, t: &T) -> Rectanglewhere
T: Transformation,
fn transform_mut<T>(&mut self, t: &T)where
T: Transformation,
impl Copy for Rectangle
impl StructuralPartialEq for Rectangle
Auto Trait Implementations§
impl Freeze for Rectangle
impl RefUnwindSafe for Rectangle
impl Send for Rectangle
impl Sync for Rectangle
impl Unpin for Rectangle
impl UnwindSafe for Rectangle
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