Struct vmath::vec::Vec4
[−]
[src]
pub struct Vec4 { pub x: f32, pub y: f32, pub z: f32, pub w: f32, }
Fields
x: f32
y: f32
z: f32
w: f32
Methods
impl Vec4
[src]
Trait Implementations
impl Clone for Vec4
[src]
fn clone(&self) -> Vec4
[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 Vec4
[src]
impl Debug for Vec4
[src]
impl PartialEq for Vec4
[src]
fn eq(&self, __arg_0: &Vec4) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Vec4) -> bool
[src]
This method tests for !=
.
impl Add<Vec4> for Vec4
[src]
type Output = Vec4
The resulting type after applying the +
operator.
fn add(self, rhs: Vec4) -> Vec4
[src]
Performs the +
operation.
impl Sub<Vec4> for Vec4
[src]
type Output = Vec4
The resulting type after applying the -
operator.
fn sub(self, rhs: Vec4) -> Vec4
[src]
Performs the -
operation.
impl Mul<Vec4> for Vec4
[src]
type Output = Vec4
The resulting type after applying the *
operator.
fn mul(self, rhs: Vec4) -> Vec4
[src]
Performs the *
operation.
impl Div<Vec4> for Vec4
[src]
type Output = Vec4
The resulting type after applying the /
operator.
fn div(self, rhs: Vec4) -> Vec4
[src]
Performs the /
operation.