Struct glw::math::Vec2[][src]

pub struct Vec2<T> {
    pub x: T,
    pub y: T,
}

Fields

Methods

impl<T> Vec2<T>
[src]

Trait Implementations

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

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

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<T: PartialEq> 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: Debug> Debug for Vec2<T>
[src]

Formats the value using the given formatter. Read more

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

The resulting type after applying the * operator.

Performs the * operation.

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

The resulting type after applying the + operator.

Performs the + operation.

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

The resulting type after applying the / operator.

Performs the / operation.

Auto Trait Implementations

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

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