#[repr(C)]pub struct Vec2 {
pub x: f64,
pub y: f64,
}Expand description
la::vec<double, 2> — 2-component f64 column vector
Fields§
§x: f64§y: f64Implementations§
Trait Implementations§
Source§impl AddAssign for Vec2
impl AddAssign for Vec2
Source§fn add_assign(&mut self, b: Vec2)
fn add_assign(&mut self, b: Vec2)
Performs the
+= operation. Read moreSource§impl AddAssign<Vec2> for Rect
impl AddAssign<Vec2> for Rect
Source§fn add_assign(&mut self, shift: Vec2)
fn add_assign(&mut self, shift: Vec2)
Performs the
+= operation. Read moreimpl Copy for Vec2
Source§impl DivAssign for Vec2
impl DivAssign for Vec2
Source§fn div_assign(&mut self, b: Vec2)
fn div_assign(&mut self, b: Vec2)
Performs the
/= operation. Read moreSource§impl DivAssign<f64> for Vec2
impl DivAssign<f64> for Vec2
Source§fn div_assign(&mut self, s: f64)
fn div_assign(&mut self, s: f64)
Performs the
/= operation. Read moreSource§impl MulAssign for Vec2
impl MulAssign for Vec2
Source§fn mul_assign(&mut self, b: Vec2)
fn mul_assign(&mut self, b: Vec2)
Performs the
*= operation. Read moreSource§impl MulAssign<Vec2> for Rect
impl MulAssign<Vec2> for Rect
Source§fn mul_assign(&mut self, scale: Vec2)
fn mul_assign(&mut self, scale: Vec2)
Performs the
*= operation. Read moreSource§impl MulAssign<f64> for Vec2
impl MulAssign<f64> for Vec2
Source§fn mul_assign(&mut self, s: f64)
fn mul_assign(&mut self, s: f64)
Performs the
*= operation. Read moreSource§impl PartialOrd for Vec2
impl PartialOrd for Vec2
impl StructuralPartialEq for Vec2
Auto Trait Implementations§
impl Freeze for Vec2
impl RefUnwindSafe for Vec2
impl Send for Vec2
impl Sync for Vec2
impl Unpin for Vec2
impl UnsafeUnpin 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