Struct matmath::game::vec4::Vector4[][src]

pub struct Vector4<T> {
    pub x: T,
    pub y: T,
    pub z: T,
    pub w: T,
}

Fields

Methods

impl<T> Vector4<T>
[src]

Multiplies the vector with a scalar

Applies a function to every element of the vector

Trait Implementations

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

Formats the value using the given formatter. Read more

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

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

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl<T: Eq> Eq for Vector4<T>
[src]

impl<T> Display for Vector4<T> where
    T: Display + Clone
[src]

Formats the value using the given formatter. Read more

impl<T> Into<Matrix<T>> for Vector4<T>
[src]

Performs the conversion.

impl<T> From<Matrix<T>> for Vector4<T> where
    T: Clone
[src]

Performs the conversion.

impl<T> Into<Vector<T>> for Vector4<T>
[src]

Performs the conversion.

impl<T> From<Vector<T>> for Vector4<T> where
    T: Clone
[src]

Performs the conversion.

impl<T> Into<(T, T, T, T)> for Vector4<T>
[src]

Performs the conversion.

impl<T> From<(T, T, T, T)> for Vector4<T>
[src]

Performs the conversion.

impl<T, U, O> Add<Vector4<U>> for Vector4<T> where
    T: Add<U, Output = O>, 
[src]

Adds two vectors element by element

The resulting type after applying the + operator.

Performs the + operation.

impl<T, U, O> Sub<Vector4<U>> for Vector4<T> where
    T: Sub<U, Output = O>, 
[src]

Subtracts two vectors element by element

The resulting type after applying the - operator.

Performs the - operation.

impl<T, O> Neg for Vector4<T> where
    T: Neg<Output = O>, 
[src]

The resulting type after applying the - operator.

Performs the unary - operation.

impl<T, U, O> Rem<U> for Vector4<T> where
    T: Rem<U, Output = O>,
    U: Clone
[src]

The resulting type after applying the % operator.

Performs the % operation.

impl<T, U, O> BitAnd<U> for Vector4<T> where
    T: BitAnd<U, Output = O>,
    U: Clone
[src]

The resulting type after applying the & operator.

Performs the & operation.

impl<T, U, O> BitOr<U> for Vector4<T> where
    T: BitOr<U, Output = O>,
    U: Clone
[src]

The resulting type after applying the | operator.

Performs the | operation.

impl<T, U, O> BitXor<U> for Vector4<T> where
    T: BitXor<U, Output = O>,
    U: Clone
[src]

The resulting type after applying the ^ operator.

Performs the ^ operation.

impl<T, O> Not for Vector4<T> where
    T: Not<Output = O>, 
[src]

The resulting type after applying the ! operator.

Performs the unary ! operation.

impl<T, U, O> Shl<U> for Vector4<T> where
    T: Shl<U, Output = O>,
    U: Clone
[src]

The resulting type after applying the << operator.

Performs the << operation.

impl<T, U, O> Shr<U> for Vector4<T> where
    T: Shr<U, Output = O>,
    U: Clone
[src]

The resulting type after applying the >> operator.

Performs the >> operation.

Auto Trait Implementations

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

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