Struct coord::vec4::Vec4 [−][src]
pub struct Vec4<T: VecItem> { pub x: T, pub y: T, pub z: T, pub w: T, }
Fields
x: T
y: T
z: T
w: T
Methods
impl<T: VecItem> Vec4<T>
[src]
impl<T: VecItem> Vec4<T>
Trait Implementations
impl<T: Copy + VecItem> Copy for Vec4<T>
[src]
impl<T: Copy + VecItem> Copy for Vec4<T>
impl<T: Clone + VecItem> Clone for Vec4<T>
[src]
impl<T: Clone + VecItem> Clone for Vec4<T>
fn clone(&self) -> Vec4<T>
[src]
fn clone(&self) -> Vec4<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 + VecItem> Debug for Vec4<T>
[src]
impl<T: Debug + VecItem> Debug for Vec4<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: VecItem> Vec for Vec4<T>
[src]
impl<T: VecItem> Vec for Vec4<T>
type Item = T
impl<T: VecItem> From<[T; 4]> for Vec4<T>
[src]
impl<T: VecItem> From<[T; 4]> for Vec4<T>
impl<T: VecItem> From<(T, T, T, T)> for Vec4<T>
[src]
impl<T: VecItem> From<(T, T, T, T)> for Vec4<T>
impl<T> Add for Vec4<T> where
T: VecItem + Add,
T::Output: VecItem + Add,
[src]
impl<T> Add for Vec4<T> where
T: VecItem + Add,
T::Output: VecItem + Add,
type Output = Vec4<T::Output>
The resulting type after applying the +
operator.
fn add(self, other: Self) -> Vec4<T::Output>
[src]
fn add(self, other: Self) -> Vec4<T::Output>
Performs the +
operation.
impl<T> Sub for Vec4<T> where
T: VecItem + Sub,
T::Output: VecItem + Sub,
[src]
impl<T> Sub for Vec4<T> where
T: VecItem + Sub,
T::Output: VecItem + Sub,
type Output = Vec4<T::Output>
The resulting type after applying the -
operator.
fn sub(self, other: Self) -> Vec4<T::Output>
[src]
fn sub(self, other: Self) -> Vec4<T::Output>
Performs the -
operation.
impl<T> Mul for Vec4<T> where
T: VecItem + Mul,
T::Output: VecItem + Mul,
[src]
impl<T> Mul for Vec4<T> where
T: VecItem + Mul,
T::Output: VecItem + Mul,
type Output = Vec4<T::Output>
The resulting type after applying the *
operator.
fn mul(self, other: Self) -> Vec4<T::Output>
[src]
fn mul(self, other: Self) -> Vec4<T::Output>
Performs the *
operation.
impl<T> Div for Vec4<T> where
T: VecItem + Div,
T::Output: VecItem + Div,
[src]
impl<T> Div for Vec4<T> where
T: VecItem + Div,
T::Output: VecItem + Div,
type Output = Vec4<T::Output>
The resulting type after applying the /
operator.
fn div(self, other: Self) -> Vec4<T::Output>
[src]
fn div(self, other: Self) -> Vec4<T::Output>
Performs the /
operation.
impl<T> AddAssign for Vec4<T> where
T: VecItem + Add<Output = T>,
[src]
impl<T> AddAssign for Vec4<T> where
T: VecItem + Add<Output = T>,
fn add_assign(&mut self, other: Self)
[src]
fn add_assign(&mut self, other: Self)
Performs the +=
operation.
impl<T> SubAssign for Vec4<T> where
T: VecItem + Sub<Output = T>,
[src]
impl<T> SubAssign for Vec4<T> where
T: VecItem + Sub<Output = T>,
fn sub_assign(&mut self, other: Self)
[src]
fn sub_assign(&mut self, other: Self)
Performs the -=
operation.
impl<T> MulAssign for Vec4<T> where
T: VecItem + Mul<Output = T>,
[src]
impl<T> MulAssign for Vec4<T> where
T: VecItem + Mul<Output = T>,
fn mul_assign(&mut self, other: Self)
[src]
fn mul_assign(&mut self, other: Self)
Performs the *=
operation.
impl<T> DivAssign for Vec4<T> where
T: VecItem + Div<Output = T>,
[src]
impl<T> DivAssign for Vec4<T> where
T: VecItem + Div<Output = T>,
fn div_assign(&mut self, other: Self)
[src]
fn div_assign(&mut self, other: Self)
Performs the /=
operation.
impl<T> VecNum for Vec4<T> where
T: VecItem + Num,
[src]
impl<T> VecNum for Vec4<T> where
T: VecItem + Num,
impl<T> VecSigned for Vec4<T> where
T: VecItem + Signed,
[src]
impl<T> VecSigned for Vec4<T> where
T: VecItem + Signed,
fn snake_length(&self) -> Self::Item
[src]
fn snake_length(&self) -> Self::Item
impl<T> VecFloat for Vec4<T> where
T: VecItem + Float,
[src]
impl<T> VecFloat for Vec4<T> where
T: VecItem + Float,