pub struct Vec4d { /* private fields */ }
Implementations§
Source§impl Vec4d
impl Vec4d
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 Vec4d
impl Vec4d
pub fn dot(self, rhs: Self) -> f64
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
Source§impl Vec4d
impl Vec4d
pub fn x(self) -> f64
pub fn y(self) -> f64
pub fn z(self) -> f64
pub fn w(self) -> f64
pub fn xx(self) -> Vec2d
pub fn xy(self) -> Vec2d
pub fn xz(self) -> Vec2d
pub fn xw(self) -> Vec2d
pub fn yx(self) -> Vec2d
pub fn yy(self) -> Vec2d
pub fn yz(self) -> Vec2d
pub fn yw(self) -> Vec2d
pub fn zx(self) -> Vec2d
pub fn zy(self) -> Vec2d
pub fn zz(self) -> Vec2d
pub fn zw(self) -> Vec2d
pub fn wx(self) -> Vec2d
pub fn wy(self) -> Vec2d
pub fn wz(self) -> Vec2d
pub fn ww(self) -> Vec2d
pub fn xxx(self) -> Vec3d
pub fn xxy(self) -> Vec3d
pub fn xxz(self) -> Vec3d
pub fn xxw(self) -> Vec3d
pub fn xyx(self) -> Vec3d
pub fn xyy(self) -> Vec3d
pub fn xyz(self) -> Vec3d
pub fn xyw(self) -> Vec3d
pub fn xzx(self) -> Vec3d
pub fn xzy(self) -> Vec3d
pub fn xzz(self) -> Vec3d
pub fn xzw(self) -> Vec3d
pub fn xwx(self) -> Vec3d
pub fn xwy(self) -> Vec3d
pub fn xwz(self) -> Vec3d
pub fn xww(self) -> Vec3d
pub fn yxx(self) -> Vec3d
pub fn yxy(self) -> Vec3d
pub fn yxz(self) -> Vec3d
pub fn yxw(self) -> Vec3d
pub fn yyx(self) -> Vec3d
pub fn yyy(self) -> Vec3d
pub fn yyz(self) -> Vec3d
pub fn yyw(self) -> Vec3d
pub fn yzx(self) -> Vec3d
pub fn yzy(self) -> Vec3d
pub fn yzz(self) -> Vec3d
pub fn yzw(self) -> Vec3d
pub fn ywx(self) -> Vec3d
pub fn ywy(self) -> Vec3d
pub fn ywz(self) -> Vec3d
pub fn yww(self) -> Vec3d
pub fn zxx(self) -> Vec3d
pub fn zxy(self) -> Vec3d
pub fn zxz(self) -> Vec3d
pub fn zxw(self) -> Vec3d
pub fn zyx(self) -> Vec3d
pub fn zyy(self) -> Vec3d
pub fn zyz(self) -> Vec3d
pub fn zyw(self) -> Vec3d
pub fn zzx(self) -> Vec3d
pub fn zzy(self) -> Vec3d
pub fn zzz(self) -> Vec3d
pub fn zzw(self) -> Vec3d
pub fn zwx(self) -> Vec3d
pub fn zwy(self) -> Vec3d
pub fn zwz(self) -> Vec3d
pub fn zww(self) -> Vec3d
pub fn wxx(self) -> Vec3d
pub fn wxy(self) -> Vec3d
pub fn wxz(self) -> Vec3d
pub fn wxw(self) -> Vec3d
pub fn wyx(self) -> Vec3d
pub fn wyy(self) -> Vec3d
pub fn wyz(self) -> Vec3d
pub fn wyw(self) -> Vec3d
pub fn wzx(self) -> Vec3d
pub fn wzy(self) -> Vec3d
pub fn wzz(self) -> Vec3d
pub fn wzw(self) -> Vec3d
pub fn wwx(self) -> Vec3d
pub fn wwy(self) -> Vec3d
pub fn wwz(self) -> Vec3d
pub fn www(self) -> Vec3d
pub fn xxxx(self) -> Self
pub fn xxxy(self) -> Self
pub fn xxxz(self) -> Self
pub fn xxxw(self) -> Self
pub fn xxyx(self) -> Self
pub fn xxyy(self) -> Self
pub fn xxyz(self) -> Self
pub fn xxyw(self) -> Self
pub fn xxzx(self) -> Self
pub fn xxzy(self) -> Self
pub fn xxzz(self) -> Self
pub fn xxzw(self) -> Self
pub fn xxwx(self) -> Self
pub fn xxwy(self) -> Self
pub fn xxwz(self) -> Self
pub fn xxww(self) -> Self
pub fn xyxx(self) -> Self
pub fn xyxy(self) -> Self
pub fn xyxz(self) -> Self
pub fn xyxw(self) -> Self
pub fn xyyx(self) -> Self
pub fn xyyy(self) -> Self
pub fn xyyz(self) -> Self
pub fn xyyw(self) -> Self
pub fn xyzx(self) -> Self
pub fn xyzy(self) -> Self
pub fn xyzz(self) -> Self
pub fn xyzw(self) -> Self
pub fn xywx(self) -> Self
pub fn xywy(self) -> Self
pub fn xywz(self) -> Self
pub fn xyww(self) -> Self
pub fn xzxx(self) -> Self
pub fn xzxy(self) -> Self
pub fn xzxz(self) -> Self
pub fn xzxw(self) -> Self
pub fn xzyx(self) -> Self
pub fn xzyy(self) -> Self
pub fn xzyz(self) -> Self
pub fn xzyw(self) -> Self
pub fn xzzx(self) -> Self
pub fn xzzy(self) -> Self
pub fn xzzz(self) -> Self
pub fn xzzw(self) -> Self
pub fn xzwx(self) -> Self
pub fn xzwy(self) -> Self
pub fn xzwz(self) -> Self
pub fn xzww(self) -> Self
pub fn xwxx(self) -> Self
pub fn xwxy(self) -> Self
pub fn xwxz(self) -> Self
pub fn xwxw(self) -> Self
pub fn xwyx(self) -> Self
pub fn xwyy(self) -> Self
pub fn xwyz(self) -> Self
pub fn xwyw(self) -> Self
pub fn xwzx(self) -> Self
pub fn xwzy(self) -> Self
pub fn xwzz(self) -> Self
pub fn xwzw(self) -> Self
pub fn xwwx(self) -> Self
pub fn xwwy(self) -> Self
pub fn xwwz(self) -> Self
pub fn xwww(self) -> Self
pub fn yxxx(self) -> Self
pub fn yxxy(self) -> Self
pub fn yxxz(self) -> Self
pub fn yxxw(self) -> Self
pub fn yxyx(self) -> Self
pub fn yxyy(self) -> Self
pub fn yxyz(self) -> Self
pub fn yxyw(self) -> Self
pub fn yxzx(self) -> Self
pub fn yxzy(self) -> Self
pub fn yxzz(self) -> Self
pub fn yxzw(self) -> Self
pub fn yxwx(self) -> Self
pub fn yxwy(self) -> Self
pub fn yxwz(self) -> Self
pub fn yxww(self) -> Self
pub fn yyxx(self) -> Self
pub fn yyxy(self) -> Self
pub fn yyxz(self) -> Self
pub fn yyxw(self) -> Self
pub fn yyyx(self) -> Self
pub fn yyyy(self) -> Self
pub fn yyyz(self) -> Self
pub fn yyyw(self) -> Self
pub fn yyzx(self) -> Self
pub fn yyzy(self) -> Self
pub fn yyzz(self) -> Self
pub fn yyzw(self) -> Self
pub fn yywx(self) -> Self
pub fn yywy(self) -> Self
pub fn yywz(self) -> Self
pub fn yyww(self) -> Self
pub fn yzxx(self) -> Self
pub fn yzxy(self) -> Self
pub fn yzxz(self) -> Self
pub fn yzxw(self) -> Self
pub fn yzyx(self) -> Self
pub fn yzyy(self) -> Self
pub fn yzyz(self) -> Self
pub fn yzyw(self) -> Self
pub fn yzzx(self) -> Self
pub fn yzzy(self) -> Self
pub fn yzzz(self) -> Self
pub fn yzzw(self) -> Self
pub fn yzwx(self) -> Self
pub fn yzwy(self) -> Self
pub fn yzwz(self) -> Self
pub fn yzww(self) -> Self
pub fn ywxx(self) -> Self
pub fn ywxy(self) -> Self
pub fn ywxz(self) -> Self
pub fn ywxw(self) -> Self
pub fn ywyx(self) -> Self
pub fn ywyy(self) -> Self
pub fn ywyz(self) -> Self
pub fn ywyw(self) -> Self
pub fn ywzx(self) -> Self
pub fn ywzy(self) -> Self
pub fn ywzz(self) -> Self
pub fn ywzw(self) -> Self
pub fn ywwx(self) -> Self
pub fn ywwy(self) -> Self
pub fn ywwz(self) -> Self
pub fn ywww(self) -> Self
pub fn zxxx(self) -> Self
pub fn zxxy(self) -> Self
pub fn zxxz(self) -> Self
pub fn zxxw(self) -> Self
pub fn zxyx(self) -> Self
pub fn zxyy(self) -> Self
pub fn zxyz(self) -> Self
pub fn zxyw(self) -> Self
pub fn zxzx(self) -> Self
pub fn zxzy(self) -> Self
pub fn zxzz(self) -> Self
pub fn zxzw(self) -> Self
pub fn zxwx(self) -> Self
pub fn zxwy(self) -> Self
pub fn zxwz(self) -> Self
pub fn zxww(self) -> Self
pub fn zyxx(self) -> Self
pub fn zyxy(self) -> Self
pub fn zyxz(self) -> Self
pub fn zyxw(self) -> Self
pub fn zyyx(self) -> Self
pub fn zyyy(self) -> Self
pub fn zyyz(self) -> Self
pub fn zyyw(self) -> Self
pub fn zyzx(self) -> Self
pub fn zyzy(self) -> Self
pub fn zyzz(self) -> Self
pub fn zyzw(self) -> Self
pub fn zywx(self) -> Self
pub fn zywy(self) -> Self
pub fn zywz(self) -> Self
pub fn zyww(self) -> Self
pub fn zzxx(self) -> Self
pub fn zzxy(self) -> Self
pub fn zzxz(self) -> Self
pub fn zzxw(self) -> Self
pub fn zzyx(self) -> Self
pub fn zzyy(self) -> Self
pub fn zzyz(self) -> Self
pub fn zzyw(self) -> Self
pub fn zzzx(self) -> Self
pub fn zzzy(self) -> Self
pub fn zzzz(self) -> Self
pub fn zzzw(self) -> Self
pub fn zzwx(self) -> Self
pub fn zzwy(self) -> Self
pub fn zzwz(self) -> Self
pub fn zzww(self) -> Self
pub fn zwxx(self) -> Self
pub fn zwxy(self) -> Self
pub fn zwxz(self) -> Self
pub fn zwxw(self) -> Self
pub fn zwyx(self) -> Self
pub fn zwyy(self) -> Self
pub fn zwyz(self) -> Self
pub fn zwyw(self) -> Self
pub fn zwzx(self) -> Self
pub fn zwzy(self) -> Self
pub fn zwzz(self) -> Self
pub fn zwzw(self) -> Self
pub fn zwwx(self) -> Self
pub fn zwwy(self) -> Self
pub fn zwwz(self) -> Self
pub fn zwww(self) -> Self
pub fn wxxx(self) -> Self
pub fn wxxy(self) -> Self
pub fn wxxz(self) -> Self
pub fn wxxw(self) -> Self
pub fn wxyx(self) -> Self
pub fn wxyy(self) -> Self
pub fn wxyz(self) -> Self
pub fn wxyw(self) -> Self
pub fn wxzx(self) -> Self
pub fn wxzy(self) -> Self
pub fn wxzz(self) -> Self
pub fn wxzw(self) -> Self
pub fn wxwx(self) -> Self
pub fn wxwy(self) -> Self
pub fn wxwz(self) -> Self
pub fn wxww(self) -> Self
pub fn wyxx(self) -> Self
pub fn wyxy(self) -> Self
pub fn wyxz(self) -> Self
pub fn wyxw(self) -> Self
pub fn wyyx(self) -> Self
pub fn wyyy(self) -> Self
pub fn wyyz(self) -> Self
pub fn wyyw(self) -> Self
pub fn wyzx(self) -> Self
pub fn wyzy(self) -> Self
pub fn wyzz(self) -> Self
pub fn wyzw(self) -> Self
pub fn wywx(self) -> Self
pub fn wywy(self) -> Self
pub fn wywz(self) -> Self
pub fn wyww(self) -> Self
pub fn wzxx(self) -> Self
pub fn wzxy(self) -> Self
pub fn wzxz(self) -> Self
pub fn wzxw(self) -> Self
pub fn wzyx(self) -> Self
pub fn wzyy(self) -> Self
pub fn wzyz(self) -> Self
pub fn wzyw(self) -> Self
pub fn wzzx(self) -> Self
pub fn wzzy(self) -> Self
pub fn wzzz(self) -> Self
pub fn wzzw(self) -> Self
pub fn wzwx(self) -> Self
pub fn wzwy(self) -> Self
pub fn wzwz(self) -> Self
pub fn wzww(self) -> Self
pub fn wwxx(self) -> Self
pub fn wwxy(self) -> Self
pub fn wwxz(self) -> Self
pub fn wwxw(self) -> Self
pub fn wwyx(self) -> Self
pub fn wwyy(self) -> Self
pub fn wwyz(self) -> Self
pub fn wwyw(self) -> Self
pub fn wwzx(self) -> Self
pub fn wwzy(self) -> Self
pub fn wwzz(self) -> Self
pub fn wwzw(self) -> Self
pub fn wwwx(self) -> Self
pub fn wwwy(self) -> Self
pub fn wwwz(self) -> Self
pub fn wwww(self) -> Self
Trait Implementations§
Source§impl AddAssign<f64> for Vec4d
impl AddAssign<f64> for Vec4d
Source§fn add_assign(&mut self, rhs: f64)
fn add_assign(&mut self, rhs: f64)
Performs the
+=
operation. Read moreSource§impl AddAssign for Vec4d
impl AddAssign for Vec4d
Source§fn add_assign(&mut self, rhs: Vec4d)
fn add_assign(&mut self, rhs: Vec4d)
Performs the
+=
operation. Read moreSource§impl DivAssign<f64> for Vec4d
impl DivAssign<f64> for Vec4d
Source§fn div_assign(&mut self, rhs: f64)
fn div_assign(&mut self, rhs: f64)
Performs the
/=
operation. Read moreSource§impl DivAssign for Vec4d
impl DivAssign for Vec4d
Source§fn div_assign(&mut self, rhs: Vec4d)
fn div_assign(&mut self, rhs: Vec4d)
Performs the
/=
operation. Read moreSource§impl MulAssign<f64> for Vec4d
impl MulAssign<f64> for Vec4d
Source§fn mul_assign(&mut self, rhs: f64)
fn mul_assign(&mut self, rhs: f64)
Performs the
*=
operation. Read moreSource§impl MulAssign for Vec4d
impl MulAssign for Vec4d
Source§fn mul_assign(&mut self, rhs: Vec4d)
fn mul_assign(&mut self, rhs: Vec4d)
Performs the
*=
operation. Read moreSource§impl SubAssign<f64> for Vec4d
impl SubAssign<f64> for Vec4d
Source§fn sub_assign(&mut self, rhs: f64)
fn sub_assign(&mut self, rhs: f64)
Performs the
-=
operation. Read moreSource§impl SubAssign for Vec4d
impl SubAssign for Vec4d
Source§fn sub_assign(&mut self, rhs: Vec4d)
fn sub_assign(&mut self, rhs: Vec4d)
Performs the
-=
operation. Read moreimpl Copy for Vec4d
impl StructuralPartialEq for Vec4d
Auto Trait Implementations§
impl Freeze for Vec4d
impl RefUnwindSafe for Vec4d
impl Send for Vec4d
impl Sync for Vec4d
impl Unpin for Vec4d
impl UnwindSafe for Vec4d
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