[][src]Struct ico_math::IntVector

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

Fields

data: __m128i

Methods

impl IntVector[src]

pub fn new(value: i32) -> IntVector[src]

Returns a new Vector2

pub fn zero() -> IntVector[src]

pub fn value(&self) -> i32[src]

pub fn max(v1: IntVector, v2: IntVector) -> IntVector[src]

pub fn min(v1: IntVector, v2: IntVector) -> IntVector[src]

pub fn abs(v1: IntVector) -> IntVector[src]

pub fn sign(v1: IntVector, v2: IntVector) -> IntVector[src]

pub fn add(v1: IntVector, v2: IntVector) -> IntVector[src]

pub fn sub(v1: IntVector, v2: IntVector) -> IntVector[src]

pub fn mul(v1: IntVector, v2: IntVector) -> IntVector[src]

pub fn and(v1: IntVector, v2: IntVector) -> IntVector[src]

pub fn or(v1: IntVector, v2: IntVector) -> IntVector[src]

pub fn andnot(v1: IntVector, v2: IntVector) -> IntVector[src]

pub fn xor(v1: IntVector, v2: IntVector) -> IntVector[src]

pub fn equal(v1: IntVector, v2: IntVector) -> IntVector[src]

pub fn greater(v1: IntVector, v2: IntVector) -> IntVector[src]

pub fn less(v1: IntVector, v2: IntVector) -> IntVector[src]

pub fn equals(v1: IntVector, v2: IntVector) -> bool[src]

Trait Implementations

impl Clone for IntVector[src]

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

Performs copy-assignment from source. Read more

impl From<IntVector> for FloatVector[src]

impl From<IntVector> for i32[src]

impl From<i32> for IntVector[src]

impl From<FloatVector> for IntVector[src]

impl From<IntVector> for Vector2Int[src]

impl From<IntVector> for Vector3Int[src]

impl From<IntVector> for Vector4Int[src]

impl PartialEq<IntVector> for IntVector[src]

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

This method tests for !=.

impl PartialEq<i32> for IntVector[src]

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

This method tests for !=.

impl PartialEq<IntVector> for i32[src]

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

This method tests for !=.

impl Copy for IntVector[src]

impl Debug for IntVector[src]

impl<T: Into<IntVector>> Add<T> for IntVector[src]

type Output = IntVector

The resulting type after applying the + operator.

impl<T: Into<IntVector>> Sub<T> for IntVector[src]

type Output = IntVector

The resulting type after applying the - operator.

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

type Output = IntVector

The resulting type after applying the * operator.

impl Mul<Vector2Int> for IntVector[src]

type Output = Vector2Int

The resulting type after applying the * operator.

impl Mul<Vector3Int> for IntVector[src]

type Output = Vector3Int

The resulting type after applying the * operator.

impl Mul<Vector4Int> for IntVector[src]

type Output = Vector4Int

The resulting type after applying the * operator.

impl Neg for IntVector[src]

type Output = IntVector

The resulting type after applying the - operator.

impl<T: Into<IntVector>> AddAssign<T> for IntVector[src]

impl<T: Into<IntVector>> SubAssign<T> for IntVector[src]

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

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