pub struct Vec2 {
pub x: f32,
pub y: f32,
}
Expand description
A 2D vector.
Fields§
§x: f32
X coordinate.
y: f32
Y coordinate.
Implementations§
Trait Implementations§
source§impl PartialEq<Vec2> for Vec2
impl PartialEq<Vec2> for Vec2
source§impl PartialOrd<Vec2> for Vec2
impl PartialOrd<Vec2> for Vec2
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for Vec2
impl StructuralPartialEq for Vec2
Auto Trait Implementations§
impl RefUnwindSafe for Vec2
impl Send for Vec2
impl Sync for Vec2
impl Unpin for Vec2
impl UnwindSafe for Vec2
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