[][src]Struct ico_math::Vector2Int

#[repr(C)]
pub struct Vector2Int {
    pub data: __m128i,
}

Fields

data: __m128i

Methods

impl Vector2Int[src]

pub fn new(x: i32, y: i32) -> Vector2Int[src]

Returns a new Vector2

pub fn set<T: Into<IntVector>>(value: T) -> Vector2Int[src]

pub fn zero() -> Vector2Int[src]

pub fn load(raw: &RawVector_i32) -> Vector2Int[src]

Load a value from aligned memory.

pub fn store(self, dst: &mut RawVector_i32)[src]

Store a value to aligned memory.

pub fn x(self) -> IntVector[src]

pub fn y(self) -> IntVector[src]

pub fn set_x<T: Into<i32>>(&mut self, value: T)[src]

pub fn set_y<T: Into<i32>>(&mut self, value: T)[src]

pub fn max(self, v2: Vector2Int) -> Vector2Int[src]

pub fn min(self, v2: Vector2Int) -> Vector2Int[src]

pub fn select(self, v2: Vector2Int, mask: Vector2Bool) -> Vector2Int[src]

Choose component wise between A and B based on the mask. False = A, True = B.

pub fn add(self, v2: Vector2Int) -> Vector2Int[src]

pub fn sub(self, v2: Vector2Int) -> Vector2Int[src]

pub fn mul(self, v2: Vector2Int) -> Vector2Int[src]

pub fn abs(self) -> Vector2Int[src]

pub fn sign(self, v2: Vector2Int) -> Vector2Int[src]

pub fn and<T: SIMDVector2>(self, v2: T) -> Vector2Int[src]

pub fn or<T: SIMDVector2>(self, v2: T) -> Vector2Int[src]

pub fn andnot<T: SIMDVector2>(self, v2: T) -> Vector2Int[src]

pub fn xor<T: SIMDVector2>(self, v2: T) -> Vector2Int[src]

pub fn equal(self, v2: Vector2Int) -> Vector2Bool[src]

pub fn not_equal(self, v2: Vector2Int) -> Vector2Bool[src]

pub fn greater_equal(self, v2: Vector2Int) -> Vector2Bool[src]

pub fn greater(self, v2: Vector2Int) -> Vector2Bool[src]

pub fn less_equal(self, v2: Vector2Int) -> Vector2Bool[src]

pub fn less(self, v2: Vector2Int) -> Vector2Bool[src]

pub fn xxxx(self) -> Vector4Int[src]

pub fn yyyy(self) -> Vector4Int[src]

pub fn xx(self) -> Vector2Int[src]

pub fn xy(self) -> Vector2Int[src]

pub fn yx(self) -> Vector2Int[src]

pub fn yy(self) -> Vector2Int[src]

Trait Implementations

impl SIMDVector2 for Vector2Int[src]

impl Clone for Vector2Int[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl From<Vector2Int> for Vector2[src]

impl From<i32> for Vector2Int[src]

impl From<IntVector> for Vector2Int[src]

impl From<Vector3Int> for Vector2Int[src]

impl From<Vector4Int> for Vector2Int[src]

impl From<Vector2> for Vector2Int[src]

impl From<Vector2Int> for Vector3Int[src]

impl From<Vector2Int> for Vector4Int[src]

impl PartialEq<Vector2Int> for Vector2Int[src]

#[must_use] fn ne(&self, other: &Rhs) -> bool1.0.0[src]

This method tests for !=.

impl Copy for Vector2Int[src]

impl Debug for Vector2Int[src]

impl Add<Vector2Int> for Vector2Int[src]

type Output = Vector2Int

The resulting type after applying the + operator.

impl Sub<Vector2Int> for Vector2Int[src]

type Output = Vector2Int

The resulting type after applying the - operator.

impl<T: Into<IntVector>> Mul<T> for Vector2Int[src]

type Output = Vector2Int

The resulting type after applying the * operator.

impl Mul<Vector2Int> for IntVector[src]

type Output = Vector2Int

The resulting type after applying the * operator.

impl Neg for Vector2Int[src]

type Output = Vector2Int

The resulting type after applying the - operator.

impl AddAssign<Vector2Int> for Vector2Int[src]

impl SubAssign<Vector2Int> for Vector2Int[src]

impl<T: Into<IntVector>> MulAssign<T> for Vector2Int[src]

impl Hash for Vector2Int[src]

fn hash_slice<H>(data: &[Self], state: &mut H) where
    H: Hasher
1.3.0[src]

Feeds a slice of this type into the given [Hasher]. Read more

Auto Trait Implementations

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]