#[repr(C)]pub struct Vector3<T>(pub T, pub T, pub T);Expand description
3-dimensional vector
Tuple Fields§
§0: T§1: T§2: TImplementations§
Trait Implementations§
Source§impl<T: AddAssign> AddAssign for Vector3<T>
impl<T: AddAssign> AddAssign for Vector3<T>
Source§fn add_assign(&mut self, other: Self)
fn add_assign(&mut self, other: Self)
Performs the
+= operation. Read moreSource§impl<T: Copy> From<&TypedPoint3D<T, UnknownUnit>> for Vector3<T>
impl<T: Copy> From<&TypedPoint3D<T, UnknownUnit>> for Vector3<T>
Source§impl<T: Copy> From<&TypedVector3D<T, UnknownUnit>> for Vector3<T>
impl<T: Copy> From<&TypedVector3D<T, UnknownUnit>> for Vector3<T>
Source§impl<T> From<TypedPoint3D<T, UnknownUnit>> for Vector3<T>
impl<T> From<TypedPoint3D<T, UnknownUnit>> for Vector3<T>
Source§impl<T> From<TypedVector3D<T, UnknownUnit>> for Vector3<T>
impl<T> From<TypedVector3D<T, UnknownUnit>> for Vector3<T>
Source§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> From<VkExtent3D> for Vector3<T>
impl<T> From<VkExtent3D> for Vector3<T>
Source§fn from(value: VkExtent3D) -> Self
fn from(value: VkExtent3D) -> Self
Converts to this type from the input type.
Source§impl<T> From<VkOffset3D> for Vector3<T>
impl<T> From<VkOffset3D> for Vector3<T>
Source§fn from(value: VkOffset3D) -> Self
fn from(value: VkOffset3D) -> Self
Converts to this type from the input type.
Source§impl<T: Into<u32> + Copy> ImageSize for Vector3<T>
impl<T: Into<u32> + Copy> ImageSize for Vector3<T>
const DIMENSION: VkImageType = 2i32
fn conv(self) -> VkExtent3D
Source§impl<T: MulAssign + Copy> MulAssign<T> for Vector3<T>
impl<T: MulAssign + Copy> MulAssign<T> for Vector3<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 Vector3<T>
impl<T: Ord> Ord for Vector3<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 Vector3<T>
impl<T: PartialOrd> PartialOrd for Vector3<T>
Source§impl<T: SubAssign> SubAssign for Vector3<T>
impl<T: SubAssign> SubAssign for Vector3<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 Vector3<T>
impl<T: Eq> Eq for Vector3<T>
impl<T> StructuralPartialEq for Vector3<T>
Auto Trait Implementations§
impl<T> Freeze for Vector3<T>where
T: Freeze,
impl<T> RefUnwindSafe for Vector3<T>where
T: RefUnwindSafe,
impl<T> Send for Vector3<T>where
T: Send,
impl<T> Sync for Vector3<T>where
T: Sync,
impl<T> Unpin for Vector3<T>where
T: Unpin,
impl<T> UnwindSafe for Vector3<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