Struct glw::math::Vec2 [−][src]
pub struct Vec2<T> { pub x: T, pub y: T, }
Fields
x: T
y: T
Methods
impl<T> Vec2<T>
[src]
impl<T> Vec2<T>
Trait Implementations
impl<T: Default> Default for Vec2<T>
[src]
impl<T: Default> Default for Vec2<T>
impl<T: Clone> Clone for Vec2<T>
[src]
impl<T: Clone> Clone for Vec2<T>
fn clone(&self) -> Vec2<T>
[src]
fn clone(&self) -> Vec2<T>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl<T: PartialEq> PartialEq for Vec2<T>
[src]
impl<T: PartialEq> PartialEq for Vec2<T>
fn eq(&self, other: &Vec2<T>) -> bool
[src]
fn eq(&self, other: &Vec2<T>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Vec2<T>) -> bool
[src]
fn ne(&self, other: &Vec2<T>) -> bool
This method tests for !=
.
impl<T: Debug> Debug for Vec2<T>
[src]
impl<T: Debug> Debug for Vec2<T>
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<T> Mul for Vec2<T> where
T: Mul<Output = T>,
[src]
impl<T> Mul for Vec2<T> where
T: Mul<Output = T>,
type Output = Self
The resulting type after applying the *
operator.
fn mul(self, rhs: Self) -> Self
[src]
fn mul(self, rhs: Self) -> Self
Performs the *
operation.
impl<T> Add for Vec2<T> where
T: Add<Output = T>,
[src]
impl<T> Add for Vec2<T> where
T: Add<Output = T>,
type Output = Self
The resulting type after applying the +
operator.
fn add(self, rhs: Self) -> Self
[src]
fn add(self, rhs: Self) -> Self
Performs the +
operation.
impl<T> Div for Vec2<T> where
T: Div<Output = T>,
[src]
impl<T> Div for Vec2<T> where
T: Div<Output = T>,