#[repr(C)]pub struct Vector4<T>(pub T, pub T, pub T, pub T);Expand description
4-dimensional vector
Tuple Fields§
§0: T§1: T§2: T§3: TImplementations§
Trait Implementations§
Source§impl<T: AddAssign> AddAssign for Vector4<T>
impl<T: AddAssign> AddAssign for Vector4<T>
Source§fn add_assign(&mut self, other: Self)
fn add_assign(&mut self, other: Self)
Performs the
+= operation. Read moreSource§impl<T: Div<T> + Copy> From<Vector4<T>> for Vector3<<T as Div>::Output>
Vector4(x, y, z, w) -> Vector3(x / w, y / w, z / w)
panic occured when w == 0
impl<T: Div<T> + Copy> From<Vector4<T>> for Vector3<<T as Div>::Output>
Vector4(x, y, z, w) -> Vector3(x / w, y / w, z / w) panic occured when w == 0
Source§impl<T: MulAssign + Copy> MulAssign<T> for Vector4<T>
impl<T: MulAssign + Copy> MulAssign<T> for Vector4<T>
Source§fn mul_assign(&mut self, other: T)
fn mul_assign(&mut self, other: T)
Performs the
*= operation. Read moreSource§impl<T: Ord> Ord for Vector4<T>
impl<T: Ord> Ord for Vector4<T>
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<T: PartialOrd> PartialOrd for Vector4<T>
impl<T: PartialOrd> PartialOrd for Vector4<T>
Source§impl<T: SubAssign> SubAssign for Vector4<T>
impl<T: SubAssign> SubAssign for Vector4<T>
Source§fn sub_assign(&mut self, other: Self)
fn sub_assign(&mut self, other: Self)
Performs the
-= operation. Read moreimpl<T: Copy> Copy for Vector4<T>
impl<T: Eq> Eq for Vector4<T>
impl<T> StructuralPartialEq 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