Struct vmath::vec2::Vec2
[−]
[src]
pub struct Vec2 { /* fields omitted */ }
Methods
impl Vec2
[src]
Trait Implementations
impl Clone for Vec2
[src]
fn clone(&self) -> Vec2
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Copy for Vec2
[src]
impl Add<Vec2> for Vec2
[src]
type Output = Vec2
The resulting type after applying the +
operator.
fn add(self, rhs: Vec2) -> Vec2
[src]
Performs the +
operation.
impl Sub<Vec2> for Vec2
[src]
type Output = Vec2
The resulting type after applying the -
operator.
fn sub(self, rhs: Vec2) -> Vec2
[src]
Performs the -
operation.
impl Mul<Vec2> for Vec2
[src]
type Output = Vec2
The resulting type after applying the *
operator.
fn mul(self, rhs: Vec2) -> Vec2
[src]
Performs the *
operation.
impl Div<Vec2> for Vec2
[src]
type Output = Vec2
The resulting type after applying the /
operator.
fn div(self, rhs: Vec2) -> Vec2
[src]
Performs the /
operation.