[−][src]Struct ico_math::IntVector
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(&self) -> 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]
fn from(v: IntVector) -> FloatVector
[src]
impl From<IntVector> for i32
[src]
impl From<i32> for IntVector
[src]
impl From<FloatVector> for IntVector
[src]
fn from(v: FloatVector) -> IntVector
[src]
impl From<IntVector> for Vector2Int
[src]
fn from(val: IntVector) -> Vector2Int
[src]
impl From<IntVector> for Vector3Int
[src]
fn from(val: IntVector) -> Vector3Int
[src]
impl From<IntVector> for Vector4Int
[src]
fn from(val: IntVector) -> Vector4Int
[src]
impl PartialEq<IntVector> for IntVector
[src]
fn eq(&self, other: &IntVector) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.
impl PartialEq<i32> for IntVector
[src]
fn eq(&self, other: &i32) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.
impl PartialEq<IntVector> for i32
[src]
fn eq(&self, other: &IntVector) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.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.
fn add(self, _rhs: T) -> IntVector
[src]
impl<T: Into<IntVector>> Sub<T> for IntVector
[src]
type Output = IntVector
The resulting type after applying the -
operator.
fn sub(self, _rhs: T) -> IntVector
[src]
impl<T: Into<IntVector>> Mul<T> for IntVector
[src]
type Output = IntVector
The resulting type after applying the *
operator.
fn mul(self, _rhs: T) -> IntVector
[src]
impl Mul<Vector2Int> for IntVector
[src]
type Output = Vector2Int
The resulting type after applying the *
operator.
fn mul(self: IntVector, _rhs: Vector2Int) -> Vector2Int
[src]
impl Mul<Vector3Int> for IntVector
[src]
type Output = Vector3Int
The resulting type after applying the *
operator.
fn mul(self: IntVector, _rhs: Vector3Int) -> Vector3Int
[src]
impl Mul<Vector4Int> for IntVector
[src]
type Output = Vector4Int
The resulting type after applying the *
operator.
fn mul(self: IntVector, _rhs: Vector4Int) -> Vector4Int
[src]
impl Neg for IntVector
[src]
type Output = IntVector
The resulting type after applying the -
operator.
fn neg(self) -> Self::Output
[src]
impl<T: Into<IntVector>> AddAssign<T> for IntVector
[src]
fn add_assign(&mut self, other: T)
[src]
impl<T: Into<IntVector>> SubAssign<T> for IntVector
[src]
fn sub_assign(&mut self, other: T)
[src]
impl<T: Into<IntVector>> MulAssign<T> for IntVector
[src]
fn mul_assign(&mut self, _rhs: T)
[src]
impl Hash for IntVector
[src]
Auto Trait Implementations
impl Sync for IntVector
impl Send for IntVector
impl Unpin for IntVector
impl RefUnwindSafe for IntVector
impl UnwindSafe for IntVector
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,