pub struct Vec3<T = f32>(pub T, pub T, pub T);Expand description
A 3-dimensional vector.
Tuple Fields§
§0: T§1: T§2: TImplementations§
Trait Implementations§
Source§impl<T> AddAssign for Vec3<T>where
T: Float,
impl<T> AddAssign for Vec3<T>where
T: Float,
Source§fn add_assign(&mut self, other: Vec3<T>)
fn add_assign(&mut self, other: Vec3<T>)
Performs the
+= operation. Read moreSource§impl<T> DivAssign<T> for Vec3<T>where
T: Float,
impl<T> DivAssign<T> for Vec3<T>where
T: Float,
Source§fn div_assign(&mut self, other: T)
fn div_assign(&mut self, other: T)
Mutates the vector by dividing it by given scalar.
Source§impl<T> DivAssign for Vec3<T>where
T: Float,
impl<T> DivAssign for Vec3<T>where
T: Float,
Source§fn div_assign(&mut self, other: Vec3<T>)
fn div_assign(&mut self, other: Vec3<T>)
Mutates the vector by dividing its components with those of the given vector.
Source§impl<T> MulAssign<T> for Vec3<T>where
T: Float,
impl<T> MulAssign<T> for Vec3<T>where
T: Float,
Source§fn mul_assign(&mut self, other: T)
fn mul_assign(&mut self, other: T)
Mutates the vector by multiplying it with the scalar operand.
Source§impl<T> MulAssign for Vec3<T>where
T: Float,
impl<T> MulAssign for Vec3<T>where
T: Float,
Source§fn mul_assign(&mut self, other: Vec3<T>)
fn mul_assign(&mut self, other: Vec3<T>)
Mutates the vector by multiplying its components with those of the given vector.
Source§impl<T> SubAssign for Vec3<T>where
T: Float,
impl<T> SubAssign for Vec3<T>where
T: Float,
Source§fn sub_assign(&mut self, other: Vec3<T>)
fn sub_assign(&mut self, other: Vec3<T>)
Performs the
-= operation. Read moreimpl<T: Copy> Copy for Vec3<T>
Auto Trait Implementations§
impl<T> Freeze for Vec3<T>where
T: Freeze,
impl<T> RefUnwindSafe for Vec3<T>where
T: RefUnwindSafe,
impl<T> Send for Vec3<T>where
T: Send,
impl<T> Sync for Vec3<T>where
T: Sync,
impl<T> Unpin for Vec3<T>where
T: Unpin,
impl<T> UnwindSafe for Vec3<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