pub struct Vec3d { /* private fields */ }
Implementations§
Source§impl Vec3d
impl Vec3d
pub fn floor(self) -> Self
pub fn ceil(self) -> Self
pub fn round(self) -> Self
pub fn trunc(self) -> Self
pub fn fract(self) -> Self
pub fn abs(self) -> Self
pub fn signum(self) -> Self
pub fn powf(self, n: f64) -> Self
pub fn sqrt(self) -> Self
pub fn exp(self) -> Self
pub fn exp2(self) -> Self
pub fn ln(self) -> Self
pub fn log(self, base: f64) -> Self
pub fn log2(self) -> Self
pub fn log10(self) -> Self
pub fn cbrt(self) -> Self
pub fn sin(self) -> Self
pub fn cos(self) -> Self
pub fn tan(self) -> Self
pub fn sin_cos(self) -> (Self, Self)
pub fn lerp(self, rhs: Self, s: f64) -> Self
pub fn lerp_vec(self, rhs: Self, s: Self) -> Self
pub fn is_nan(self) -> bool
pub fn is_infinite(self) -> bool
pub fn is_finite(self) -> bool
pub fn recip(self) -> Self
pub fn max(self, rhs: Self) -> Self
pub fn min(self, rhs: Self) -> Self
pub fn clamp(self, min: Self, max: Self) -> Self
pub fn saturate(self) -> Self
pub fn min_element(self) -> f64
pub fn max_element(self) -> f64
Source§impl Vec3d
impl Vec3d
pub fn dot(self, rhs: Self) -> f64
pub fn cross(self, rhs: Self) -> Self
pub fn length(self) -> f64
pub fn length_squared(self) -> f64
pub fn length_recip(self) -> f64
pub fn distance(self, rhs: Self) -> f64
pub fn distance_squared(self, rhs: Self) -> f64
pub fn normalize(self) -> Self
pub fn try_normalize(self) -> Option<Self>
pub fn normalize_or_zero(self) -> Self
pub fn is_normalized(self) -> bool
pub fn angle_between(self, rhs: Self) -> f64
Source§impl Vec3d
impl Vec3d
pub fn x(self) -> f64
pub fn y(self) -> f64
pub fn z(self) -> f64
pub fn xx(self) -> Vec2d
pub fn xy(self) -> Vec2d
pub fn xz(self) -> Vec2d
pub fn yx(self) -> Vec2d
pub fn yy(self) -> Vec2d
pub fn yz(self) -> Vec2d
pub fn zx(self) -> Vec2d
pub fn zy(self) -> Vec2d
pub fn zz(self) -> Vec2d
pub fn xxx(self) -> Self
pub fn xxy(self) -> Self
pub fn xxz(self) -> Self
pub fn xyx(self) -> Self
pub fn xyy(self) -> Self
pub fn xyz(self) -> Self
pub fn xzx(self) -> Self
pub fn xzy(self) -> Self
pub fn xzz(self) -> Self
pub fn yxx(self) -> Self
pub fn yxy(self) -> Self
pub fn yxz(self) -> Self
pub fn yyx(self) -> Self
pub fn yyy(self) -> Self
pub fn yyz(self) -> Self
pub fn yzx(self) -> Self
pub fn yzy(self) -> Self
pub fn yzz(self) -> Self
pub fn zxx(self) -> Self
pub fn zxy(self) -> Self
pub fn zxz(self) -> Self
pub fn zyx(self) -> Self
pub fn zyy(self) -> Self
pub fn zyz(self) -> Self
pub fn zzx(self) -> Self
pub fn zzy(self) -> Self
pub fn zzz(self) -> Self
pub fn xxxx(self) -> Vec4d
pub fn xxxy(self) -> Vec4d
pub fn xxxz(self) -> Vec4d
pub fn xxyx(self) -> Vec4d
pub fn xxyy(self) -> Vec4d
pub fn xxyz(self) -> Vec4d
pub fn xxzx(self) -> Vec4d
pub fn xxzy(self) -> Vec4d
pub fn xxzz(self) -> Vec4d
pub fn xyxx(self) -> Vec4d
pub fn xyxy(self) -> Vec4d
pub fn xyxz(self) -> Vec4d
pub fn xyyx(self) -> Vec4d
pub fn xyyy(self) -> Vec4d
pub fn xyyz(self) -> Vec4d
pub fn xyzx(self) -> Vec4d
pub fn xyzy(self) -> Vec4d
pub fn xyzz(self) -> Vec4d
pub fn xzxx(self) -> Vec4d
pub fn xzxy(self) -> Vec4d
pub fn xzxz(self) -> Vec4d
pub fn xzyx(self) -> Vec4d
pub fn xzyy(self) -> Vec4d
pub fn xzyz(self) -> Vec4d
pub fn xzzx(self) -> Vec4d
pub fn xzzy(self) -> Vec4d
pub fn xzzz(self) -> Vec4d
pub fn yxxx(self) -> Vec4d
pub fn yxxy(self) -> Vec4d
pub fn yxxz(self) -> Vec4d
pub fn yxyx(self) -> Vec4d
pub fn yxyy(self) -> Vec4d
pub fn yxyz(self) -> Vec4d
pub fn yxzx(self) -> Vec4d
pub fn yxzy(self) -> Vec4d
pub fn yxzz(self) -> Vec4d
pub fn yyxx(self) -> Vec4d
pub fn yyxy(self) -> Vec4d
pub fn yyxz(self) -> Vec4d
pub fn yyyx(self) -> Vec4d
pub fn yyyy(self) -> Vec4d
pub fn yyyz(self) -> Vec4d
pub fn yyzx(self) -> Vec4d
pub fn yyzy(self) -> Vec4d
pub fn yyzz(self) -> Vec4d
pub fn yzxx(self) -> Vec4d
pub fn yzxy(self) -> Vec4d
pub fn yzxz(self) -> Vec4d
pub fn yzyx(self) -> Vec4d
pub fn yzyy(self) -> Vec4d
pub fn yzyz(self) -> Vec4d
pub fn yzzx(self) -> Vec4d
pub fn yzzy(self) -> Vec4d
pub fn yzzz(self) -> Vec4d
pub fn zxxx(self) -> Vec4d
pub fn zxxy(self) -> Vec4d
pub fn zxxz(self) -> Vec4d
pub fn zxyx(self) -> Vec4d
pub fn zxyy(self) -> Vec4d
pub fn zxyz(self) -> Vec4d
pub fn zxzx(self) -> Vec4d
pub fn zxzy(self) -> Vec4d
pub fn zxzz(self) -> Vec4d
pub fn zyxx(self) -> Vec4d
pub fn zyxy(self) -> Vec4d
pub fn zyxz(self) -> Vec4d
pub fn zyyx(self) -> Vec4d
pub fn zyyy(self) -> Vec4d
pub fn zyyz(self) -> Vec4d
pub fn zyzx(self) -> Vec4d
pub fn zyzy(self) -> Vec4d
pub fn zyzz(self) -> Vec4d
pub fn zzxx(self) -> Vec4d
pub fn zzxy(self) -> Vec4d
pub fn zzxz(self) -> Vec4d
pub fn zzyx(self) -> Vec4d
pub fn zzyy(self) -> Vec4d
pub fn zzyz(self) -> Vec4d
pub fn zzzx(self) -> Vec4d
pub fn zzzy(self) -> Vec4d
pub fn zzzz(self) -> Vec4d
Trait Implementations§
Source§impl AddAssign<f64> for Vec3d
impl AddAssign<f64> for Vec3d
Source§fn add_assign(&mut self, rhs: f64)
fn add_assign(&mut self, rhs: f64)
Performs the
+=
operation. Read moreSource§impl AddAssign for Vec3d
impl AddAssign for Vec3d
Source§fn add_assign(&mut self, rhs: Vec3d)
fn add_assign(&mut self, rhs: Vec3d)
Performs the
+=
operation. Read moreSource§impl DivAssign<f64> for Vec3d
impl DivAssign<f64> for Vec3d
Source§fn div_assign(&mut self, rhs: f64)
fn div_assign(&mut self, rhs: f64)
Performs the
/=
operation. Read moreSource§impl DivAssign for Vec3d
impl DivAssign for Vec3d
Source§fn div_assign(&mut self, rhs: Vec3d)
fn div_assign(&mut self, rhs: Vec3d)
Performs the
/=
operation. Read moreSource§impl MulAssign<f64> for Vec3d
impl MulAssign<f64> for Vec3d
Source§fn mul_assign(&mut self, rhs: f64)
fn mul_assign(&mut self, rhs: f64)
Performs the
*=
operation. Read moreSource§impl MulAssign for Vec3d
impl MulAssign for Vec3d
Source§fn mul_assign(&mut self, rhs: Vec3d)
fn mul_assign(&mut self, rhs: Vec3d)
Performs the
*=
operation. Read moreSource§impl SubAssign<f64> for Vec3d
impl SubAssign<f64> for Vec3d
Source§fn sub_assign(&mut self, rhs: f64)
fn sub_assign(&mut self, rhs: f64)
Performs the
-=
operation. Read moreSource§impl SubAssign for Vec3d
impl SubAssign for Vec3d
Source§fn sub_assign(&mut self, rhs: Vec3d)
fn sub_assign(&mut self, rhs: Vec3d)
Performs the
-=
operation. Read moreimpl Copy for Vec3d
impl StructuralPartialEq for Vec3d
Auto Trait Implementations§
impl Freeze for Vec3d
impl RefUnwindSafe for Vec3d
impl Send for Vec3d
impl Sync for Vec3d
impl Unpin for Vec3d
impl UnwindSafe for Vec3d
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