Struct rs_math3d::vector::Vector4 [−][src]
#[repr(C)]pub struct Vector4<T> { pub x: T, pub y: T, pub z: T, pub w: T, }
Fields
x: T
y: T
z: T
w: T
Implementations
Trait Implementations
impl<T: Scalar> Swizzle3<T> for Vector4<T>
[src]
impl<T: Scalar> Swizzle3<T> for Vector4<T>
[src]fn xxx(&self) -> Vector3<T>
[src]
fn xxy(&self) -> Vector3<T>
[src]
fn xxz(&self) -> Vector3<T>
[src]
fn xyx(&self) -> Vector3<T>
[src]
fn xyy(&self) -> Vector3<T>
[src]
fn xyz(&self) -> Vector3<T>
[src]
fn xzx(&self) -> Vector3<T>
[src]
fn xzy(&self) -> Vector3<T>
[src]
fn xzz(&self) -> Vector3<T>
[src]
fn yxx(&self) -> Vector3<T>
[src]
fn yxy(&self) -> Vector3<T>
[src]
fn yxz(&self) -> Vector3<T>
[src]
fn yyx(&self) -> Vector3<T>
[src]
fn yyy(&self) -> Vector3<T>
[src]
fn yyz(&self) -> Vector3<T>
[src]
fn yzx(&self) -> Vector3<T>
[src]
fn yzy(&self) -> Vector3<T>
[src]
fn yzz(&self) -> Vector3<T>
[src]
fn zxx(&self) -> Vector3<T>
[src]
fn zxy(&self) -> Vector3<T>
[src]
fn zxz(&self) -> Vector3<T>
[src]
fn zyx(&self) -> Vector3<T>
[src]
fn zyy(&self) -> Vector3<T>
[src]
fn zyz(&self) -> Vector3<T>
[src]
fn zzx(&self) -> Vector3<T>
[src]
fn zzy(&self) -> Vector3<T>
[src]
fn zzz(&self) -> Vector3<T>
[src]
impl<T: Scalar> Vector<T, Vector4<T>, Vector4<T>> for Vector4<T>
[src]
impl<T: Scalar> Vector<T, Vector4<T>, Vector4<T>> for Vector4<T>
[src]fn zero() -> Self
[src]
fn length(&self) -> T
[src]
fn dot(l: &Self, r: &Self) -> T
[src]
fn add_vv(l: &Self, r: &Self) -> Self
[src]
fn sub_vv(l: &Self, r: &Self) -> Self
[src]
fn mul_vv(l: &Self, r: &Self) -> Self
[src]
fn div_vv(l: &Self, r: &Self) -> Self
[src]
fn mul_vs(l: &Self, r: T) -> Self
[src]
fn div_vs(l: &Self, r: T) -> Self
[src]
fn rem_vv(l: &Self, r: &Self) -> Self
[src]
fn normalize(v: &Self) -> Self
[src]
fn distance(l: &Self, r: &Self) -> T
[src]
fn min(l: &Self, r: &Self) -> Self
[src]
fn max(l: &Self, r: &Self) -> Self
[src]
impl<T: Copy> Copy for Vector4<T>
[src]
Auto Trait Implementations
impl<T> Send for Vector4<T> where
T: Send,
T: Send,
impl<T> Sync for Vector4<T> where
T: Sync,
T: Sync,
impl<T> Unpin for Vector4<T> where
T: Unpin,
T: Unpin,