pub enum Corner {
TopRight,
TopLeft,
BottomLeft,
BottomRight,
Invalid,
}Expand description
Identifies a corner of a rectangle.
[-1.0, 1.0] [1.0, 1.0]
TopLeft┌─────┐TopRight
│ │
BottomLeft└─────┘BottomRight
[-1.0, -1.0] [1.0, -1.0]Variants§
Implementations§
Source§impl Corner
impl Corner
Sourcepub const BOTTOM_LEFT: Vec2 = Vec2::NEG_ONE
pub const BOTTOM_LEFT: Vec2 = Vec2::NEG_ONE
A vector representation of the bottom-left corner.
Sourcepub const BOTTOM_RIGHT: Vec2
pub const BOTTOM_RIGHT: Vec2
A vector representation of the bottom-right corner.
Trait Implementations§
impl Copy for Corner
impl Eq for Corner
impl StructuralPartialEq for Corner
Auto Trait Implementations§
impl Freeze for Corner
impl RefUnwindSafe for Corner
impl Send for Corner
impl Sync for Corner
impl Unpin for Corner
impl UnwindSafe for Corner
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