Struct slender_math::Vector4i
source · #[repr(C, align(16))]pub struct Vector4i(_);Expand description
A vector with 4 i32 components
Implementations§
source§impl Vector4i
impl Vector4i
sourcepub const fn new(x: i32, y: i32, z: i32, w: i32) -> Self
pub const fn new(x: i32, y: i32, z: i32, w: i32) -> Self
Creates a new vector from the given components
sourcepub const fn from_scalar(scalar: i32) -> Self
pub const fn from_scalar(scalar: i32) -> Self
Creates a new vector by setting all components to the given scalar
sourcepub const fn from_array(array: [i32; 4]) -> Self
pub const fn from_array(array: [i32; 4]) -> Self
Creates a new vector from the given array
sourcepub const fn from_v2i(v: v2i, z: i32, w: i32) -> Self
pub const fn from_v2i(v: v2i, z: i32, w: i32) -> Self
Creates a new vector from the given 2-component vector
sourcepub const fn from_v3i(v: v3i, w: i32) -> Self
pub const fn from_v3i(v: v3i, w: i32) -> Self
Creates a new vector from the given 3-component vector
sourcepub fn as_mut_array(&mut self) -> &mut [i32; 4]
pub fn as_mut_array(&mut self) -> &mut [i32; 4]
Returns a mutable array reference to the vector
source§impl Vector4i
impl Vector4i
§impl Vector4i
impl Vector4i
pub fn xx(&self) -> Vector2i
pub fn xy(&self) -> Vector2i
pub fn xz(&self) -> Vector2i
pub fn xw(&self) -> Vector2i
pub fn yx(&self) -> Vector2i
pub fn yy(&self) -> Vector2i
pub fn yz(&self) -> Vector2i
pub fn yw(&self) -> Vector2i
pub fn zx(&self) -> Vector2i
pub fn zy(&self) -> Vector2i
pub fn zz(&self) -> Vector2i
pub fn zw(&self) -> Vector2i
pub fn wx(&self) -> Vector2i
pub fn wy(&self) -> Vector2i
pub fn wz(&self) -> Vector2i
pub fn ww(&self) -> Vector2i
pub fn xxx(&self) -> Vector3i
pub fn xxy(&self) -> Vector3i
pub fn xxz(&self) -> Vector3i
pub fn xxw(&self) -> Vector3i
pub fn xyx(&self) -> Vector3i
pub fn xyy(&self) -> Vector3i
pub fn xyz(&self) -> Vector3i
pub fn xyw(&self) -> Vector3i
pub fn xzx(&self) -> Vector3i
pub fn xzy(&self) -> Vector3i
pub fn xzz(&self) -> Vector3i
pub fn xzw(&self) -> Vector3i
pub fn xwx(&self) -> Vector3i
pub fn xwy(&self) -> Vector3i
pub fn xwz(&self) -> Vector3i
pub fn xww(&self) -> Vector3i
pub fn yxx(&self) -> Vector3i
pub fn yxy(&self) -> Vector3i
pub fn yxz(&self) -> Vector3i
pub fn yxw(&self) -> Vector3i
pub fn yyx(&self) -> Vector3i
pub fn yyy(&self) -> Vector3i
pub fn yyz(&self) -> Vector3i
pub fn yyw(&self) -> Vector3i
pub fn yzx(&self) -> Vector3i
pub fn yzy(&self) -> Vector3i
pub fn yzz(&self) -> Vector3i
pub fn yzw(&self) -> Vector3i
pub fn ywx(&self) -> Vector3i
pub fn ywy(&self) -> Vector3i
pub fn ywz(&self) -> Vector3i
pub fn yww(&self) -> Vector3i
pub fn zxx(&self) -> Vector3i
pub fn zxy(&self) -> Vector3i
pub fn zxz(&self) -> Vector3i
pub fn zxw(&self) -> Vector3i
pub fn zyx(&self) -> Vector3i
pub fn zyy(&self) -> Vector3i
pub fn zyz(&self) -> Vector3i
pub fn zyw(&self) -> Vector3i
pub fn zzx(&self) -> Vector3i
pub fn zzy(&self) -> Vector3i
pub fn zzz(&self) -> Vector3i
pub fn zzw(&self) -> Vector3i
pub fn zwx(&self) -> Vector3i
pub fn zwy(&self) -> Vector3i
pub fn zwz(&self) -> Vector3i
pub fn zww(&self) -> Vector3i
pub fn wxx(&self) -> Vector3i
pub fn wxy(&self) -> Vector3i
pub fn wxz(&self) -> Vector3i
pub fn wxw(&self) -> Vector3i
pub fn wyx(&self) -> Vector3i
pub fn wyy(&self) -> Vector3i
pub fn wyz(&self) -> Vector3i
pub fn wyw(&self) -> Vector3i
pub fn wzx(&self) -> Vector3i
pub fn wzy(&self) -> Vector3i
pub fn wzz(&self) -> Vector3i
pub fn wzw(&self) -> Vector3i
pub fn wwx(&self) -> Vector3i
pub fn wwy(&self) -> Vector3i
pub fn wwz(&self) -> Vector3i
pub fn www(&self) -> Vector3i
pub fn xxxx(&self) -> Vector4i
pub fn xxxy(&self) -> Vector4i
pub fn xxxz(&self) -> Vector4i
pub fn xxxw(&self) -> Vector4i
pub fn xxyx(&self) -> Vector4i
pub fn xxyy(&self) -> Vector4i
pub fn xxyz(&self) -> Vector4i
pub fn xxyw(&self) -> Vector4i
pub fn xxzx(&self) -> Vector4i
pub fn xxzy(&self) -> Vector4i
pub fn xxzz(&self) -> Vector4i
pub fn xxzw(&self) -> Vector4i
pub fn xxwx(&self) -> Vector4i
pub fn xxwy(&self) -> Vector4i
pub fn xxwz(&self) -> Vector4i
pub fn xxww(&self) -> Vector4i
pub fn xyxx(&self) -> Vector4i
pub fn xyxy(&self) -> Vector4i
pub fn xyxz(&self) -> Vector4i
pub fn xyxw(&self) -> Vector4i
pub fn xyyx(&self) -> Vector4i
pub fn xyyy(&self) -> Vector4i
pub fn xyyz(&self) -> Vector4i
pub fn xyyw(&self) -> Vector4i
pub fn xyzx(&self) -> Vector4i
pub fn xyzy(&self) -> Vector4i
pub fn xyzz(&self) -> Vector4i
pub fn xyzw(&self) -> Vector4i
pub fn xywx(&self) -> Vector4i
pub fn xywy(&self) -> Vector4i
pub fn xywz(&self) -> Vector4i
pub fn xyww(&self) -> Vector4i
pub fn xzxx(&self) -> Vector4i
pub fn xzxy(&self) -> Vector4i
pub fn xzxz(&self) -> Vector4i
pub fn xzxw(&self) -> Vector4i
pub fn xzyx(&self) -> Vector4i
pub fn xzyy(&self) -> Vector4i
pub fn xzyz(&self) -> Vector4i
pub fn xzyw(&self) -> Vector4i
pub fn xzzx(&self) -> Vector4i
pub fn xzzy(&self) -> Vector4i
pub fn xzzz(&self) -> Vector4i
pub fn xzzw(&self) -> Vector4i
pub fn xzwx(&self) -> Vector4i
pub fn xzwy(&self) -> Vector4i
pub fn xzwz(&self) -> Vector4i
pub fn xzww(&self) -> Vector4i
pub fn xwxx(&self) -> Vector4i
pub fn xwxy(&self) -> Vector4i
pub fn xwxz(&self) -> Vector4i
pub fn xwxw(&self) -> Vector4i
pub fn xwyx(&self) -> Vector4i
pub fn xwyy(&self) -> Vector4i
pub fn xwyz(&self) -> Vector4i
pub fn xwyw(&self) -> Vector4i
pub fn xwzx(&self) -> Vector4i
pub fn xwzy(&self) -> Vector4i
pub fn xwzz(&self) -> Vector4i
pub fn xwzw(&self) -> Vector4i
pub fn xwwx(&self) -> Vector4i
pub fn xwwy(&self) -> Vector4i
pub fn xwwz(&self) -> Vector4i
pub fn xwww(&self) -> Vector4i
pub fn yxxx(&self) -> Vector4i
pub fn yxxy(&self) -> Vector4i
pub fn yxxz(&self) -> Vector4i
pub fn yxxw(&self) -> Vector4i
pub fn yxyx(&self) -> Vector4i
pub fn yxyy(&self) -> Vector4i
pub fn yxyz(&self) -> Vector4i
pub fn yxyw(&self) -> Vector4i
pub fn yxzx(&self) -> Vector4i
pub fn yxzy(&self) -> Vector4i
pub fn yxzz(&self) -> Vector4i
pub fn yxzw(&self) -> Vector4i
pub fn yxwx(&self) -> Vector4i
pub fn yxwy(&self) -> Vector4i
pub fn yxwz(&self) -> Vector4i
pub fn yxww(&self) -> Vector4i
pub fn yyxx(&self) -> Vector4i
pub fn yyxy(&self) -> Vector4i
pub fn yyxz(&self) -> Vector4i
pub fn yyxw(&self) -> Vector4i
pub fn yyyx(&self) -> Vector4i
pub fn yyyy(&self) -> Vector4i
pub fn yyyz(&self) -> Vector4i
pub fn yyyw(&self) -> Vector4i
pub fn yyzx(&self) -> Vector4i
pub fn yyzy(&self) -> Vector4i
pub fn yyzz(&self) -> Vector4i
pub fn yyzw(&self) -> Vector4i
pub fn yywx(&self) -> Vector4i
pub fn yywy(&self) -> Vector4i
pub fn yywz(&self) -> Vector4i
pub fn yyww(&self) -> Vector4i
pub fn yzxx(&self) -> Vector4i
pub fn yzxy(&self) -> Vector4i
pub fn yzxz(&self) -> Vector4i
pub fn yzxw(&self) -> Vector4i
pub fn yzyx(&self) -> Vector4i
pub fn yzyy(&self) -> Vector4i
pub fn yzyz(&self) -> Vector4i
pub fn yzyw(&self) -> Vector4i
pub fn yzzx(&self) -> Vector4i
pub fn yzzy(&self) -> Vector4i
pub fn yzzz(&self) -> Vector4i
pub fn yzzw(&self) -> Vector4i
pub fn yzwx(&self) -> Vector4i
pub fn yzwy(&self) -> Vector4i
pub fn yzwz(&self) -> Vector4i
pub fn yzww(&self) -> Vector4i
pub fn ywxx(&self) -> Vector4i
pub fn ywxy(&self) -> Vector4i
pub fn ywxz(&self) -> Vector4i
pub fn ywxw(&self) -> Vector4i
pub fn ywyx(&self) -> Vector4i
pub fn ywyy(&self) -> Vector4i
pub fn ywyz(&self) -> Vector4i
pub fn ywyw(&self) -> Vector4i
pub fn ywzx(&self) -> Vector4i
pub fn ywzy(&self) -> Vector4i
pub fn ywzz(&self) -> Vector4i
pub fn ywzw(&self) -> Vector4i
pub fn ywwx(&self) -> Vector4i
pub fn ywwy(&self) -> Vector4i
pub fn ywwz(&self) -> Vector4i
pub fn ywww(&self) -> Vector4i
pub fn zxxx(&self) -> Vector4i
pub fn zxxy(&self) -> Vector4i
pub fn zxxz(&self) -> Vector4i
pub fn zxxw(&self) -> Vector4i
pub fn zxyx(&self) -> Vector4i
pub fn zxyy(&self) -> Vector4i
pub fn zxyz(&self) -> Vector4i
pub fn zxyw(&self) -> Vector4i
pub fn zxzx(&self) -> Vector4i
pub fn zxzy(&self) -> Vector4i
pub fn zxzz(&self) -> Vector4i
pub fn zxzw(&self) -> Vector4i
pub fn zxwx(&self) -> Vector4i
pub fn zxwy(&self) -> Vector4i
pub fn zxwz(&self) -> Vector4i
pub fn zxww(&self) -> Vector4i
pub fn zyxx(&self) -> Vector4i
pub fn zyxy(&self) -> Vector4i
pub fn zyxz(&self) -> Vector4i
pub fn zyxw(&self) -> Vector4i
pub fn zyyx(&self) -> Vector4i
pub fn zyyy(&self) -> Vector4i
pub fn zyyz(&self) -> Vector4i
pub fn zyyw(&self) -> Vector4i
pub fn zyzx(&self) -> Vector4i
pub fn zyzy(&self) -> Vector4i
pub fn zyzz(&self) -> Vector4i
pub fn zyzw(&self) -> Vector4i
pub fn zywx(&self) -> Vector4i
pub fn zywy(&self) -> Vector4i
pub fn zywz(&self) -> Vector4i
pub fn zyww(&self) -> Vector4i
pub fn zzxx(&self) -> Vector4i
pub fn zzxy(&self) -> Vector4i
pub fn zzxz(&self) -> Vector4i
pub fn zzxw(&self) -> Vector4i
pub fn zzyx(&self) -> Vector4i
pub fn zzyy(&self) -> Vector4i
pub fn zzyz(&self) -> Vector4i
pub fn zzyw(&self) -> Vector4i
pub fn zzzx(&self) -> Vector4i
pub fn zzzy(&self) -> Vector4i
pub fn zzzz(&self) -> Vector4i
pub fn zzzw(&self) -> Vector4i
pub fn zzwx(&self) -> Vector4i
pub fn zzwy(&self) -> Vector4i
pub fn zzwz(&self) -> Vector4i
pub fn zzww(&self) -> Vector4i
pub fn zwxx(&self) -> Vector4i
pub fn zwxy(&self) -> Vector4i
pub fn zwxz(&self) -> Vector4i
pub fn zwxw(&self) -> Vector4i
pub fn zwyx(&self) -> Vector4i
pub fn zwyy(&self) -> Vector4i
pub fn zwyz(&self) -> Vector4i
pub fn zwyw(&self) -> Vector4i
pub fn zwzx(&self) -> Vector4i
pub fn zwzy(&self) -> Vector4i
pub fn zwzz(&self) -> Vector4i
pub fn zwzw(&self) -> Vector4i
pub fn zwwx(&self) -> Vector4i
pub fn zwwy(&self) -> Vector4i
pub fn zwwz(&self) -> Vector4i
pub fn zwww(&self) -> Vector4i
pub fn wxxx(&self) -> Vector4i
pub fn wxxy(&self) -> Vector4i
pub fn wxxz(&self) -> Vector4i
pub fn wxxw(&self) -> Vector4i
pub fn wxyx(&self) -> Vector4i
pub fn wxyy(&self) -> Vector4i
pub fn wxyz(&self) -> Vector4i
pub fn wxyw(&self) -> Vector4i
pub fn wxzx(&self) -> Vector4i
pub fn wxzy(&self) -> Vector4i
pub fn wxzz(&self) -> Vector4i
pub fn wxzw(&self) -> Vector4i
pub fn wxwx(&self) -> Vector4i
pub fn wxwy(&self) -> Vector4i
pub fn wxwz(&self) -> Vector4i
pub fn wxww(&self) -> Vector4i
pub fn wyxx(&self) -> Vector4i
pub fn wyxy(&self) -> Vector4i
pub fn wyxz(&self) -> Vector4i
pub fn wyxw(&self) -> Vector4i
pub fn wyyx(&self) -> Vector4i
pub fn wyyy(&self) -> Vector4i
pub fn wyyz(&self) -> Vector4i
pub fn wyyw(&self) -> Vector4i
pub fn wyzx(&self) -> Vector4i
pub fn wyzy(&self) -> Vector4i
pub fn wyzz(&self) -> Vector4i
pub fn wyzw(&self) -> Vector4i
pub fn wywx(&self) -> Vector4i
pub fn wywy(&self) -> Vector4i
pub fn wywz(&self) -> Vector4i
pub fn wyww(&self) -> Vector4i
pub fn wzxx(&self) -> Vector4i
pub fn wzxy(&self) -> Vector4i
pub fn wzxz(&self) -> Vector4i
pub fn wzxw(&self) -> Vector4i
pub fn wzyx(&self) -> Vector4i
pub fn wzyy(&self) -> Vector4i
pub fn wzyz(&self) -> Vector4i
pub fn wzyw(&self) -> Vector4i
pub fn wzzx(&self) -> Vector4i
pub fn wzzy(&self) -> Vector4i
pub fn wzzz(&self) -> Vector4i
pub fn wzzw(&self) -> Vector4i
pub fn wzwx(&self) -> Vector4i
pub fn wzwy(&self) -> Vector4i
pub fn wzwz(&self) -> Vector4i
pub fn wzww(&self) -> Vector4i
pub fn wwxx(&self) -> Vector4i
pub fn wwxy(&self) -> Vector4i
pub fn wwxz(&self) -> Vector4i
pub fn wwxw(&self) -> Vector4i
pub fn wwyx(&self) -> Vector4i
pub fn wwyy(&self) -> Vector4i
pub fn wwyz(&self) -> Vector4i
pub fn wwyw(&self) -> Vector4i
pub fn wwzx(&self) -> Vector4i
pub fn wwzy(&self) -> Vector4i
pub fn wwzz(&self) -> Vector4i
pub fn wwzw(&self) -> Vector4i
pub fn wwwx(&self) -> Vector4i
pub fn wwwy(&self) -> Vector4i
pub fn wwwz(&self) -> Vector4i
pub fn wwww(&self) -> Vector4i
Trait Implementations§
source§impl AddAssign<Vector4i> for Vector4i
impl AddAssign<Vector4i> for Vector4i
source§fn add_assign(&mut self, rhs: Self)
fn add_assign(&mut self, rhs: Self)
Performs the
+= operation. Read moresource§impl AddAssign<i32> for Vector4i
impl AddAssign<i32> for Vector4i
source§fn add_assign(&mut self, rhs: i32)
fn add_assign(&mut self, rhs: i32)
Performs the
+= operation. Read moresource§impl DivAssign<Vector4i> for Vector4i
impl DivAssign<Vector4i> for Vector4i
source§fn div_assign(&mut self, rhs: Self)
fn div_assign(&mut self, rhs: Self)
Performs the
/= operation. Read moresource§impl DivAssign<i32> for Vector4i
impl DivAssign<i32> for Vector4i
source§fn div_assign(&mut self, rhs: i32)
fn div_assign(&mut self, rhs: i32)
Performs the
/= operation. Read moresource§impl MulAssign<Vector4i> for Vector4i
impl MulAssign<Vector4i> for Vector4i
source§fn mul_assign(&mut self, rhs: Self)
fn mul_assign(&mut self, rhs: Self)
Performs the
*= operation. Read moresource§impl MulAssign<i32> for Vector4i
impl MulAssign<i32> for Vector4i
source§fn mul_assign(&mut self, rhs: i32)
fn mul_assign(&mut self, rhs: i32)
Performs the
*= operation. Read moresource§impl PartialEq<Vector4i> for Vector4i
impl PartialEq<Vector4i> for Vector4i
source§impl RemAssign<Vector4i> for Vector4i
impl RemAssign<Vector4i> for Vector4i
source§fn rem_assign(&mut self, rhs: Self)
fn rem_assign(&mut self, rhs: Self)
Performs the
%= operation. Read moresource§impl RemAssign<i32> for Vector4i
impl RemAssign<i32> for Vector4i
source§fn rem_assign(&mut self, rhs: i32)
fn rem_assign(&mut self, rhs: i32)
Performs the
%= operation. Read moresource§impl SubAssign<Vector4i> for Vector4i
impl SubAssign<Vector4i> for Vector4i
source§fn sub_assign(&mut self, rhs: Self)
fn sub_assign(&mut self, rhs: Self)
Performs the
-= operation. Read moresource§impl SubAssign<i32> for Vector4i
impl SubAssign<i32> for Vector4i
source§fn sub_assign(&mut self, rhs: i32)
fn sub_assign(&mut self, rhs: i32)
Performs the
-= operation. Read moreimpl Copy for Vector4i
impl Eq for Vector4i
impl Pod for Vector4i
impl StructuralEq for Vector4i
impl StructuralPartialEq for Vector4i
Auto Trait Implementations§
impl RefUnwindSafe for Vector4i
impl Send for Vector4i
impl Sync for Vector4i
impl Unpin for Vector4i
impl UnwindSafe for Vector4i
Blanket Implementations§
source§impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
impl<T> CheckedBitPattern for Twhere T: AnyBitPattern,
§type Bits = T
type Bits = T
Self must have the same layout as the specified Bits except for
the possible invalid bit patterns being checked during
is_valid_bit_pattern.source§fn is_valid_bit_pattern(_bits: &T) -> bool
fn is_valid_bit_pattern(_bits: &T) -> bool
If this function returns true, then it must be valid to reinterpret
bits
as &Self.