Struct glw::math::Vec3 [−][src]
pub struct Vec3<T> { pub x: T, pub y: T, pub z: T, }
Fields
x: T
y: T
z: T
Methods
impl<T> Vec3<T>
[src]
impl<T> Vec3<T>
Trait Implementations
impl<T: Default> Default for Vec3<T>
[src]
impl<T: Default> Default for Vec3<T>
impl<T: PartialEq> PartialEq for Vec3<T>
[src]
impl<T: PartialEq> PartialEq for Vec3<T>
fn eq(&self, other: &Vec3<T>) -> bool
[src]
fn eq(&self, other: &Vec3<T>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Vec3<T>) -> bool
[src]
fn ne(&self, other: &Vec3<T>) -> bool
This method tests for !=
.
impl<T: Clone> Clone for Vec3<T>
[src]
impl<T: Clone> Clone for Vec3<T>
fn clone(&self) -> Vec3<T>
[src]
fn clone(&self) -> Vec3<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: Debug> Debug for Vec3<T>
[src]
impl<T: Debug> Debug for Vec3<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> DotProduct for Vec3<T> where
T: Mul<Output = T> + Add<Output = T> + Copy,
[src]
impl<T> DotProduct for Vec3<T> where
T: Mul<Output = T> + Add<Output = T> + Copy,