#[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§
source§impl<T: FloatScalar> FloatVector<T> for Vector4<T>
impl<T: FloatScalar> FloatVector<T> for Vector4<T>
source§impl<T: Scalar> Swizzle3<T> for Vector4<T>
impl<T: Scalar> Swizzle3<T> for Vector4<T>
fn xxx(&self) -> Vector3<T>
fn xxy(&self) -> Vector3<T>
fn xxz(&self) -> Vector3<T>
fn xyx(&self) -> Vector3<T>
fn xyy(&self) -> Vector3<T>
fn xyz(&self) -> Vector3<T>
fn xzx(&self) -> Vector3<T>
fn xzy(&self) -> Vector3<T>
fn xzz(&self) -> Vector3<T>
fn yxx(&self) -> Vector3<T>
fn yxy(&self) -> Vector3<T>
fn yxz(&self) -> Vector3<T>
fn yyx(&self) -> Vector3<T>
fn yyy(&self) -> Vector3<T>
fn yyz(&self) -> Vector3<T>
fn yzx(&self) -> Vector3<T>
fn yzy(&self) -> Vector3<T>
fn yzz(&self) -> Vector3<T>
fn zxx(&self) -> Vector3<T>
fn zxy(&self) -> Vector3<T>
fn zxz(&self) -> Vector3<T>
fn zyx(&self) -> Vector3<T>
fn zyy(&self) -> Vector3<T>
fn zyz(&self) -> Vector3<T>
fn zzx(&self) -> Vector3<T>
fn zzy(&self) -> Vector3<T>
fn zzz(&self) -> Vector3<T>
source§impl<T: Scalar> Vector<T> for Vector4<T>
impl<T: Scalar> Vector<T> for Vector4<T>
fn zero() -> Self
fn dot(l: &Self, r: &Self) -> T
fn add_vv(l: &Self, r: &Self) -> Self
fn sub_vv(l: &Self, r: &Self) -> Self
fn mul_vv(l: &Self, r: &Self) -> Self
fn div_vv(l: &Self, r: &Self) -> Self
fn mul_vs(l: &Self, r: T) -> Self
fn div_vs(l: &Self, r: T) -> Self
fn rem_vv(l: &Self, r: &Self) -> Self
fn min(l: &Self, r: &Self) -> Self
fn max(l: &Self, r: &Self) -> Self
impl<T: Copy> Copy for Vector4<T>
Auto Trait Implementations§
impl<T> Freeze for Vector4<T>where
T: Freeze,
impl<T> RefUnwindSafe for Vector4<T>where
T: RefUnwindSafe,
impl<T> Send for Vector4<T>where
T: Send,
impl<T> Sync for Vector4<T>where
T: Sync,
impl<T> Unpin for Vector4<T>where
T: Unpin,
impl<T> UnwindSafe for Vector4<T>where
T: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more