[][src]Struct ico_math::Vector3Int

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

Fields

data: __m128i

Methods

impl Vector3Int[src]

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

Returns a new Vector3

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

pub fn zero() -> Vector3Int[src]

pub fn load(raw: &RawVector_i32) -> Vector3Int[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 z(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 set_z<T: Into<i32>>(&mut self, value: T)[src]

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pub fn xxx(self) -> Vector3Int[src]

pub fn xxy(self) -> Vector3Int[src]

pub fn xxz(self) -> Vector3Int[src]

pub fn xyx(self) -> Vector3Int[src]

pub fn xyy(self) -> Vector3Int[src]

pub fn xyz(self) -> Vector3Int[src]

pub fn xzx(self) -> Vector3Int[src]

pub fn xzy(self) -> Vector3Int[src]

pub fn xzz(self) -> Vector3Int[src]

pub fn yxx(self) -> Vector3Int[src]

pub fn yxy(self) -> Vector3Int[src]

pub fn yxz(self) -> Vector3Int[src]

pub fn yyx(self) -> Vector3Int[src]

pub fn yyy(self) -> Vector3Int[src]

pub fn yyz(self) -> Vector3Int[src]

pub fn yzx(self) -> Vector3Int[src]

pub fn yzy(self) -> Vector3Int[src]

pub fn yzz(self) -> Vector3Int[src]

pub fn zxx(self) -> Vector3Int[src]

pub fn zxy(self) -> Vector3Int[src]

pub fn zxz(self) -> Vector3Int[src]

pub fn zyx(self) -> Vector3Int[src]

pub fn zyy(self) -> Vector3Int[src]

pub fn zyz(self) -> Vector3Int[src]

pub fn zzx(self) -> Vector3Int[src]

pub fn zzy(self) -> Vector3Int[src]

pub fn zzz(self) -> Vector3Int[src]

Trait Implementations

impl SIMDVector3 for Vector3Int[src]

impl Clone for Vector3Int[src]

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

Performs copy-assignment from source. Read more

impl From<Vector3Int> for Vector2Int[src]

impl From<Vector3Int> for Vector3[src]

impl From<i32> for Vector3Int[src]

impl From<IntVector> for Vector3Int[src]

impl From<Vector2Int> for Vector3Int[src]

impl From<Vector4Int> for Vector3Int[src]

impl From<Vector3> for Vector3Int[src]

impl From<Vector3Int> for Vector4Int[src]

impl PartialEq<Vector3Int> for Vector3Int[src]

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

This method tests for !=.

impl Copy for Vector3Int[src]

impl Debug for Vector3Int[src]

impl Add<Vector3Int> for Vector3Int[src]

type Output = Vector3Int

The resulting type after applying the + operator.

impl Sub<Vector3Int> for Vector3Int[src]

type Output = Vector3Int

The resulting type after applying the - operator.

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

type Output = Vector3Int

The resulting type after applying the * operator.

impl Mul<Vector3Int> for IntVector[src]

type Output = Vector3Int

The resulting type after applying the * operator.

impl Neg for Vector3Int[src]

type Output = Vector3Int

The resulting type after applying the - operator.

impl AddAssign<Vector3Int> for Vector3Int[src]

impl SubAssign<Vector3Int> for Vector3Int[src]

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

impl Hash for Vector3Int[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]