Struct Vector3Int

Source
#[repr(C, align(16))]
pub struct Vector3Int { pub data: __m128i, }

Fields§

§data: __m128i

Implementations§

Source§

impl Vector3Int

Source

pub fn new(x: i32, y: i32, z: i32) -> Vector3Int

Returns a new Vector3

Source

pub fn set<T: Into<IntVector>>(value: T) -> Vector3Int

Source

pub fn zero() -> Vector3Int

Source

pub fn load(raw: &RawVector_i32) -> Vector3Int

Load a value from aligned memory.

Source

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

Store a value to aligned memory.

Source

pub fn x(self) -> IntVector

Source

pub fn y(self) -> IntVector

Source

pub fn z(self) -> IntVector

Source

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

Source

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

Source

pub fn set_z<T: Into<i32>>(&mut self, value: T)

Source

pub fn max(self, v2: Vector3Int) -> Vector3Int

Source

pub fn min(self, v2: Vector3Int) -> Vector3Int

Source

pub fn select(self, v2: Vector3Int, mask: Vector3Bool) -> Vector3Int

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

Source

pub fn add(self, v2: Vector3Int) -> Vector3Int

Source

pub fn sub(self, v2: Vector3Int) -> Vector3Int

Source

pub fn mul(self, v2: Vector3Int) -> Vector3Int

Source

pub fn abs(self) -> Vector3Int

Source

pub fn sign(self, v2: Vector3Int) -> Vector3Int

Source

pub fn and<T: SIMDVector3>(self, v2: T) -> Vector3Int

Source

pub fn or<T: SIMDVector3>(self, v2: T) -> Vector3Int

Source

pub fn andnot<T: SIMDVector3>(self, v2: T) -> Vector3Int

Source

pub fn xor<T: SIMDVector3>(self, v2: T) -> Vector3Int

Source

pub fn equal(self, v2: Vector3Int) -> Vector3Bool

Source

pub fn not_equal(self, v2: Vector3Int) -> Vector3Bool

Source

pub fn greater_equal(self, v2: Vector3Int) -> Vector3Bool

Source

pub fn greater(self, v2: Vector3Int) -> Vector3Bool

Source

pub fn less_equal(self, v2: Vector3Int) -> Vector3Bool

Source

pub fn less(self, v2: Vector3Int) -> Vector3Bool

Source

pub fn xxxx(self) -> Vector4Int

Source

pub fn yyyy(self) -> Vector4Int

Source

pub fn zzzz(self) -> Vector4Int

Source

pub fn xxx(self) -> Vector3Int

Source

pub fn xxy(self) -> Vector3Int

Source

pub fn xxz(self) -> Vector3Int

Source

pub fn xyx(self) -> Vector3Int

Source

pub fn xyy(self) -> Vector3Int

Source

pub fn xyz(self) -> Vector3Int

Source

pub fn xzx(self) -> Vector3Int

Source

pub fn xzy(self) -> Vector3Int

Source

pub fn xzz(self) -> Vector3Int

Source

pub fn yxx(self) -> Vector3Int

Source

pub fn yxy(self) -> Vector3Int

Source

pub fn yxz(self) -> Vector3Int

Source

pub fn yyx(self) -> Vector3Int

Source

pub fn yyy(self) -> Vector3Int

Source

pub fn yyz(self) -> Vector3Int

Source

pub fn yzx(self) -> Vector3Int

Source

pub fn yzy(self) -> Vector3Int

Source

pub fn yzz(self) -> Vector3Int

Source

pub fn zxx(self) -> Vector3Int

Source

pub fn zxy(self) -> Vector3Int

Source

pub fn zxz(self) -> Vector3Int

Source

pub fn zyx(self) -> Vector3Int

Source

pub fn zyy(self) -> Vector3Int

Source

pub fn zyz(self) -> Vector3Int

Source

pub fn zzx(self) -> Vector3Int

Source

pub fn zzy(self) -> Vector3Int

Source

pub fn zzz(self) -> Vector3Int

Trait Implementations§

Source§

impl Add for Vector3Int

Source§

type Output = Vector3Int

The resulting type after applying the + operator.
Source§

fn add(self, _rhs: Vector3Int) -> Vector3Int

Performs the + operation. Read more
Source§

impl AddAssign for Vector3Int

Source§

fn add_assign(&mut self, other: Vector3Int)

Performs the += operation. Read more
Source§

impl Clone for Vector3Int

Source§

fn clone(&self) -> Vector3Int

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Vector3Int

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl From<IntVector> for Vector3Int

Source§

fn from(val: IntVector) -> Vector3Int

Converts to this type from the input type.
Source§

impl From<Vector2Int> for Vector3Int

Source§

fn from(v: Vector2Int) -> Vector3Int

Converts to this type from the input type.
Source§

impl From<Vector3> for Vector3Int

Source§

fn from(v: Vector3) -> Vector3Int

Converts to this type from the input type.
Source§

impl From<Vector3Int> for Vector2Int

Source§

fn from(v: Vector3Int) -> Vector2Int

Converts to this type from the input type.
Source§

impl From<Vector3Int> for Vector3

Source§

fn from(v: Vector3Int) -> Vector3

Converts to this type from the input type.
Source§

impl From<Vector3Int> for Vector4Int

Source§

fn from(v: Vector3Int) -> Vector4Int

Converts to this type from the input type.
Source§

impl From<Vector4Int> for Vector3Int

Source§

fn from(v: Vector4Int) -> Vector3Int

Converts to this type from the input type.
Source§

impl From<i32> for Vector3Int

Source§

fn from(v: i32) -> Vector3Int

Converts to this type from the input type.
Source§

impl Hash for Vector3Int

Source§

fn hash<H: Hasher>(&self, state: &mut H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

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

Feeds a slice of this type into the given Hasher. Read more
Source§

impl<T: Into<IntVector>> Mul<T> for Vector3Int

Source§

type Output = Vector3Int

The resulting type after applying the * operator.
Source§

fn mul(self, _rhs: T) -> Vector3Int

Performs the * operation. Read more
Source§

impl Mul<Vector3Int> for IntVector

Source§

type Output = Vector3Int

The resulting type after applying the * operator.
Source§

fn mul(self: IntVector, _rhs: Vector3Int) -> Vector3Int

Performs the * operation. Read more
Source§

impl<T: Into<IntVector>> MulAssign<T> for Vector3Int

Source§

fn mul_assign(&mut self, _rhs: T)

Performs the *= operation. Read more
Source§

impl Neg for Vector3Int

Source§

type Output = Vector3Int

The resulting type after applying the - operator.
Source§

fn neg(self) -> Self::Output

Performs the unary - operation. Read more
Source§

impl PartialEq for Vector3Int

Source§

fn eq(&self, other: &Vector3Int) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl SIMDVector3 for Vector3Int

Source§

fn data(self) -> __m128

Source§

fn data_i(self) -> __m128i

Source§

impl Sub for Vector3Int

Source§

type Output = Vector3Int

The resulting type after applying the - operator.
Source§

fn sub(self, _rhs: Vector3Int) -> Vector3Int

Performs the - operation. Read more
Source§

impl SubAssign for Vector3Int

Source§

fn sub_assign(&mut self, other: Vector3Int)

Performs the -= operation. Read more
Source§

impl Copy for Vector3Int

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.