#[repr(C)]pub struct Vector2<T> {
pub x: T,
pub y: T,
}Fields
x: Ty: TImplementations
Trait Implementations
sourceimpl<T: FloatScalar> FloatVector<T> for Vector2<T>
impl<T: FloatScalar> FloatVector<T> for Vector2<T>
sourceimpl<T: Scalar> Vector<T, Vector2<T>, Vector2<T>> for Vector2<T>
impl<T: Scalar> Vector<T, Vector2<T>, Vector2<T>> for Vector2<T>
fn zero() -> Self
fn dot(l: &Self, r: &Self) -> T
fn add_vv(l: &Self, r: &Self) -> Self
fn sub_vv(l: &Self, r: &Self) -> Self
fn mul_vv(l: &Self, r: &Self) -> Self
fn div_vv(l: &Self, r: &Self) -> Self
fn mul_vs(l: &Self, r: T) -> Self
fn div_vs(l: &Self, r: T) -> Self
fn rem_vv(l: &Self, r: &Self) -> Self
fn min(l: &Self, r: &Self) -> Self
fn max(l: &Self, r: &Self) -> Self
impl<T: Copy> Copy for Vector2<T>
Auto Trait Implementations
impl<T> RefUnwindSafe for Vector2<T> where
T: RefUnwindSafe,
impl<T> Send for Vector2<T> where
T: Send,
impl<T> Sync for Vector2<T> where
T: Sync,
impl<T> Unpin for Vector2<T> where
T: Unpin,
impl<T> UnwindSafe for Vector2<T> where
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more