#[repr(C, align(16))]pub struct Vector2Int {
pub data: __m128i,
}Fields§
§data: __m128iImplementations§
Source§impl Vector2Int
impl Vector2Int
Sourcepub fn new(x: i32, y: i32) -> Vector2Int
pub fn new(x: i32, y: i32) -> Vector2Int
Returns a new Vector2
pub fn set<T: Into<IntVector>>(value: T) -> Vector2Int
pub fn zero() -> Vector2Int
Sourcepub fn load(raw: &RawVector_i32) -> Vector2Int
pub fn load(raw: &RawVector_i32) -> Vector2Int
Load a value from aligned memory.
Sourcepub fn store(self, dst: &mut RawVector_i32)
pub fn store(self, dst: &mut RawVector_i32)
Store a value to aligned memory.
pub fn x(self) -> IntVector
pub fn y(self) -> IntVector
pub fn set_x<T: Into<i32>>(&mut self, value: T)
pub fn set_y<T: Into<i32>>(&mut self, value: T)
pub fn max(self, v2: Vector2Int) -> Vector2Int
pub fn min(self, v2: Vector2Int) -> Vector2Int
Sourcepub fn select(self, v2: Vector2Int, mask: Vector2Bool) -> Vector2Int
pub fn select(self, v2: Vector2Int, mask: Vector2Bool) -> Vector2Int
Choose component wise between A and B based on the mask. False = A, True = B.
pub fn add(self, v2: Vector2Int) -> Vector2Int
pub fn sub(self, v2: Vector2Int) -> Vector2Int
pub fn mul(self, v2: Vector2Int) -> Vector2Int
pub fn abs(self) -> Vector2Int
pub fn sign(self, v2: Vector2Int) -> Vector2Int
pub fn and<T: SIMDVector2>(self, v2: T) -> Vector2Int
pub fn or<T: SIMDVector2>(self, v2: T) -> Vector2Int
pub fn andnot<T: SIMDVector2>(self, v2: T) -> Vector2Int
pub fn xor<T: SIMDVector2>(self, v2: T) -> Vector2Int
pub fn equal(self, v2: Vector2Int) -> Vector2Bool
pub fn not_equal(self, v2: Vector2Int) -> Vector2Bool
pub fn greater_equal(self, v2: Vector2Int) -> Vector2Bool
pub fn greater(self, v2: Vector2Int) -> Vector2Bool
pub fn less_equal(self, v2: Vector2Int) -> Vector2Bool
pub fn less(self, v2: Vector2Int) -> Vector2Bool
pub fn xxxx(self) -> Vector4Int
pub fn yyyy(self) -> Vector4Int
pub fn xx(self) -> Vector2Int
pub fn xy(self) -> Vector2Int
pub fn yx(self) -> Vector2Int
pub fn yy(self) -> Vector2Int
Trait Implementations§
Source§impl Add for Vector2Int
impl Add for Vector2Int
Source§type Output = Vector2Int
type Output = Vector2Int
The resulting type after applying the
+ operator.Source§fn add(self, _rhs: Vector2Int) -> Vector2Int
fn add(self, _rhs: Vector2Int) -> Vector2Int
Performs the
+ operation. Read moreSource§impl AddAssign for Vector2Int
impl AddAssign for Vector2Int
Source§fn add_assign(&mut self, other: Vector2Int)
fn add_assign(&mut self, other: Vector2Int)
Performs the
+= operation. Read moreSource§impl Clone for Vector2Int
impl Clone for Vector2Int
Source§fn clone(&self) -> Vector2Int
fn clone(&self) -> Vector2Int
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for Vector2Int
impl Debug for Vector2Int
Source§impl From<IntVector> for Vector2Int
impl From<IntVector> for Vector2Int
Source§fn from(val: IntVector) -> Vector2Int
fn from(val: IntVector) -> Vector2Int
Converts to this type from the input type.
Source§impl From<Vector2> for Vector2Int
impl From<Vector2> for Vector2Int
Source§fn from(v: Vector2) -> Vector2Int
fn from(v: Vector2) -> Vector2Int
Converts to this type from the input type.
Source§impl From<Vector2Int> for Vector2
impl From<Vector2Int> for Vector2
Source§fn from(v: Vector2Int) -> Vector2
fn from(v: Vector2Int) -> Vector2
Converts to this type from the input type.
Source§impl From<Vector2Int> for Vector3Int
impl From<Vector2Int> for Vector3Int
Source§fn from(v: Vector2Int) -> Vector3Int
fn from(v: Vector2Int) -> Vector3Int
Converts to this type from the input type.
Source§impl From<Vector2Int> for Vector4Int
impl From<Vector2Int> for Vector4Int
Source§fn from(v: Vector2Int) -> Vector4Int
fn from(v: Vector2Int) -> Vector4Int
Converts to this type from the input type.
Source§impl From<Vector3Int> for Vector2Int
impl From<Vector3Int> for Vector2Int
Source§fn from(v: Vector3Int) -> Vector2Int
fn from(v: Vector3Int) -> Vector2Int
Converts to this type from the input type.
Source§impl From<Vector4Int> for Vector2Int
impl From<Vector4Int> for Vector2Int
Source§fn from(v: Vector4Int) -> Vector2Int
fn from(v: Vector4Int) -> Vector2Int
Converts to this type from the input type.
Source§impl From<i32> for Vector2Int
impl From<i32> for Vector2Int
Source§fn from(v: i32) -> Vector2Int
fn from(v: i32) -> Vector2Int
Converts to this type from the input type.
Source§impl Hash for Vector2Int
impl Hash for Vector2Int
Source§impl<T: Into<IntVector>> Mul<T> for Vector2Int
impl<T: Into<IntVector>> Mul<T> for Vector2Int
Source§type Output = Vector2Int
type Output = Vector2Int
The resulting type after applying the
* operator.Source§fn mul(self, _rhs: T) -> Vector2Int
fn mul(self, _rhs: T) -> Vector2Int
Performs the
* operation. Read moreSource§impl Mul<Vector2Int> for IntVector
impl Mul<Vector2Int> for IntVector
Source§type Output = Vector2Int
type Output = Vector2Int
The resulting type after applying the
* operator.Source§fn mul(self: IntVector, _rhs: Vector2Int) -> Vector2Int
fn mul(self: IntVector, _rhs: Vector2Int) -> Vector2Int
Performs the
* operation. Read moreSource§impl<T: Into<IntVector>> MulAssign<T> for Vector2Int
impl<T: Into<IntVector>> MulAssign<T> for Vector2Int
Source§fn mul_assign(&mut self, _rhs: T)
fn mul_assign(&mut self, _rhs: T)
Performs the
*= operation. Read moreSource§impl Neg for Vector2Int
impl Neg for Vector2Int
Source§impl PartialEq for Vector2Int
impl PartialEq for Vector2Int
Source§impl SIMDVector2 for Vector2Int
impl SIMDVector2 for Vector2Int
Source§impl Sub for Vector2Int
impl Sub for Vector2Int
Source§type Output = Vector2Int
type Output = Vector2Int
The resulting type after applying the
- operator.Source§fn sub(self, _rhs: Vector2Int) -> Vector2Int
fn sub(self, _rhs: Vector2Int) -> Vector2Int
Performs the
- operation. Read moreSource§impl SubAssign for Vector2Int
impl SubAssign for Vector2Int
Source§fn sub_assign(&mut self, other: Vector2Int)
fn sub_assign(&mut self, other: Vector2Int)
Performs the
-= operation. Read moreimpl Copy for Vector2Int
Auto Trait Implementations§
impl Freeze for Vector2Int
impl RefUnwindSafe for Vector2Int
impl Send for Vector2Int
impl Sync for Vector2Int
impl Unpin for Vector2Int
impl UnwindSafe for Vector2Int
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