[][src]Struct glsl_linalg::vector::V2

pub struct V2<T>(pub [T; 2]);

Trait Implementations

impl<F> Converter<V2<F>, V2<F>> for EmptyConverter where
    F: Numeric
[src]

impl<F> Converter<F, V2<F>> for V1<F> where
    F: Numeric
[src]

impl<F> Converter<V2<F>, V3<F>> for V1<F> where
    F: Numeric
[src]

impl<F> Converter<F, V3<F>> for V2<F> where
    F: Numeric
[src]

impl<F> Converter<V2<F>, V4<F>> for V2<F> where
    F: Numeric
[src]

impl<T> Finalizer<V2<T>> for V2<T>[src]

impl<T> Finalizer<V2<T>> for V1<T> where
    T: Numeric
[src]

impl<T> Finalizer<V2<T>> for V3<T> where
    T: Numeric
[src]

impl<T> Finalizer<V2<T>> for V4<T> where
    T: Numeric
[src]

impl<T> Vector<T> for V2<T> where
    T: Numeric
[src]

impl<F> FloatVector<F> for V2<F> where
    F: Float
[src]

fn length(&self) -> F[src]

fn normalize(&self) -> Self[src]

fn distance(&self, rhs: &Self) -> F[src]

impl<T> Cross<T, V2<T>> for V2<T> where
    T: Numeric
[src]

impl<T: Default> Default for V2<T>[src]

impl<T: Copy> Copy for V2<T>[src]

impl<T: PartialEq> PartialEq<V2<T>> for V2<T>[src]

impl<T: Clone> Clone for V2<T>[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl<T: Debug> Debug for V2<T>[src]

impl<T> Add<V2<T>> for V2<T> where
    T: Numeric
[src]

type Output = V2<T>

The resulting type after applying the + operator.

impl<T> Sub<V2<T>> for V2<T> where
    T: Numeric
[src]

type Output = V2<T>

The resulting type after applying the - operator.

impl<T> Mul<V2<T>> for M2<T> where
    T: Numeric
[src]

type Output = V2<T>

The resulting type after applying the * operator.

impl Mul<V2<i8>> for i8[src]

type Output = V2<i8>

The resulting type after applying the * operator.

impl Mul<V2<i16>> for i16[src]

type Output = V2<i16>

The resulting type after applying the * operator.

impl Mul<V2<i32>> for i32[src]

type Output = V2<i32>

The resulting type after applying the * operator.

impl Mul<V2<i64>> for i64[src]

type Output = V2<i64>

The resulting type after applying the * operator.

impl Mul<V2<f32>> for f32[src]

type Output = V2<f32>

The resulting type after applying the * operator.

impl Mul<V2<f64>> for f64[src]

type Output = V2<f64>

The resulting type after applying the * operator.

impl<T> Mul<V2<T>> for V2<T> where
    T: Numeric
[src]

type Output = V2<T>

The resulting type after applying the * operator.

impl<T> Mul<T> for V2<T> where
    T: Numeric
[src]

type Output = V2<T>

The resulting type after applying the * operator.

impl<T> Mul<M2<T>> for V2<T> where
    T: Numeric
[src]

type Output = V2<T>

The resulting type after applying the * operator.

impl<T> Div<V2<T>> for V2<T> where
    T: Numeric
[src]

type Output = V2<T>

The resulting type after applying the / operator.

impl<T> Div<T> for V2<T> where
    T: Numeric
[src]

type Output = V2<T>

The resulting type after applying the / operator.

impl<T> Deref for V2<T> where
    T: Numeric
[src]

type Target = [T; 2]

The resulting type after dereferencing.

Auto Trait Implementations

impl<T> Send for V2<T> where
    T: Send

impl<T> Sync for V2<T> where
    T: Sync

Blanket Implementations

impl<T> From for T[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.