pub struct Vec3 {
pub e: [f64; 3],
}Expand description
A 3D vector with f64 components.
Fields§
§e: [f64; 3]Components stored as [x, y, z].
Implementations§
Trait Implementations§
Source§impl AddAssign for Vec3
impl AddAssign for Vec3
Source§fn add_assign(&mut self, v: Vec3)
fn add_assign(&mut self, v: Vec3)
Performs the
+= operation. Read moreSource§impl DivAssign<f64> for Vec3
impl DivAssign<f64> for Vec3
Source§fn div_assign(&mut self, t: f64)
fn div_assign(&mut self, t: f64)
Performs the
/= operation. Read moreSource§impl MulAssign<f64> for Vec3
impl MulAssign<f64> for Vec3
Source§fn mul_assign(&mut self, t: f64)
fn mul_assign(&mut self, t: f64)
Performs the
*= operation. Read moreimpl Copy for Vec3
impl StructuralPartialEq for Vec3
Auto Trait Implementations§
impl Freeze for Vec3
impl RefUnwindSafe for Vec3
impl Send for Vec3
impl Sync for Vec3
impl Unpin for Vec3
impl UnwindSafe for Vec3
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