pub struct Vec4f { /* private fields */ }
Implementations§
Source§impl Vec4f
impl Vec4f
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: f32) -> 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: f32) -> 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: f32) -> 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) -> f32
pub fn max_element(self) -> f32
Source§impl Vec4f
impl Vec4f
pub fn dot(self, rhs: Self) -> f32
pub fn length(self) -> f32
pub fn length_squared(self) -> f32
pub fn length_recip(self) -> f32
pub fn distance(self, rhs: Self) -> f32
pub fn distance_squared(self, rhs: Self) -> f32
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 Vec4f
impl Vec4f
pub fn x(self) -> f32
pub fn y(self) -> f32
pub fn z(self) -> f32
pub fn w(self) -> f32
pub fn xx(self) -> Vec2f
pub fn xy(self) -> Vec2f
pub fn xz(self) -> Vec2f
pub fn xw(self) -> Vec2f
pub fn yx(self) -> Vec2f
pub fn yy(self) -> Vec2f
pub fn yz(self) -> Vec2f
pub fn yw(self) -> Vec2f
pub fn zx(self) -> Vec2f
pub fn zy(self) -> Vec2f
pub fn zz(self) -> Vec2f
pub fn zw(self) -> Vec2f
pub fn wx(self) -> Vec2f
pub fn wy(self) -> Vec2f
pub fn wz(self) -> Vec2f
pub fn ww(self) -> Vec2f
pub fn xxx(self) -> Vec3f
pub fn xxy(self) -> Vec3f
pub fn xxz(self) -> Vec3f
pub fn xxw(self) -> Vec3f
pub fn xyx(self) -> Vec3f
pub fn xyy(self) -> Vec3f
pub fn xyz(self) -> Vec3f
pub fn xyw(self) -> Vec3f
pub fn xzx(self) -> Vec3f
pub fn xzy(self) -> Vec3f
pub fn xzz(self) -> Vec3f
pub fn xzw(self) -> Vec3f
pub fn xwx(self) -> Vec3f
pub fn xwy(self) -> Vec3f
pub fn xwz(self) -> Vec3f
pub fn xww(self) -> Vec3f
pub fn yxx(self) -> Vec3f
pub fn yxy(self) -> Vec3f
pub fn yxz(self) -> Vec3f
pub fn yxw(self) -> Vec3f
pub fn yyx(self) -> Vec3f
pub fn yyy(self) -> Vec3f
pub fn yyz(self) -> Vec3f
pub fn yyw(self) -> Vec3f
pub fn yzx(self) -> Vec3f
pub fn yzy(self) -> Vec3f
pub fn yzz(self) -> Vec3f
pub fn yzw(self) -> Vec3f
pub fn ywx(self) -> Vec3f
pub fn ywy(self) -> Vec3f
pub fn ywz(self) -> Vec3f
pub fn yww(self) -> Vec3f
pub fn zxx(self) -> Vec3f
pub fn zxy(self) -> Vec3f
pub fn zxz(self) -> Vec3f
pub fn zxw(self) -> Vec3f
pub fn zyx(self) -> Vec3f
pub fn zyy(self) -> Vec3f
pub fn zyz(self) -> Vec3f
pub fn zyw(self) -> Vec3f
pub fn zzx(self) -> Vec3f
pub fn zzy(self) -> Vec3f
pub fn zzz(self) -> Vec3f
pub fn zzw(self) -> Vec3f
pub fn zwx(self) -> Vec3f
pub fn zwy(self) -> Vec3f
pub fn zwz(self) -> Vec3f
pub fn zww(self) -> Vec3f
pub fn wxx(self) -> Vec3f
pub fn wxy(self) -> Vec3f
pub fn wxz(self) -> Vec3f
pub fn wxw(self) -> Vec3f
pub fn wyx(self) -> Vec3f
pub fn wyy(self) -> Vec3f
pub fn wyz(self) -> Vec3f
pub fn wyw(self) -> Vec3f
pub fn wzx(self) -> Vec3f
pub fn wzy(self) -> Vec3f
pub fn wzz(self) -> Vec3f
pub fn wzw(self) -> Vec3f
pub fn wwx(self) -> Vec3f
pub fn wwy(self) -> Vec3f
pub fn wwz(self) -> Vec3f
pub fn www(self) -> Vec3f
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<f32> for Vec4f
impl AddAssign<f32> for Vec4f
Source§fn add_assign(&mut self, rhs: f32)
fn add_assign(&mut self, rhs: f32)
Performs the
+=
operation. Read moreSource§impl AddAssign for Vec4f
impl AddAssign for Vec4f
Source§fn add_assign(&mut self, rhs: Vec4f)
fn add_assign(&mut self, rhs: Vec4f)
Performs the
+=
operation. Read moreSource§impl DivAssign<f32> for Vec4f
impl DivAssign<f32> for Vec4f
Source§fn div_assign(&mut self, rhs: f32)
fn div_assign(&mut self, rhs: f32)
Performs the
/=
operation. Read moreSource§impl DivAssign for Vec4f
impl DivAssign for Vec4f
Source§fn div_assign(&mut self, rhs: Vec4f)
fn div_assign(&mut self, rhs: Vec4f)
Performs the
/=
operation. Read moreSource§impl MulAssign<f32> for Vec4f
impl MulAssign<f32> for Vec4f
Source§fn mul_assign(&mut self, rhs: f32)
fn mul_assign(&mut self, rhs: f32)
Performs the
*=
operation. Read moreSource§impl MulAssign for Vec4f
impl MulAssign for Vec4f
Source§fn mul_assign(&mut self, rhs: Vec4f)
fn mul_assign(&mut self, rhs: Vec4f)
Performs the
*=
operation. Read moreSource§impl SubAssign<f32> for Vec4f
impl SubAssign<f32> for Vec4f
Source§fn sub_assign(&mut self, rhs: f32)
fn sub_assign(&mut self, rhs: f32)
Performs the
-=
operation. Read moreSource§impl SubAssign for Vec4f
impl SubAssign for Vec4f
Source§fn sub_assign(&mut self, rhs: Vec4f)
fn sub_assign(&mut self, rhs: Vec4f)
Performs the
-=
operation. Read moreimpl Copy for Vec4f
impl StructuralPartialEq for Vec4f
Auto Trait Implementations§
impl Freeze for Vec4f
impl RefUnwindSafe for Vec4f
impl Send for Vec4f
impl Sync for Vec4f
impl Unpin for Vec4f
impl UnwindSafe for Vec4f
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