Struct coord::Vec3[][src]

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

Fields

Methods

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

Trait Implementations

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

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

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

Formats the value using the given formatter. Read more

impl<T: VecItem> From<[T; 3]> for Vec3<T>
[src]

Performs the conversion.

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

Performs the conversion.

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

The resulting type after applying the + operator.

Performs the + operation.

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

The resulting type after applying the - operator.

Performs the - operation.

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

The resulting type after applying the * operator.

Performs the * operation.

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

The resulting type after applying the / operator.

Performs the / operation.

Auto Trait Implementations

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

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