Struct vecmat::vec::Vec2 [] [src]

pub struct Vec2<T: Copy> {
    pub d: [T; 2],
}

Fields

Methods

impl<T> Vec2<T> where
    T: Copy + Default
[src]

impl<T> Vec2<T> where
    T: Copy
[src]

impl<T> Vec2<T> where
    T: Copy
[src]

impl<T> Vec2<T> where
    T: Copy
[src]

impl<T> Vec2<T> where
    T: Copy + Integer
[src]

impl<T> Vec2<T> where
    T: Copy + Num
[src]

impl<T> Vec2<T> where
    T: Copy + Num + Float
[src]

impl<T> Vec2<T> where
    T: Copy + Zero
[src]

impl Vec2<bool>
[src]

impl Vec2<bool>
[src]

impl<T> Vec2<T> where
    T: Copy + PartialEq
[src]

impl<T> Vec2<T> where
    T: Copy + PartialOrd
[src]

impl<T> Vec2<T> where
    T: Copy + PartialOrd
[src]

Trait Implementations

impl<T: Clone + Copy> Clone for Vec2<T>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<T: Copy + Copy> Copy for Vec2<T>
[src]

impl<T: Debug + Copy> Debug for Vec2<T>
[src]

Formats the value using the given formatter.

impl<T: PartialEq + Copy> PartialEq for Vec2<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> Index<usize> for Vec2<T> where
    T: Copy
[src]

The returned type after indexing

The method for the indexing (container[index]) operation

impl<T> IndexMut<usize> for Vec2<T> where
    T: Copy
[src]

The method for the mutable indexing (container[index]) operation

impl<T> Default for Vec2<T> where
    T: Copy + Default
[src]

Returns the "default value" for a type. Read more

impl<T> Display for Vec2<T> where
    T: Copy + Display
[src]

Formats the value using the given formatter. Read more

impl<T> Neg for Vec2<T> where
    T: Copy + Num + Signed
[src]

The resulting type after applying the - operator

The method for the unary - operator

impl<T> Add for Vec2<T> where
    T: Copy + Num + Add<Output = T>, 
[src]

The resulting type after applying the + operator

The method for the + operator

impl<T> Sub for Vec2<T> where
    T: Copy + Num + Sub<Output = T>, 
[src]

The resulting type after applying the - operator

The method for the - operator

impl<T> AddAssign for Vec2<T> where
    T: Copy + Num + Add<Output = T>, 
[src]

The method for the += operator

impl<T> SubAssign for Vec2<T> where
    T: Copy + Num + Sub<Output = T>, 
[src]

The method for the -= operator

impl<T> Mul for Vec2<T> where
    T: Copy + Num + Mul<Output = T>, 
[src]

The resulting type after applying the * operator

The method for the * operator

impl<T> Mul<T> for Vec2<T> where
    T: Copy + Num + Mul<Output = T>, 
[src]

The resulting type after applying the * operator

The method for the * operator

impl<T> Div for Vec2<T> where
    T: Copy + Num + Div<Output = T>, 
[src]

The resulting type after applying the / operator

The method for the / operator

impl<T> Div<T> for Vec2<T> where
    T: Copy + Num + Div<Output = T>, 
[src]

The resulting type after applying the / operator

The method for the / operator

impl<T> Rem for Vec2<T> where
    T: Copy + Num + Rem<Output = T>, 
[src]

The resulting type after applying the % operator

The method for the % operator

impl<T> Rem<T> for Vec2<T> where
    T: Copy + Num + Rem<Output = T>, 
[src]

The resulting type after applying the % operator

The method for the % operator

impl<T> MulAssign for Vec2<T> where
    T: Copy + Num + Mul<Output = T>, 
[src]

The method for the *= operator

impl<T> MulAssign<T> for Vec2<T> where
    T: Copy + Num + Mul<Output = T>, 
[src]

The method for the *= operator

impl<T> DivAssign for Vec2<T> where
    T: Copy + Num + Div<Output = T>, 
[src]

The method for the /= operator

impl<T> DivAssign<T> for Vec2<T> where
    T: Copy + Num + Div<Output = T>, 
[src]

The method for the /= operator

impl<T> RemAssign for Vec2<T> where
    T: Copy + Num + Rem<Output = T>, 
[src]

The method for the %= operator

impl<T> RemAssign<T> for Vec2<T> where
    T: Copy + Num + Rem<Output = T>, 
[src]

The method for the %= operator

impl<T> Dot<Vec2<T>> for Vec2<T> where
    T: Copy + Num
[src]

impl<T> Zero for Vec2<T> where
    T: Copy + Num + Zero
[src]

Returns the additive identity element of Self, 0. Read more

Returns true if self is equal to the additive identity.

impl Not for Vec2<bool>
[src]

The resulting type after applying the ! operator

The method for the unary ! operator

impl BitAnd for Vec2<bool>
[src]

The resulting type after applying the & operator

The method for the & operator

impl BitOr for Vec2<bool>
[src]

The resulting type after applying the | operator

The method for the | operator

impl BitXor for Vec2<bool>
[src]

The resulting type after applying the ^ operator

The method for the ^ operator

impl BitAndAssign for Vec2<bool>
[src]

The method for the &= operator

impl BitOrAssign for Vec2<bool>
[src]

The method for the |= operator

impl BitXorAssign for Vec2<bool>
[src]

The method for the ^= operator

impl<T> Outer<Vec2<T>> for Vec2<T> where
    T: Copy + Num
[src]

impl<T> Dot<Mat2x2<T>> for Vec2<T> where
    T: Copy + Num
[src]

impl<T> Outer<Vec3<T>> for Vec2<T> where
    T: Copy + Num
[src]

impl<T> Dot<Mat3x2<T>> for Vec2<T> where
    T: Copy + Num
[src]

impl<T> Outer<Vec4<T>> for Vec2<T> where
    T: Copy + Num
[src]

impl<T> Dot<Mat4x2<T>> for Vec2<T> where
    T: Copy + Num
[src]