Struct rs_math3d::vector::Vector2 [−][src]
#[repr(C)]pub struct Vector2<T> { pub x: T, pub y: T, }
Fields
x: T
y: T
Implementations
Trait Implementations
impl<T: Scalar> Vector<T, Vector2<T>, Vector2<T>> for Vector2<T>
[src]
impl<T: Scalar> Vector<T, Vector2<T>, Vector2<T>> for Vector2<T>
[src]fn zero() -> Self
[src]
fn length(&self) -> T
[src]
fn dot(l: &Self, r: &Self) -> T
[src]
fn add_vv(l: &Self, r: &Self) -> Self
[src]
fn sub_vv(l: &Self, r: &Self) -> Self
[src]
fn mul_vv(l: &Self, r: &Self) -> Self
[src]
fn div_vv(l: &Self, r: &Self) -> Self
[src]
fn mul_vs(l: &Self, r: T) -> Self
[src]
fn div_vs(l: &Self, r: T) -> Self
[src]
fn rem_vv(l: &Self, r: &Self) -> Self
[src]
fn normalize(v: &Self) -> Self
[src]
fn distance(l: &Self, r: &Self) -> T
[src]
fn min(l: &Self, r: &Self) -> Self
[src]
fn max(l: &Self, r: &Self) -> Self
[src]
impl<T: Copy> Copy for Vector2<T>
[src]
Auto Trait Implementations
impl<T> Send for Vector2<T> where
T: Send,
T: Send,
impl<T> Sync for Vector2<T> where
T: Sync,
T: Sync,
impl<T> Unpin for Vector2<T> where
T: Unpin,
T: Unpin,