Struct coord::vec4::Vec4[][src]

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

Fields

Methods

impl<T: VecItem> Vec4<T>
[src]

Trait Implementations

impl<T: Copy + VecItem> Copy for Vec4<T>
[src]

impl<T: Clone + VecItem> Clone for Vec4<T>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<T: Debug + VecItem> Debug for Vec4<T>
[src]

Formats the value using the given formatter. Read more

impl<T: VecItem> Vec for Vec4<T>
[src]

impl<T: VecItem> From<[T; 4]> for Vec4<T>
[src]

Performs the conversion.

impl<T: VecItem> From<(T, T, T, T)> for Vec4<T>
[src]

Performs the conversion.

impl<T> Add for Vec4<T> where
    T: VecItem + Add,
    T::Output: VecItem + Add
[src]

The resulting type after applying the + operator.

Performs the + operation.

impl<T> Sub for Vec4<T> where
    T: VecItem + Sub,
    T::Output: VecItem + Sub
[src]

The resulting type after applying the - operator.

Performs the - operation.

impl<T> Mul for Vec4<T> where
    T: VecItem + Mul,
    T::Output: VecItem + Mul
[src]

The resulting type after applying the * operator.

Performs the * operation.

impl<T> Div for Vec4<T> where
    T: VecItem + Div,
    T::Output: VecItem + Div
[src]

The resulting type after applying the / operator.

Performs the / operation.

impl<T> AddAssign for Vec4<T> where
    T: VecItem + Add<Output = T>, 
[src]

Performs the += operation.

impl<T> SubAssign for Vec4<T> where
    T: VecItem + Sub<Output = T>, 
[src]

Performs the -= operation.

impl<T> MulAssign for Vec4<T> where
    T: VecItem + Mul<Output = T>, 
[src]

Performs the *= operation.

impl<T> DivAssign for Vec4<T> where
    T: VecItem + Div<Output = T>, 
[src]

Performs the /= operation.

impl<T> VecNum for Vec4<T> where
    T: VecItem + Num
[src]

impl<T> VecSigned for Vec4<T> where
    T: VecItem + Signed
[src]

impl<T> VecFloat for Vec4<T> where
    T: VecItem + Float
[src]

Auto Trait Implementations

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

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