Struct octoon_math::vec4::Vec4
source · #[repr(C)]pub struct Vec4<T> {
pub x: T,
pub y: T,
pub z: T,
pub w: T,
}
Fields
x: T
y: T
z: T
w: T
Implementations
sourceimpl<T> Vec4<T>where
T: Copy,
impl<T> Vec4<T>where
T: Copy,
pub fn len() -> usize
pub fn to_tuple(&self) -> (T, T, T, T)
pub fn xx(&self) -> Vec2<T>
pub fn xy(&self) -> Vec2<T>
pub fn xz(&self) -> Vec2<T>
pub fn xw(&self) -> Vec2<T>
pub fn yx(&self) -> Vec2<T>
pub fn yy(&self) -> Vec2<T>
pub fn yz(&self) -> Vec2<T>
pub fn yw(&self) -> Vec2<T>
pub fn zx(&self) -> Vec2<T>
pub fn zy(&self) -> Vec2<T>
pub fn zz(&self) -> Vec2<T>
pub fn zw(&self) -> Vec2<T>
pub fn wx(&self) -> Vec2<T>
pub fn wy(&self) -> Vec2<T>
pub fn wz(&self) -> Vec2<T>
pub fn ww(&self) -> Vec2<T>
pub fn xxx(&self) -> Vec3<T>
pub fn xxy(&self) -> Vec3<T>
pub fn xxz(&self) -> Vec3<T>
pub fn xxw(&self) -> Vec3<T>
pub fn xyx(&self) -> Vec3<T>
pub fn xyy(&self) -> Vec3<T>
pub fn xyz(&self) -> Vec3<T>
pub fn xyw(&self) -> Vec3<T>
pub fn xzx(&self) -> Vec3<T>
pub fn xzy(&self) -> Vec3<T>
pub fn xzz(&self) -> Vec3<T>
pub fn xzw(&self) -> Vec3<T>
pub fn xwx(&self) -> Vec3<T>
pub fn xwy(&self) -> Vec3<T>
pub fn xwz(&self) -> Vec3<T>
pub fn xww(&self) -> Vec3<T>
pub fn yxx(&self) -> Vec3<T>
pub fn yxy(&self) -> Vec3<T>
pub fn yxz(&self) -> Vec3<T>
pub fn yxw(&self) -> Vec3<T>
pub fn yyx(&self) -> Vec3<T>
pub fn yyy(&self) -> Vec3<T>
pub fn yyz(&self) -> Vec3<T>
pub fn yyw(&self) -> Vec3<T>
pub fn yzx(&self) -> Vec3<T>
pub fn yzy(&self) -> Vec3<T>
pub fn yzz(&self) -> Vec3<T>
pub fn yzw(&self) -> Vec3<T>
pub fn ywx(&self) -> Vec3<T>
pub fn ywy(&self) -> Vec3<T>
pub fn ywz(&self) -> Vec3<T>
pub fn yww(&self) -> Vec3<T>
pub fn zxx(&self) -> Vec3<T>
pub fn zxy(&self) -> Vec3<T>
pub fn zxz(&self) -> Vec3<T>
pub fn zxw(&self) -> Vec3<T>
pub fn zyx(&self) -> Vec3<T>
pub fn zyy(&self) -> Vec3<T>
pub fn zyz(&self) -> Vec3<T>
pub fn zyw(&self) -> Vec3<T>
pub fn zzx(&self) -> Vec3<T>
pub fn zzy(&self) -> Vec3<T>
pub fn zzz(&self) -> Vec3<T>
pub fn zzw(&self) -> Vec3<T>
pub fn zwx(&self) -> Vec3<T>
pub fn zwy(&self) -> Vec3<T>
pub fn zwz(&self) -> Vec3<T>
pub fn zww(&self) -> Vec3<T>
pub fn wxx(&self) -> Vec3<T>
pub fn wxy(&self) -> Vec3<T>
pub fn wxz(&self) -> Vec3<T>
pub fn wxw(&self) -> Vec3<T>
pub fn wyx(&self) -> Vec3<T>
pub fn wyy(&self) -> Vec3<T>
pub fn wyz(&self) -> Vec3<T>
pub fn wyw(&self) -> Vec3<T>
pub fn wzx(&self) -> Vec3<T>
pub fn wzy(&self) -> Vec3<T>
pub fn wzz(&self) -> Vec3<T>
pub fn wzw(&self) -> Vec3<T>
pub fn wwx(&self) -> Vec3<T>
pub fn wwy(&self) -> Vec3<T>
pub fn wwz(&self) -> Vec3<T>
pub fn www(&self) -> Vec3<T>
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
sourceimpl<T> AddAssign<Vec4<T>> for Vec4<T>where
T: AddAssign<T>,
impl<T> AddAssign<Vec4<T>> for Vec4<T>where
T: AddAssign<T>,
sourcefn add_assign(&mut self, other: Self)
fn add_assign(&mut self, other: Self)
Performs the
+=
operation. Read moresourceimpl<'a, T> DivAssign<&'a T> for Vec4<T>where
T: DivAssign<T> + Copy,
impl<'a, T> DivAssign<&'a T> for Vec4<T>where
T: DivAssign<T> + Copy,
sourcefn div_assign(&mut self, s: &'a T)
fn div_assign(&mut self, s: &'a T)
Performs the
/=
operation. Read moresourceimpl<T> DivAssign<T> for Vec4<T>where
T: DivAssign<T> + Copy,
impl<T> DivAssign<T> for Vec4<T>where
T: DivAssign<T> + Copy,
sourcefn div_assign(&mut self, s: T)
fn div_assign(&mut self, s: T)
Performs the
/=
operation. Read moresourceimpl<T> DivAssign<Vec4<T>> for Vec4<T>where
T: DivAssign<T>,
impl<T> DivAssign<Vec4<T>> for Vec4<T>where
T: DivAssign<T>,
sourcefn div_assign(&mut self, other: Self)
fn div_assign(&mut self, other: Self)
Performs the
/=
operation. Read moresourceimpl<T> From<(T, T, T, T)> for Vec4<T>where
T: Copy,
impl<T> From<(T, T, T, T)> for Vec4<T>where
T: Copy,
sourcefn from(v: (T, T, T, T)) -> Self
fn from(v: (T, T, T, T)) -> Self
Converts to this type from the input type.
sourceimpl<T> Interpolation<T> for Vec4<T>where
T: Copy + One + Mul<Output = T> + Add<Output = T> + Sub<Output = T>,
impl<T> Interpolation<T> for Vec4<T>where
T: Copy + One + Mul<Output = T> + Add<Output = T> + Sub<Output = T>,
sourceimpl<T> Math for Vec4<T>where
T: Copy + Math,
impl<T> Math for Vec4<T>where
T: Copy + Math,
fn abs(self) -> Self
fn recip(self) -> Self
fn sqrt(self) -> Self
fn rsqrt(self) -> Self
fn sin(self) -> Self
fn cos(self) -> Self
fn tan(self) -> Self
fn sincos(self) -> (Vec4<T>, Vec4<T>)
fn acos(self) -> Self
fn asin(self) -> Self
fn atan(self) -> Self
fn exp(self) -> Self
fn exp2(self) -> Self
fn log(self, _rhs: Self) -> Self
fn log2(self) -> Self
fn log10(self) -> Self
fn to_radians(self) -> Self
fn to_degrees(self) -> Self
fn min(self, _rhs: Self) -> Self
fn max(self, _rhs: Self) -> Self
fn saturate(self) -> Self
fn snorm2unorm(self) -> Self
fn unorm2snorm(self) -> Self
fn clamp(self, minval: Self, maxval: Self) -> Self
sourceimpl<'a, T> MulAssign<&'a T> for Vec4<T>where
T: MulAssign<T> + Copy,
impl<'a, T> MulAssign<&'a T> for Vec4<T>where
T: MulAssign<T> + Copy,
sourcefn mul_assign(&mut self, other: &'a T)
fn mul_assign(&mut self, other: &'a T)
Performs the
*=
operation. Read moresourceimpl<T> MulAssign<T> for Vec4<T>where
T: MulAssign<T> + Copy,
impl<T> MulAssign<T> for Vec4<T>where
T: MulAssign<T> + Copy,
sourcefn mul_assign(&mut self, s: T)
fn mul_assign(&mut self, s: T)
Performs the
*=
operation. Read moresourceimpl<T> MulAssign<Vec4<T>> for Vec4<T>where
T: MulAssign<T>,
impl<T> MulAssign<Vec4<T>> for Vec4<T>where
T: MulAssign<T>,
sourcefn mul_assign(&mut self, other: Self)
fn mul_assign(&mut self, other: Self)
Performs the
*=
operation. Read moresourceimpl<T> SubAssign<Vec4<T>> for Vec4<T>where
T: SubAssign<T>,
impl<T> SubAssign<Vec4<T>> for Vec4<T>where
T: SubAssign<T>,
sourcefn sub_assign(&mut self, other: Self)
fn sub_assign(&mut self, other: Self)
Performs the
-=
operation. Read moreimpl<T: Copy> Copy for Vec4<T>
impl<T: Eq> Eq for Vec4<T>
impl<T> StructuralEq for Vec4<T>
impl<T> StructuralPartialEq for Vec4<T>
Auto Trait Implementations
impl<T> RefUnwindSafe for Vec4<T>where
T: RefUnwindSafe,
impl<T> Send for Vec4<T>where
T: Send,
impl<T> Sync for Vec4<T>where
T: Sync,
impl<T> Unpin for Vec4<T>where
T: Unpin,
impl<T> UnwindSafe for Vec4<T>where
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more