[][src]Struct glsl_linalg::vector::V4

pub struct V4<T>(pub [T; 4]);

Trait Implementations

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

impl<T: Clone> Clone for V4<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 V4<T>[src]

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

type Output = V4<T>

The resulting type after applying the - operator.

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

type Output = V4<T>

The resulting type after applying the + operator.

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

type Output = V4<T>

The resulting type after applying the * operator.

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

type Output = V4<i8>

The resulting type after applying the * operator.

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

type Output = V4<i16>

The resulting type after applying the * operator.

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

type Output = V4<i32>

The resulting type after applying the * operator.

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

type Output = V4<i64>

The resulting type after applying the * operator.

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

type Output = V4<f32>

The resulting type after applying the * operator.

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

type Output = V4<f64>

The resulting type after applying the * operator.

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

type Output = V4<T>

The resulting type after applying the * operator.

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

type Output = V4<T>

The resulting type after applying the * operator.

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

type Output = V4<T>

The resulting type after applying the * operator.

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

type Output = V4<T>

The resulting type after applying the / operator.

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

type Output = V4<T>

The resulting type after applying the / operator.

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

type Target = [T; 4]

The resulting type after dereferencing.

Auto Trait Implementations

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

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

Blanket Implementations

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> From for T[src]

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.