#[repr(C)]pub struct Integer3 {
pub x: i32,
pub y: i32,
pub z: i32,
}
Expand description
A structure that stores three-dimensional integer data.
Fields§
§x: i32
§y: i32
§z: i32
Implementations§
Source§impl Integer3
impl Integer3
pub const fn xx(self) -> Integer2
pub const fn xy(self) -> Integer2
pub const fn xz(self) -> Integer2
pub const fn yx(self) -> Integer2
pub const fn yy(self) -> Integer2
pub const fn yz(self) -> Integer2
pub const fn zx(self) -> Integer2
pub const fn zy(self) -> Integer2
pub const fn zz(self) -> Integer2
pub const fn xxx(self) -> Integer3
pub const fn xxy(self) -> Integer3
pub const fn xxz(self) -> Integer3
pub const fn xyx(self) -> Integer3
pub const fn xyy(self) -> Integer3
pub const fn xyz(self) -> Integer3
pub const fn xzx(self) -> Integer3
pub const fn xzy(self) -> Integer3
pub const fn xzz(self) -> Integer3
pub const fn yxx(self) -> Integer3
pub const fn yxy(self) -> Integer3
pub const fn yxz(self) -> Integer3
pub const fn yyx(self) -> Integer3
pub const fn yyy(self) -> Integer3
pub const fn yyz(self) -> Integer3
pub const fn yzx(self) -> Integer3
pub const fn yzy(self) -> Integer3
pub const fn yzz(self) -> Integer3
pub const fn zxx(self) -> Integer3
pub const fn zxy(self) -> Integer3
pub const fn zxz(self) -> Integer3
pub const fn zyx(self) -> Integer3
pub const fn zyy(self) -> Integer3
pub const fn zyz(self) -> Integer3
pub const fn zzx(self) -> Integer3
pub const fn zzy(self) -> Integer3
pub const fn zzz(self) -> Integer3
pub const fn xxxx(self) -> Integer4
pub const fn xxxy(self) -> Integer4
pub const fn xxxz(self) -> Integer4
pub const fn xxyx(self) -> Integer4
pub const fn xxyy(self) -> Integer4
pub const fn xxyz(self) -> Integer4
pub const fn xxzx(self) -> Integer4
pub const fn xxzy(self) -> Integer4
pub const fn xxzz(self) -> Integer4
pub const fn xyxx(self) -> Integer4
pub const fn xyxy(self) -> Integer4
pub const fn xyxz(self) -> Integer4
pub const fn xyyx(self) -> Integer4
pub const fn xyyy(self) -> Integer4
pub const fn xyyz(self) -> Integer4
pub const fn xyzx(self) -> Integer4
pub const fn xyzy(self) -> Integer4
pub const fn xyzz(self) -> Integer4
pub const fn xzxx(self) -> Integer4
pub const fn xzxy(self) -> Integer4
pub const fn xzxz(self) -> Integer4
pub const fn xzyx(self) -> Integer4
pub const fn xzyy(self) -> Integer4
pub const fn xzyz(self) -> Integer4
pub const fn xzzx(self) -> Integer4
pub const fn xzzy(self) -> Integer4
pub const fn xzzz(self) -> Integer4
pub const fn yxxx(self) -> Integer4
pub const fn yxxy(self) -> Integer4
pub const fn yxxz(self) -> Integer4
pub const fn yxyx(self) -> Integer4
pub const fn yxyy(self) -> Integer4
pub const fn yxzx(self) -> Integer4
pub const fn yxzy(self) -> Integer4
pub const fn yxzz(self) -> Integer4
pub const fn yyxx(self) -> Integer4
pub const fn yyxy(self) -> Integer4
pub const fn yyxz(self) -> Integer4
pub const fn yyyx(self) -> Integer4
pub const fn yyyy(self) -> Integer4
pub const fn yyyz(self) -> Integer4
pub const fn yyzx(self) -> Integer4
pub const fn yyzy(self) -> Integer4
pub const fn yyzz(self) -> Integer4
pub const fn yzxx(self) -> Integer4
pub const fn yzxy(self) -> Integer4
pub const fn yzxz(self) -> Integer4
pub const fn yzyx(self) -> Integer4
pub const fn yzyy(self) -> Integer4
pub const fn yzyz(self) -> Integer4
pub const fn yzzx(self) -> Integer4
pub const fn yzzy(self) -> Integer4
pub const fn yzzz(self) -> Integer4
pub const fn zxxx(self) -> Integer4
pub const fn zxxy(self) -> Integer4
pub const fn zxxz(self) -> Integer4
pub const fn zxyx(self) -> Integer4
pub const fn zxyy(self) -> Integer4
pub const fn zxyz(self) -> Integer4
pub const fn zxzx(self) -> Integer4
pub const fn zxzy(self) -> Integer4
pub const fn zxzz(self) -> Integer4
pub const fn zyxx(self) -> Integer4
pub const fn zyxy(self) -> Integer4
pub const fn zyxz(self) -> Integer4
pub const fn zyyx(self) -> Integer4
pub const fn zyyy(self) -> Integer4
pub const fn zyyz(self) -> Integer4
pub const fn zyzx(self) -> Integer4
pub const fn zyzy(self) -> Integer4
pub const fn zyzz(self) -> Integer4
pub const fn zzxx(self) -> Integer4
pub const fn zzxy(self) -> Integer4
pub const fn zzxz(self) -> Integer4
pub const fn zzyx(self) -> Integer4
pub const fn zzyy(self) -> Integer4
pub const fn zzyz(self) -> Integer4
pub const fn zzzx(self) -> Integer4
pub const fn zzzy(self) -> Integer4
pub const fn zzzz(self) -> Integer4
Source§impl Integer3
impl Integer3
Sourcepub const fn from_array(arr: [i32; 3]) -> Self
pub const fn from_array(arr: [i32; 3]) -> Self
Creates with given array.
Sourcepub fn from_slice(slice: &[i32]) -> Self
pub fn from_slice(slice: &[i32]) -> Self
Creates with given slice.
§Panics
If the length of the given array is less than the number of elements in the vector, an index out of range error occurs.
Sourcepub const fn from_tuple(tuple: (i32, i32, i32)) -> Self
pub const fn from_tuple(tuple: (i32, i32, i32)) -> Self
Creates with given tuple.
Trait Implementations§
Source§impl AddAssign<i32> for Integer3
impl AddAssign<i32> for Integer3
Source§fn add_assign(&mut self, rhs: i32)
fn add_assign(&mut self, rhs: i32)
Adds a scalar value to vector elements. (assign)
Source§impl AddAssign for Integer3
impl AddAssign for Integer3
Source§fn add_assign(&mut self, rhs: Integer3)
fn add_assign(&mut self, rhs: Integer3)
Adds two vectors. (assign)
Source§impl BitAndAssign for Integer3
impl BitAndAssign for Integer3
Source§fn bitand_assign(&mut self, rhs: Self)
fn bitand_assign(&mut self, rhs: Self)
Element-wise bit AND
operation of two vectors. (assign)
Source§impl BitOrAssign for Integer3
impl BitOrAssign for Integer3
Source§fn bitor_assign(&mut self, rhs: Self)
fn bitor_assign(&mut self, rhs: Self)
Element-wise bit OR
operation of two vectors. (assign)
Source§impl BitXorAssign for Integer3
impl BitXorAssign for Integer3
Source§fn bitxor_assign(&mut self, rhs: Self)
fn bitxor_assign(&mut self, rhs: Self)
Element-wise bit XOR
operation of two vectors. (assign)
Source§impl DivAssign<i32> for Integer3
impl DivAssign<i32> for Integer3
Source§fn div_assign(&mut self, rhs: i32)
fn div_assign(&mut self, rhs: i32)
Divide a vector elements to a scalar value. (assign)
Source§impl DivAssign for Integer3
impl DivAssign for Integer3
Source§fn div_assign(&mut self, rhs: Integer3)
fn div_assign(&mut self, rhs: Integer3)
Element-wise division of two vectors. (assign)
Source§impl MulAssign<i32> for Integer3
impl MulAssign<i32> for Integer3
Source§fn mul_assign(&mut self, rhs: i32)
fn mul_assign(&mut self, rhs: i32)
Multiply a scalar value to vector elements. (assign)
Source§impl MulAssign for Integer3
impl MulAssign for Integer3
Source§fn mul_assign(&mut self, rhs: Integer3)
fn mul_assign(&mut self, rhs: Integer3)
Element-wise multiplication of two vectors. (assign)
Source§impl RemAssign<i32> for Integer3
impl RemAssign<i32> for Integer3
Source§fn rem_assign(&mut self, rhs: i32)
fn rem_assign(&mut self, rhs: i32)
Remainders a scalar value to a vector elements. (assign)
Source§impl RemAssign for Integer3
impl RemAssign for Integer3
Source§fn rem_assign(&mut self, rhs: Integer3)
fn rem_assign(&mut self, rhs: Integer3)
Element-wise remaindation of two vectors. (assign)
Source§impl SubAssign<i32> for Integer3
impl SubAssign<i32> for Integer3
Source§fn sub_assign(&mut self, rhs: i32)
fn sub_assign(&mut self, rhs: i32)
Subtracts a scalar value to vector elements. (assign)
Source§impl SubAssign for Integer3
impl SubAssign for Integer3
Source§fn sub_assign(&mut self, rhs: Integer3)
fn sub_assign(&mut self, rhs: Integer3)
Subtracts two vectors. (assign)