Vector4

Struct Vector4 

Source
#[repr(C)]
pub struct Vector4<U: Unit = f32> { pub x: U::Scalar, pub y: U::Scalar, pub z: U::Scalar, pub w: U::Scalar, }
Expand description

4D vector.

§Alignment

This is always has the same alignment as the scalar component type, and not the “normal” 128-bit alignment. This is due to limitations in the #[repr(align(...))] attribute when combined with generics.

Fields§

§x: U::Scalar

X coordinate

§y: U::Scalar

Y coordinate

§z: U::Scalar

Z coordinate

§w: U::Scalar

W coordinate

Implementations§

Source§

impl<T: Unit> Vector4<T>

Source

pub const fn new(x: T::Scalar, y: T::Scalar, z: T::Scalar, w: T::Scalar) -> Self

New vector.

Source

pub fn from_point(point: Point4<T>) -> Self

Instantiate from point.

Source

pub fn to_point(self) -> Point4<T>

Convert to point.

Source

pub fn as_point(&self) -> &Point4<T>

Reinterpret as point.

Source

pub fn as_point_mut(&mut self) -> &mut Point4<T>

Reinterpret as point.

Source§

impl<T: Unit> Vector4<T>

Source

pub fn splat(scalar: T::Scalar) -> Self

Set all elements to scalar.

Source

pub fn clamp(self, min: Self, max: Self) -> Self

Clamp all elements within min and max.

Source

pub fn min(self, other: Self) -> Self

Return by-element minimum.

Source

pub fn max(self, other: Self) -> Self

Return by-element maximum.

Source

pub fn min_element(self) -> T::Scalar

Min element.

Source

pub fn max_element(self) -> T::Scalar

Max element.

Source

pub fn write_to_slice(self, slice: &mut [T::Scalar])

Write this vector type to a slice.

Source

pub fn with_x(self, x: T::Scalar) -> Self

Replace x component.

Source

pub fn with_y(self, x: T::Scalar) -> Self

Replace y component.

Source

pub fn element_sum(self) -> T::Scalar

Sum of all elements.

Source

pub fn element_product(self) -> T::Scalar

Product of all elements.

Source

pub fn as_array(&self) -> &[T::Scalar; 4]

Reinterpret as array.

Source

pub fn as_array_mut(&mut self) -> &mut [T::Scalar; 4]

Reinterpret as mutable array.

Source

pub fn get(&self, index: usize) -> T::Scalar

Get component at index.

Source

pub fn set(&mut self, index: usize, value: T::Scalar)

Set component at index.

Source

pub fn const_get<const N: usize>(&self) -> T::Scalar

Get component at index N.

Source

pub fn const_set<const N: usize>(&mut self, value: T::Scalar)

Set component at index N.

Source

pub fn map<F: Fn(T::Scalar) -> T::Scalar>(self, f: F) -> Self

Returns a vector containing each element of self modified by a mapping function f.

Source

pub fn from_untyped(untyped: Vector4<T::Scalar>) -> Vector4<T>

Bitcast an untyped instance to self.

Source

pub fn to_untyped(self) -> Vector4<T::Scalar>

Bitcast self to an untyped instance.

Source

pub fn as_untyped(&self) -> &Vector4<T::Scalar>

Reinterpret cast self as the untyped variant.

Source

pub fn as_untyped_mut(&mut self) -> &mut Vector4<T::Scalar>

Reinterpret cast self as the untyped variant.

Source

pub fn cast<T2>(self) -> Vector4<T2>
where T2: Unit<Scalar = T::Scalar>,

Cast to a different coordinate space with the same underlying scalar type.

Source

pub fn cast_ref<T2>(&self) -> &Vector4<T2>
where T2: Unit<Scalar = T::Scalar>,

Cast to a different coordinate space with the same underlying scalar type.

Source

pub fn cast_mut<T2>(&mut self) -> &mut Vector4<T2>
where T2: Unit<Scalar = T::Scalar>,

Cast to a different coordinate space with the same underlying scalar type.

Source

pub fn as_<T2>(self) -> Vector4<T2>
where T: Unit<Scalar: AsPrimitive<T2::Scalar>>, T2: Unit,

Cast to a different coordinate space with scalar type conversion through the as operator (potentially narrowing or losing precision).

Source

pub fn try_cast<T2>(self) -> Option<Vector4<T2>>
where T2: Unit,

Cast to a different coordinate space with scalar type conversion. Returns None if any component could not be converted to the target scalar type.

Source

pub fn to_tuple(self) -> (T::Scalar, T::Scalar, T::Scalar, T::Scalar)

Convert this vector or point to a tuple.

Source

pub fn from_tuple( (x, y, z, w): (T::Scalar, T::Scalar, T::Scalar, T::Scalar), ) -> Self

Create from tuple.

Source§

impl<T: FloatUnit> Vector4<T>

Source

pub fn ceil(self) -> Self

Round all components up.

Source

pub fn exp(self) -> Self

e^self by component

Source

pub fn floor(self) -> Self

Round all components down.

Source

pub fn fract(self) -> Self

Source

pub fn fract_gl(self) -> Self

Source

pub fn is_finite(self) -> bool

True if all components are non-infinity and non-NaN.

Source

pub fn is_nan(self) -> bool

True if any component is NaN.

Source

pub fn lerp(self, rhs: Self, s: T::Scalar) -> Self

Linear interpolation.

Source

pub fn powf(self, n: T::Scalar) -> Self

self^n by component

Source

pub fn recip(self) -> Self

1.0/self by component

Source

pub fn round(self) -> Self

Round all components.

Source

pub fn copysign(self, rhs: Self) -> Self

Returns a vector with signs of rhs and the magnitudes of self.

Source§

impl<T: SignedUnit> Vector4<T>

Source

pub fn signum(self) -> Self

Returns a vector with elements representing the sign of self.

Source

pub fn abs(self) -> Self

Returns a vector containing the absolute value of each element of self.

Source

pub fn rem_euclid(self, rhs: Self) -> Self

Returns the element-wise remainder of Euclidean division of self`` by rhs`.

§Panics

This function will panic if any rhs element is 0 or the division results in overflow.

Source§

impl<T: IntUnit> Vector4<T>

Source

pub fn saturating_add(self, rhs: Self) -> Self

Returns a vector containing the saturating addition of self and rhs.

Source

pub fn saturating_sub(self, rhs: Self) -> Self

Returns a vector containing the saturating subtraction of self and rhs.

Source

pub fn saturating_mul(self, rhs: Self) -> Self

Returns a vector containing the saturating multiplication of self and rhs.

Source

pub fn saturating_div(self, rhs: Self) -> Self

Returns a vector containing the saturating division of self and rhs.

Source

pub fn wrapping_add(self, rhs: Self) -> Self

Returns a vector containing the wrapping addition of self and rhs.

Source

pub fn wrapping_sub(self, rhs: Self) -> Self

Returns a vector containing the wrapping subtraction of self and rhs.

Source

pub fn wrapping_mul(self, rhs: Self) -> Self

Returns a vector containing the wrapping multiplication of self and rhs.

Source

pub fn wrapping_div(self, rhs: Self) -> Self

Returns a vector containing the wrapping division of self and rhs.

Source§

impl<T: Unit> Vector4<T>

Source

pub fn swizzle<const X: usize, const Y: usize, const Z: usize, const W: usize>( &self, ) -> Vector4<T>

Select components of this vector and return a new vector containing those components.

Source§

impl<T: Unit> Vector4<T>

Source

pub const ZERO: Self

All zeroes.

Source

pub const ONE: Self

All ones.

Source

pub const X: Self

Unit vector in the direction of the X axis.

Source

pub const Y: Self

Unit vector in the direction of the Y axis.

Source

pub const Z: Self

Unit vector in the direction of the Z axis.

Source

pub const W: Self

Unit vector in the direction of the W axis.

Source

pub const AXES: [Self; 4]

The unit axes.

Source

pub fn to_raw(self) -> <T::Scalar as Scalar>::Vec4

Transparently cast this type to its underlying, bitwise compatible glam type.

Source

pub fn from_raw(vec: <T::Scalar as Scalar>::Vec4) -> Self

Convert a raw glam vector to this type. This is a zero-overhead cast.

Source§

impl<T: SignedUnit> Vector4<T>

Source

pub const NEG_ONE: Self

All negative one.

Source

pub const NEG_X: Self

(-1, 0, 0, 0)

Source

pub const NEG_Y: Self

(0, -1, 0, 0)

Source

pub const NEG_Z: Self

(0, 0, -1, 0)

Source

pub const NEG_W: Self

(0, 0, 0, -1)

Source§

impl<T: FloatUnit> Vector4<T>

Source

pub const NAN: Self

All NaN.

Source

pub const INFINITY: Self

All positive infinity.

Source

pub const NEG_INFINITY: Self

All negative infinity.

Source

pub fn is_nan_mask(self) -> BVec4

Return a mask where each bit is set if the corresponding component is NaN.

Source

pub fn is_finite_mask(self) -> BVec4

Performs is_finite on each element of self, returning a vector mask of the results.

Source§

impl<T: Unit> Vector4<T>

Source

pub fn from_array(array: [T::Scalar; 4]) -> Self

Creates a new vector from an array.

Source

pub fn to_array(&self) -> [T::Scalar; 4]

[x, y, z, w]

Source

pub fn truncate(self) -> Vector3<T>

Creates a 3D vector by removing the w component.

Source

pub fn cmpeq(self, rhs: Self) -> BVec4

Returns a vector mask containing the result of a == comparison for each element of self and rhs.

Source

pub fn cmpne(self, rhs: Self) -> BVec4

Returns a vector mask containing the result of a != comparison for each element of self and rhs.

Source

pub fn cmpge(self, rhs: Self) -> BVec4

Returns a vector mask containing the result of a >= comparison for each element of self and rhs.

Source

pub fn cmpgt(self, rhs: Self) -> BVec4

Returns a vector mask containing the result of a > comparison for each element of self and rhs.

Source

pub fn cmple(self, rhs: Self) -> BVec4

Returns a vector mask containing the result of a <= comparison for each element of self and rhs.

Source

pub fn cmplt(self, rhs: Self) -> BVec4

Returns a vector mask containing the result of a < comparison for each element of self and rhs.

Source

pub fn select(mask: BVec4, if_true: Self, if_false: Self) -> Self

Creates a vector from the elements in if_true and if_false, selecting which to use for each element of self.

A true element in the mask uses the corresponding element from if_true, and false uses the element from if_false.

Source

pub fn with_z(self, z: T::Scalar) -> Self

Replace the z component.

Source

pub fn with_w(self, w: T::Scalar) -> Self

Replace the w component.

Source§

impl<T: Unit> Vector4<T>

Source

pub fn dot(self, other: Self) -> T::Scalar

Dot product.

Source

pub fn dot_into_vec(self, other: Self) -> Self

Returns a vector where every component is the dot product of self and rhs.

Source§

impl<T: SignedUnit> Vector4<T>

Source

pub fn div_euclid(self, rhs: Self) -> Self

Returns the element-wise quotient of Euclidean division of self`` by rhs`.

§Panics

This function will panic if any rhs element is 0 or the division results in overflow.

Source§

impl<T: FloatUnit> Vector4<T>

Source

pub fn clamp_length_max(self, min: T::Scalar) -> Self

Clamp length

Source

pub fn clamp_length_min(self, min: T::Scalar) -> Self

Clamp length

Source

pub fn clamp_length(self, min: T::Scalar, max: T::Scalar) -> Self

Clamp length

Source

pub fn length(self) -> T::Scalar

Length of the vector

Source

pub fn length_squared(self) -> T::Scalar

Squared length of the vector

Source

pub fn length_recip(self) -> T::Scalar

Reciprocal length of the vector

Source

pub fn mul_add(self, a: Self, b: Self) -> Self

self * a + b

Source

pub fn normalize_or_zero(self) -> Self

Normalize the vector, returning zero if the length was already (very close to) zero.

Source

pub fn normalize(self) -> Self

Normalize the vector. Undefined results in the vector’s length is (very close to) zero.

Source

pub fn normalize_or(self, fallback: Self) -> Self

Returns self normalized to length 1.0 if possible, else returns a fallback value.

Source

pub fn try_normalize(self) -> Option<Self>

Normalize the vector, returning None if the length was already (very close to) zero.

Source

pub fn is_normalized(self) -> bool

True if the vector is normalized.

Source

pub fn project_onto_normalized(self, other: Self) -> Self

Source

pub fn project_onto(self, other: Self) -> Self

Source

pub fn reject_from_normalized(self, other: Self) -> Self

Source

pub fn reject_from(self, other: Self) -> Self

Source

pub fn reflect(self, normal: Self) -> Self

Returns the reflection vector for a given incident vector self and surface normal normal.

normal must be normalized.

Source

pub fn refract(self, normal: Self, eta: T::Scalar) -> Self

Returns the refraction direction for a given incident vector self, surface normal normal and ratio of indices of refraction, eta. When total internal reflection occurs, a zero vector will be returned.

self and normal must be normalized.

Trait Implementations§

Source§

impl<T: FloatUnit> AbsDiffEq for Vector4<T>

Source§

type Epsilon = <<T as Unit>::Scalar as AbsDiffEq>::Epsilon

Used for specifying relative comparisons.
Source§

fn default_epsilon() -> Self::Epsilon

The default tolerance to use when testing values that are close together. Read more
Source§

fn abs_diff_eq(&self, other: &Self, epsilon: Self::Epsilon) -> bool

A test for equality that uses the absolute difference to compute the approximate equality of two numbers.
Source§

fn abs_diff_ne(&self, other: &Self, epsilon: Self::Epsilon) -> bool

The inverse of AbsDiffEq::abs_diff_eq.
Source§

impl<T: Unit> Add<&Vector4<T>> for &Point4<T>

Source§

type Output = Point4<T>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: &Vector4<T>) -> Point4<T>

Performs the + operation. Read more
Source§

impl<T: Unit> Add<&Vector4<T>> for &Vector4<T>

Source§

type Output = Vector4<T>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: &Vector4<T>) -> Vector4<T>

Performs the + operation. Read more
Source§

impl<T: Unit<Scalar = f32>> Add<&Vector4<T>> for &f32

Source§

type Output = Vector4<T>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: &Vector4<T>) -> Vector4<T>

Performs the + operation. Read more
Source§

impl<T: Unit<Scalar = f64>> Add<&Vector4<T>> for &f64

Source§

type Output = Vector4<T>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: &Vector4<T>) -> Vector4<T>

Performs the + operation. Read more
Source§

impl<T: Unit<Scalar = i16>> Add<&Vector4<T>> for &i16

Source§

type Output = Vector4<T>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: &Vector4<T>) -> Vector4<T>

Performs the + operation. Read more
Source§

impl<T: Unit<Scalar = i32>> Add<&Vector4<T>> for &i32

Source§

type Output = Vector4<T>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: &Vector4<T>) -> Vector4<T>

Performs the + operation. Read more
Source§

impl<T: Unit<Scalar = i64>> Add<&Vector4<T>> for &i64

Source§

type Output = Vector4<T>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: &Vector4<T>) -> Vector4<T>

Performs the + operation. Read more
Source§

impl<T: Unit<Scalar = u16>> Add<&Vector4<T>> for &u16

Source§

type Output = Vector4<T>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: &Vector4<T>) -> Vector4<T>

Performs the + operation. Read more
Source§

impl<T: Unit<Scalar = u32>> Add<&Vector4<T>> for &u32

Source§

type Output = Vector4<T>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: &Vector4<T>) -> Vector4<T>

Performs the + operation. Read more
Source§

impl<T: Unit<Scalar = u64>> Add<&Vector4<T>> for &u64

Source§

type Output = Vector4<T>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: &Vector4<T>) -> Vector4<T>

Performs the + operation. Read more
Source§

impl<T: Unit> Add<&Vector4<T>> for Point4<T>

Source§

type Output = Point4<T>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: &Vector4<T>) -> Point4<T>

Performs the + operation. Read more
Source§

impl<T: Unit> Add<&Vector4<T>> for Vector4<T>

Source§

type Output = Vector4<T>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: &Vector4<T>) -> Vector4<T>

Performs the + operation. Read more
Source§

impl<T: Unit<Scalar = f32>> Add<&Vector4<T>> for f32

Source§

type Output = Vector4<T>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: &Vector4<T>) -> Vector4<T>

Performs the + operation. Read more
Source§

impl<T: Unit<Scalar = f64>> Add<&Vector4<T>> for f64

Source§

type Output = Vector4<T>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: &Vector4<T>) -> Vector4<T>

Performs the + operation. Read more
Source§

impl<T: Unit<Scalar = i16>> Add<&Vector4<T>> for i16

Source§

type Output = Vector4<T>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: &Vector4<T>) -> Vector4<T>

Performs the + operation. Read more
Source§

impl<T: Unit<Scalar = i32>> Add<&Vector4<T>> for i32

Source§

type Output = Vector4<T>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: &Vector4<T>) -> Vector4<T>

Performs the + operation. Read more
Source§

impl<T: Unit<Scalar = i64>> Add<&Vector4<T>> for i64

Source§

type Output = Vector4<T>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: &Vector4<T>) -> Vector4<T>

Performs the + operation. Read more
Source§

impl<T: Unit<Scalar = u16>> Add<&Vector4<T>> for u16

Source§

type Output = Vector4<T>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: &Vector4<T>) -> Vector4<T>

Performs the + operation. Read more
Source§

impl<T: Unit<Scalar = u32>> Add<&Vector4<T>> for u32

Source§

type Output = Vector4<T>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: &Vector4<T>) -> Vector4<T>

Performs the + operation. Read more
Source§

impl<T: Unit<Scalar = u64>> Add<&Vector4<T>> for u64

Source§

type Output = Vector4<T>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: &Vector4<T>) -> Vector4<T>

Performs the + operation. Read more
Source§

impl<T: Unit<Scalar = f32>> Add<&f32> for &Vector4<T>

Source§

type Output = Vector4<T>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: &f32) -> Vector4<T>

Performs the + operation. Read more
Source§

impl<T: Unit<Scalar = f32>> Add<&f32> for Vector4<T>

Source§

type Output = Vector4<T>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: &f32) -> Vector4<T>

Performs the + operation. Read more
Source§

impl<T: Unit<Scalar = f64>> Add<&f64> for &Vector4<T>

Source§

type Output = Vector4<T>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: &f64) -> Vector4<T>

Performs the + operation. Read more
Source§

impl<T: Unit<Scalar = f64>> Add<&f64> for Vector4<T>

Source§

type Output = Vector4<T>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: &f64) -> Vector4<T>

Performs the + operation. Read more
Source§

impl<T: Unit<Scalar = i16>> Add<&i16> for &Vector4<T>

Source§

type Output = Vector4<T>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: &i16) -> Vector4<T>

Performs the + operation. Read more
Source§

impl<T: Unit<Scalar = i16>> Add<&i16> for Vector4<T>

Source§

type Output = Vector4<T>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: &i16) -> Vector4<T>

Performs the + operation. Read more
Source§

impl<T: Unit<Scalar = i32>> Add<&i32> for &Vector4<T>

Source§

type Output = Vector4<T>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: &i32) -> Vector4<T>

Performs the + operation. Read more
Source§

impl<T: Unit<Scalar = i32>> Add<&i32> for Vector4<T>

Source§

type Output = Vector4<T>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: &i32) -> Vector4<T>

Performs the + operation. Read more
Source§

impl<T: Unit<Scalar = i64>> Add<&i64> for &Vector4<T>

Source§

type Output = Vector4<T>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: &i64) -> Vector4<T>

Performs the + operation. Read more
Source§

impl<T: Unit<Scalar = i64>> Add<&i64> for Vector4<T>

Source§

type Output = Vector4<T>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: &i64) -> Vector4<T>

Performs the + operation. Read more
Source§

impl<T: Unit<Scalar = u16>> Add<&u16> for &Vector4<T>

Source§

type Output = Vector4<T>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: &u16) -> Vector4<T>

Performs the + operation. Read more
Source§

impl<T: Unit<Scalar = u16>> Add<&u16> for Vector4<T>

Source§

type Output = Vector4<T>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: &u16) -> Vector4<T>

Performs the + operation. Read more
Source§

impl<T: Unit<Scalar = u32>> Add<&u32> for &Vector4<T>

Source§

type Output = Vector4<T>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: &u32) -> Vector4<T>

Performs the + operation. Read more
Source§

impl<T: Unit<Scalar = u32>> Add<&u32> for Vector4<T>

Source§

type Output = Vector4<T>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: &u32) -> Vector4<T>

Performs the + operation. Read more
Source§

impl<T: Unit<Scalar = u64>> Add<&u64> for &Vector4<T>

Source§

type Output = Vector4<T>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: &u64) -> Vector4<T>

Performs the + operation. Read more
Source§

impl<T: Unit<Scalar = u64>> Add<&u64> for Vector4<T>

Source§

type Output = Vector4<T>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: &u64) -> Vector4<T>

Performs the + operation. Read more
Source§

impl<T: Unit> Add<Vector4<T>> for &Point4<T>

Source§

type Output = Point4<T>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: Vector4<T>) -> Point4<T>

Performs the + operation. Read more
Source§

impl<T: Unit> Add<Vector4<T>> for &Vector4<T>

Source§

type Output = Vector4<T>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: Vector4<T>) -> Vector4<T>

Performs the + operation. Read more
Source§

impl<T: Unit<Scalar = f32>> Add<Vector4<T>> for &f32

Source§

type Output = Vector4<T>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: Vector4<T>) -> Vector4<T>

Performs the + operation. Read more
Source§

impl<T: Unit<Scalar = f64>> Add<Vector4<T>> for &f64

Source§

type Output = Vector4<T>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: Vector4<T>) -> Vector4<T>

Performs the + operation. Read more
Source§

impl<T: Unit<Scalar = i16>> Add<Vector4<T>> for &i16

Source§

type Output = Vector4<T>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: Vector4<T>) -> Vector4<T>

Performs the + operation. Read more
Source§

impl<T: Unit<Scalar = i32>> Add<Vector4<T>> for &i32

Source§

type Output = Vector4<T>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: Vector4<T>) -> Vector4<T>

Performs the + operation. Read more
Source§

impl<T: Unit<Scalar = i64>> Add<Vector4<T>> for &i64

Source§

type Output = Vector4<T>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: Vector4<T>) -> Vector4<T>

Performs the + operation. Read more
Source§

impl<T: Unit<Scalar = u16>> Add<Vector4<T>> for &u16

Source§

type Output = Vector4<T>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: Vector4<T>) -> Vector4<T>

Performs the + operation. Read more
Source§

impl<T: Unit<Scalar = u32>> Add<Vector4<T>> for &u32

Source§

type Output = Vector4<T>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: Vector4<T>) -> Vector4<T>

Performs the + operation. Read more
Source§

impl<T: Unit<Scalar = u64>> Add<Vector4<T>> for &u64

Source§

type Output = Vector4<T>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: Vector4<T>) -> Vector4<T>

Performs the + operation. Read more
Source§

impl<T: Unit> Add<Vector4<T>> for Point4<T>

Source§

type Output = Point4<T>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: Vector4<T>) -> Point4<T>

Performs the + operation. Read more
Source§

impl<T: Unit<Scalar = f32>> Add<Vector4<T>> for f32

Source§

type Output = Vector4<T>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: Vector4<T>) -> Vector4<T>

Performs the + operation. Read more
Source§

impl<T: Unit<Scalar = f64>> Add<Vector4<T>> for f64

Source§

type Output = Vector4<T>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: Vector4<T>) -> Vector4<T>

Performs the + operation. Read more
Source§

impl<T: Unit<Scalar = i16>> Add<Vector4<T>> for i16

Source§

type Output = Vector4<T>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: Vector4<T>) -> Vector4<T>

Performs the + operation. Read more
Source§

impl<T: Unit<Scalar = i32>> Add<Vector4<T>> for i32

Source§

type Output = Vector4<T>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: Vector4<T>) -> Vector4<T>

Performs the + operation. Read more
Source§

impl<T: Unit<Scalar = i64>> Add<Vector4<T>> for i64

Source§

type Output = Vector4<T>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: Vector4<T>) -> Vector4<T>

Performs the + operation. Read more
Source§

impl<T: Unit<Scalar = u16>> Add<Vector4<T>> for u16

Source§

type Output = Vector4<T>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: Vector4<T>) -> Vector4<T>

Performs the + operation. Read more
Source§

impl<T: Unit<Scalar = u32>> Add<Vector4<T>> for u32

Source§

type Output = Vector4<T>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: Vector4<T>) -> Vector4<T>

Performs the + operation. Read more
Source§

impl<T: Unit<Scalar = u64>> Add<Vector4<T>> for u64

Source§

type Output = Vector4<T>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: Vector4<T>) -> Vector4<T>

Performs the + operation. Read more
Source§

impl<T: Unit<Scalar = f32>> Add<f32> for &Vector4<T>

Source§

type Output = Vector4<T>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: f32) -> Vector4<T>

Performs the + operation. Read more
Source§

impl<T: Unit<Scalar = f32>> Add<f32> for Vector4<T>

Source§

type Output = Vector4<T>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: f32) -> Vector4<T>

Performs the + operation. Read more
Source§

impl<T: Unit<Scalar = f64>> Add<f64> for &Vector4<T>

Source§

type Output = Vector4<T>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: f64) -> Vector4<T>

Performs the + operation. Read more
Source§

impl<T: Unit<Scalar = f64>> Add<f64> for Vector4<T>

Source§

type Output = Vector4<T>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: f64) -> Vector4<T>

Performs the + operation. Read more
Source§

impl<T: Unit<Scalar = i16>> Add<i16> for &Vector4<T>

Source§

type Output = Vector4<T>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: i16) -> Vector4<T>

Performs the + operation. Read more
Source§

impl<T: Unit<Scalar = i16>> Add<i16> for Vector4<T>

Source§

type Output = Vector4<T>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: i16) -> Vector4<T>

Performs the + operation. Read more
Source§

impl<T: Unit<Scalar = i32>> Add<i32> for &Vector4<T>

Source§

type Output = Vector4<T>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: i32) -> Vector4<T>

Performs the + operation. Read more
Source§

impl<T: Unit<Scalar = i32>> Add<i32> for Vector4<T>

Source§

type Output = Vector4<T>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: i32) -> Vector4<T>

Performs the + operation. Read more
Source§

impl<T: Unit<Scalar = i64>> Add<i64> for &Vector4<T>

Source§

type Output = Vector4<T>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: i64) -> Vector4<T>

Performs the + operation. Read more
Source§

impl<T: Unit<Scalar = i64>> Add<i64> for Vector4<T>

Source§

type Output = Vector4<T>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: i64) -> Vector4<T>

Performs the + operation. Read more
Source§

impl<T: Unit<Scalar = u16>> Add<u16> for &Vector4<T>

Source§

type Output = Vector4<T>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: u16) -> Vector4<T>

Performs the + operation. Read more
Source§

impl<T: Unit<Scalar = u16>> Add<u16> for Vector4<T>

Source§

type Output = Vector4<T>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: u16) -> Vector4<T>

Performs the + operation. Read more
Source§

impl<T: Unit<Scalar = u32>> Add<u32> for &Vector4<T>

Source§

type Output = Vector4<T>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: u32) -> Vector4<T>

Performs the + operation. Read more
Source§

impl<T: Unit<Scalar = u32>> Add<u32> for Vector4<T>

Source§

type Output = Vector4<T>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: u32) -> Vector4<T>

Performs the + operation. Read more
Source§

impl<T: Unit<Scalar = u64>> Add<u64> for &Vector4<T>

Source§

type Output = Vector4<T>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: u64) -> Vector4<T>

Performs the + operation. Read more
Source§

impl<T: Unit<Scalar = u64>> Add<u64> for Vector4<T>

Source§

type Output = Vector4<T>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: u64) -> Vector4<T>

Performs the + operation. Read more
Source§

impl<T: Unit> Add for Vector4<T>

Source§

type Output = Vector4<T>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: Vector4<T>) -> Vector4<T>

Performs the + operation. Read more
Source§

impl<T: Unit> AddAssign<&Vector4<T>> for Point4<T>

Source§

fn add_assign(&mut self, rhs: &Vector4<T>)

Performs the += operation. Read more
Source§

impl<T: Unit> AddAssign<&Vector4<T>> for Vector4<T>

Source§

fn add_assign(&mut self, rhs: &Vector4<T>)

Performs the += operation. Read more
Source§

impl<T: Unit<Scalar = f32>> AddAssign<&f32> for Vector4<T>

Source§

fn add_assign(&mut self, rhs: &f32)

Performs the += operation. Read more
Source§

impl<T: Unit<Scalar = f64>> AddAssign<&f64> for Vector4<T>

Source§

fn add_assign(&mut self, rhs: &f64)

Performs the += operation. Read more
Source§

impl<T: Unit<Scalar = i16>> AddAssign<&i16> for Vector4<T>

Source§

fn add_assign(&mut self, rhs: &i16)

Performs the += operation. Read more
Source§

impl<T: Unit<Scalar = i32>> AddAssign<&i32> for Vector4<T>

Source§

fn add_assign(&mut self, rhs: &i32)

Performs the += operation. Read more
Source§

impl<T: Unit<Scalar = i64>> AddAssign<&i64> for Vector4<T>

Source§

fn add_assign(&mut self, rhs: &i64)

Performs the += operation. Read more
Source§

impl<T: Unit<Scalar = u16>> AddAssign<&u16> for Vector4<T>

Source§

fn add_assign(&mut self, rhs: &u16)

Performs the += operation. Read more
Source§

impl<T: Unit<Scalar = u32>> AddAssign<&u32> for Vector4<T>

Source§

fn add_assign(&mut self, rhs: &u32)

Performs the += operation. Read more
Source§

impl<T: Unit<Scalar = u64>> AddAssign<&u64> for Vector4<T>

Source§

fn add_assign(&mut self, rhs: &u64)

Performs the += operation. Read more
Source§

impl<T: Unit> AddAssign<Vector4<T>> for Point4<T>

Source§

fn add_assign(&mut self, rhs: Vector4<T>)

Performs the += operation. Read more
Source§

impl<T: Unit<Scalar = f32>> AddAssign<f32> for Vector4<T>

Source§

fn add_assign(&mut self, rhs: f32)

Performs the += operation. Read more
Source§

impl<T: Unit<Scalar = f64>> AddAssign<f64> for Vector4<T>

Source§

fn add_assign(&mut self, rhs: f64)

Performs the += operation. Read more
Source§

impl<T: Unit<Scalar = i16>> AddAssign<i16> for Vector4<T>

Source§

fn add_assign(&mut self, rhs: i16)

Performs the += operation. Read more
Source§

impl<T: Unit<Scalar = i32>> AddAssign<i32> for Vector4<T>

Source§

fn add_assign(&mut self, rhs: i32)

Performs the += operation. Read more
Source§

impl<T: Unit<Scalar = i64>> AddAssign<i64> for Vector4<T>

Source§

fn add_assign(&mut self, rhs: i64)

Performs the += operation. Read more
Source§

impl<T: Unit<Scalar = u16>> AddAssign<u16> for Vector4<T>

Source§

fn add_assign(&mut self, rhs: u16)

Performs the += operation. Read more
Source§

impl<T: Unit<Scalar = u32>> AddAssign<u32> for Vector4<T>

Source§

fn add_assign(&mut self, rhs: u32)

Performs the += operation. Read more
Source§

impl<T: Unit<Scalar = u64>> AddAssign<u64> for Vector4<T>

Source§

fn add_assign(&mut self, rhs: u64)

Performs the += operation. Read more
Source§

impl<T: Unit> AddAssign for Vector4<T>

Source§

fn add_assign(&mut self, rhs: Vector4<T>)

Performs the += operation. Read more
Source§

impl<T: Unit> AsMut<[<T as Unit>::Scalar; 4]> for Vector4<T>

Source§

fn as_mut(&mut self) -> &mut [T::Scalar; 4]

Converts this type into a mutable reference of the (usually inferred) input type.
Source§

impl<T: Unit> AsRef<[<T as Unit>::Scalar; 4]> for Vector4<T>

Source§

fn as_ref(&self) -> &[T::Scalar; 4]

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl<T: Unit> Clone for Vector4<T>

Source§

fn clone(&self) -> Self

Returns a duplicate 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<T: Unit> Debug for Vector4<T>

Source§

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

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

impl<T: Unit> Default for Vector4<T>

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl<T: Unit> Div<&Vector4<T>> for &Vector4<T>

Source§

type Output = Vector4<T>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: &Vector4<T>) -> Vector4<T>

Performs the / operation. Read more
Source§

impl<T: Unit> Div<&Vector4<T>> for Vector4<T>

Source§

type Output = Vector4<T>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: &Vector4<T>) -> Vector4<T>

Performs the / operation. Read more
Source§

impl<T: Unit<Scalar = f32>> Div<&f32> for &Vector4<T>

Source§

type Output = Vector4<T>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: &f32) -> Vector4<T>

Performs the / operation. Read more
Source§

impl<T: Unit<Scalar = f32>> Div<&f32> for Vector4<T>

Source§

type Output = Vector4<T>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: &f32) -> Vector4<T>

Performs the / operation. Read more
Source§

impl<T: Unit<Scalar = f64>> Div<&f64> for &Vector4<T>

Source§

type Output = Vector4<T>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: &f64) -> Vector4<T>

Performs the / operation. Read more
Source§

impl<T: Unit<Scalar = f64>> Div<&f64> for Vector4<T>

Source§

type Output = Vector4<T>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: &f64) -> Vector4<T>

Performs the / operation. Read more
Source§

impl<T: Unit<Scalar = i16>> Div<&i16> for &Vector4<T>

Source§

type Output = Vector4<T>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: &i16) -> Vector4<T>

Performs the / operation. Read more
Source§

impl<T: Unit<Scalar = i16>> Div<&i16> for Vector4<T>

Source§

type Output = Vector4<T>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: &i16) -> Vector4<T>

Performs the / operation. Read more
Source§

impl<T: Unit<Scalar = i32>> Div<&i32> for &Vector4<T>

Source§

type Output = Vector4<T>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: &i32) -> Vector4<T>

Performs the / operation. Read more
Source§

impl<T: Unit<Scalar = i32>> Div<&i32> for Vector4<T>

Source§

type Output = Vector4<T>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: &i32) -> Vector4<T>

Performs the / operation. Read more
Source§

impl<T: Unit<Scalar = i64>> Div<&i64> for &Vector4<T>

Source§

type Output = Vector4<T>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: &i64) -> Vector4<T>

Performs the / operation. Read more
Source§

impl<T: Unit<Scalar = i64>> Div<&i64> for Vector4<T>

Source§

type Output = Vector4<T>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: &i64) -> Vector4<T>

Performs the / operation. Read more
Source§

impl<T: Unit<Scalar = u16>> Div<&u16> for &Vector4<T>

Source§

type Output = Vector4<T>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: &u16) -> Vector4<T>

Performs the / operation. Read more
Source§

impl<T: Unit<Scalar = u16>> Div<&u16> for Vector4<T>

Source§

type Output = Vector4<T>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: &u16) -> Vector4<T>

Performs the / operation. Read more
Source§

impl<T: Unit<Scalar = u32>> Div<&u32> for &Vector4<T>

Source§

type Output = Vector4<T>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: &u32) -> Vector4<T>

Performs the / operation. Read more
Source§

impl<T: Unit<Scalar = u32>> Div<&u32> for Vector4<T>

Source§

type Output = Vector4<T>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: &u32) -> Vector4<T>

Performs the / operation. Read more
Source§

impl<T: Unit<Scalar = u64>> Div<&u64> for &Vector4<T>

Source§

type Output = Vector4<T>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: &u64) -> Vector4<T>

Performs the / operation. Read more
Source§

impl<T: Unit<Scalar = u64>> Div<&u64> for Vector4<T>

Source§

type Output = Vector4<T>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: &u64) -> Vector4<T>

Performs the / operation. Read more
Source§

impl<T: Unit> Div<Vector4<T>> for &Vector4<T>

Source§

type Output = Vector4<T>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: Vector4<T>) -> Vector4<T>

Performs the / operation. Read more
Source§

impl<T: Unit<Scalar = f32>> Div<f32> for &Vector4<T>

Source§

type Output = Vector4<T>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: f32) -> Vector4<T>

Performs the / operation. Read more
Source§

impl<T: Unit<Scalar = f32>> Div<f32> for Vector4<T>

Source§

type Output = Vector4<T>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: f32) -> Vector4<T>

Performs the / operation. Read more
Source§

impl<T: Unit<Scalar = f64>> Div<f64> for &Vector4<T>

Source§

type Output = Vector4<T>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: f64) -> Vector4<T>

Performs the / operation. Read more
Source§

impl<T: Unit<Scalar = f64>> Div<f64> for Vector4<T>

Source§

type Output = Vector4<T>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: f64) -> Vector4<T>

Performs the / operation. Read more
Source§

impl<T: Unit<Scalar = i16>> Div<i16> for &Vector4<T>

Source§

type Output = Vector4<T>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: i16) -> Vector4<T>

Performs the / operation. Read more
Source§

impl<T: Unit<Scalar = i16>> Div<i16> for Vector4<T>

Source§

type Output = Vector4<T>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: i16) -> Vector4<T>

Performs the / operation. Read more
Source§

impl<T: Unit<Scalar = i32>> Div<i32> for &Vector4<T>

Source§

type Output = Vector4<T>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: i32) -> Vector4<T>

Performs the / operation. Read more
Source§

impl<T: Unit<Scalar = i32>> Div<i32> for Vector4<T>

Source§

type Output = Vector4<T>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: i32) -> Vector4<T>

Performs the / operation. Read more
Source§

impl<T: Unit<Scalar = i64>> Div<i64> for &Vector4<T>

Source§

type Output = Vector4<T>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: i64) -> Vector4<T>

Performs the / operation. Read more
Source§

impl<T: Unit<Scalar = i64>> Div<i64> for Vector4<T>

Source§

type Output = Vector4<T>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: i64) -> Vector4<T>

Performs the / operation. Read more
Source§

impl<T: Unit<Scalar = u16>> Div<u16> for &Vector4<T>

Source§

type Output = Vector4<T>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: u16) -> Vector4<T>

Performs the / operation. Read more
Source§

impl<T: Unit<Scalar = u16>> Div<u16> for Vector4<T>

Source§

type Output = Vector4<T>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: u16) -> Vector4<T>

Performs the / operation. Read more
Source§

impl<T: Unit<Scalar = u32>> Div<u32> for &Vector4<T>

Source§

type Output = Vector4<T>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: u32) -> Vector4<T>

Performs the / operation. Read more
Source§

impl<T: Unit<Scalar = u32>> Div<u32> for Vector4<T>

Source§

type Output = Vector4<T>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: u32) -> Vector4<T>

Performs the / operation. Read more
Source§

impl<T: Unit<Scalar = u64>> Div<u64> for &Vector4<T>

Source§

type Output = Vector4<T>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: u64) -> Vector4<T>

Performs the / operation. Read more
Source§

impl<T: Unit<Scalar = u64>> Div<u64> for Vector4<T>

Source§

type Output = Vector4<T>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: u64) -> Vector4<T>

Performs the / operation. Read more
Source§

impl<T: Unit> Div for Vector4<T>

Source§

type Output = Vector4<T>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: Vector4<T>) -> Vector4<T>

Performs the / operation. Read more
Source§

impl<T: Unit> DivAssign<&Vector4<T>> for Vector4<T>

Source§

fn div_assign(&mut self, rhs: &Vector4<T>)

Performs the /= operation. Read more
Source§

impl<T: Unit<Scalar = f32>> DivAssign<&f32> for Vector4<T>

Source§

fn div_assign(&mut self, rhs: &f32)

Performs the /= operation. Read more
Source§

impl<T: Unit<Scalar = f64>> DivAssign<&f64> for Vector4<T>

Source§

fn div_assign(&mut self, rhs: &f64)

Performs the /= operation. Read more
Source§

impl<T: Unit<Scalar = i16>> DivAssign<&i16> for Vector4<T>

Source§

fn div_assign(&mut self, rhs: &i16)

Performs the /= operation. Read more
Source§

impl<T: Unit<Scalar = i32>> DivAssign<&i32> for Vector4<T>

Source§

fn div_assign(&mut self, rhs: &i32)

Performs the /= operation. Read more
Source§

impl<T: Unit<Scalar = i64>> DivAssign<&i64> for Vector4<T>

Source§

fn div_assign(&mut self, rhs: &i64)

Performs the /= operation. Read more
Source§

impl<T: Unit<Scalar = u16>> DivAssign<&u16> for Vector4<T>

Source§

fn div_assign(&mut self, rhs: &u16)

Performs the /= operation. Read more
Source§

impl<T: Unit<Scalar = u32>> DivAssign<&u32> for Vector4<T>

Source§

fn div_assign(&mut self, rhs: &u32)

Performs the /= operation. Read more
Source§

impl<T: Unit<Scalar = u64>> DivAssign<&u64> for Vector4<T>

Source§

fn div_assign(&mut self, rhs: &u64)

Performs the /= operation. Read more
Source§

impl<T: Unit<Scalar = f32>> DivAssign<f32> for Vector4<T>

Source§

fn div_assign(&mut self, rhs: f32)

Performs the /= operation. Read more
Source§

impl<T: Unit<Scalar = f64>> DivAssign<f64> for Vector4<T>

Source§

fn div_assign(&mut self, rhs: f64)

Performs the /= operation. Read more
Source§

impl<T: Unit<Scalar = i16>> DivAssign<i16> for Vector4<T>

Source§

fn div_assign(&mut self, rhs: i16)

Performs the /= operation. Read more
Source§

impl<T: Unit<Scalar = i32>> DivAssign<i32> for Vector4<T>

Source§

fn div_assign(&mut self, rhs: i32)

Performs the /= operation. Read more
Source§

impl<T: Unit<Scalar = i64>> DivAssign<i64> for Vector4<T>

Source§

fn div_assign(&mut self, rhs: i64)

Performs the /= operation. Read more
Source§

impl<T: Unit<Scalar = u16>> DivAssign<u16> for Vector4<T>

Source§

fn div_assign(&mut self, rhs: u16)

Performs the /= operation. Read more
Source§

impl<T: Unit<Scalar = u32>> DivAssign<u32> for Vector4<T>

Source§

fn div_assign(&mut self, rhs: u32)

Performs the /= operation. Read more
Source§

impl<T: Unit<Scalar = u64>> DivAssign<u64> for Vector4<T>

Source§

fn div_assign(&mut self, rhs: u64)

Performs the /= operation. Read more
Source§

impl<T: Unit> DivAssign for Vector4<T>

Source§

fn div_assign(&mut self, rhs: Vector4<T>)

Performs the /= operation. Read more
Source§

impl<T: Unit> From<[<T as Unit>::Scalar; 4]> for Vector4<T>

Source§

fn from(value: [T::Scalar; 4]) -> Self

Converts to this type from the input type.
Source§

impl<T: Unit> From<(<T as Unit>::Scalar, <T as Unit>::Scalar, <T as Unit>::Scalar, <T as Unit>::Scalar)> for Vector4<T>

Source§

fn from((x, y, z, w): (T::Scalar, T::Scalar, T::Scalar, T::Scalar)) -> Self

Converts to this type from the input type.
Source§

impl<T: Unit> From<BVec4> for Vector4<T>

Source§

fn from(v: BVec4) -> Self

Converts to this type from the input type.
Source§

impl<T: Unit<Scalar = f64>> From<DVec4> for Vector4<T>

Source§

fn from(value: DVec4) -> Self

Converts to this type from the input type.
Source§

impl<T: Unit<Scalar = i16>> From<I16Vec4> for Vector4<T>

Source§

fn from(value: I16Vec4) -> Self

Converts to this type from the input type.
Source§

impl<T: Unit<Scalar = i64>> From<I64Vec4> for Vector4<T>

Source§

fn from(value: I64Vec4) -> Self

Converts to this type from the input type.
Source§

impl<T: Unit<Scalar = i32>> From<IVec4> for Vector4<T>

Source§

fn from(value: IVec4) -> Self

Converts to this type from the input type.
Source§

impl<T: Unit> From<Point4<T>> for Vector4<T>

Source§

fn from(point: Point4<T>) -> Vector4<T>

Converts to this type from the input type.
Source§

impl<T: Unit<Scalar = u16>> From<U16Vec4> for Vector4<T>

Source§

fn from(value: U16Vec4) -> Self

Converts to this type from the input type.
Source§

impl<T: Unit<Scalar = u64>> From<U64Vec4> for Vector4<T>

Source§

fn from(value: U64Vec4) -> Self

Converts to this type from the input type.
Source§

impl<T: Unit<Scalar = u32>> From<UVec4> for Vector4<T>

Source§

fn from(value: UVec4) -> Self

Converts to this type from the input type.
Source§

impl<T: Unit<Scalar = f32>> From<Vec4> for Vector4<T>

Source§

fn from(value: Vec4) -> Self

Converts to this type from the input type.
Source§

impl<T: Unit> From<Vector4<T>> for [T::Scalar; 4]

Source§

fn from(value: Vector4<T>) -> [T::Scalar; 4]

Converts to this type from the input type.
Source§

impl<T: Unit> From<Vector4<T>> for (T::Scalar, T::Scalar, T::Scalar, T::Scalar)

Source§

fn from(value: Vector4<T>) -> Self

Converts to this type from the input type.
Source§

impl<T: Unit<Scalar = f64>> From<Vector4<T>> for DVec4

Source§

fn from(value: Vector4<T>) -> Self

Converts to this type from the input type.
Source§

impl<T: Unit<Scalar = i16>> From<Vector4<T>> for I16Vec4

Source§

fn from(value: Vector4<T>) -> Self

Converts to this type from the input type.
Source§

impl<T: Unit<Scalar = i64>> From<Vector4<T>> for I64Vec4

Source§

fn from(value: Vector4<T>) -> Self

Converts to this type from the input type.
Source§

impl<T: Unit<Scalar = i32>> From<Vector4<T>> for IVec4

Source§

fn from(value: Vector4<T>) -> Self

Converts to this type from the input type.
Source§

impl<T: Unit> From<Vector4<T>> for Point4<T>

Source§

fn from(vec: Vector4<T>) -> Point4<T>

Converts to this type from the input type.
Source§

impl<T: Unit<Scalar = u16>> From<Vector4<T>> for U16Vec4

Source§

fn from(value: Vector4<T>) -> Self

Converts to this type from the input type.
Source§

impl<T: Unit<Scalar = u64>> From<Vector4<T>> for U64Vec4

Source§

fn from(value: Vector4<T>) -> Self

Converts to this type from the input type.
Source§

impl<T: Unit<Scalar = u32>> From<Vector4<T>> for UVec4

Source§

fn from(value: Vector4<T>) -> Self

Converts to this type from the input type.
Source§

impl<T: Unit<Scalar = f32>> From<Vector4<T>> for Vec4

Source§

fn from(value: Vector4<T>) -> Self

Converts to this type from the input type.
Source§

impl<T: IntUnit> Hash for Vector4<T>

Source§

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

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: Unit> Index<usize> for Vector4<T>

Source§

type Output = <T as Unit>::Scalar

The returned type after indexing.
Source§

fn index(&self, index: usize) -> &Self::Output

Performs the indexing (container[index]) operation. Read more
Source§

impl<T: Unit> IndexMut<usize> for Vector4<T>

Source§

fn index_mut(&mut self, index: usize) -> &mut Self::Output

Performs the mutable indexing (container[index]) operation. Read more
Source§

impl<T: Unit> IntoIterator for Vector4<T>

Source§

type Item = <T as Unit>::Scalar

The type of the elements being iterated over.
Source§

type IntoIter = <[<T as Unit>::Scalar; 4] as IntoIterator>::IntoIter

Which kind of iterator are we turning this into?
Source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
Source§

impl<T: Unit> Mul<&Vector4<T>> for &Vector4<T>

Source§

type Output = Vector4<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &Vector4<T>) -> Vector4<T>

Performs the * operation. Read more
Source§

impl<T: Unit<Scalar = f32>> Mul<&Vector4<T>> for &f32

Source§

type Output = Vector4<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &Vector4<T>) -> Vector4<T>

Performs the * operation. Read more
Source§

impl<T: Unit<Scalar = f64>> Mul<&Vector4<T>> for &f64

Source§

type Output = Vector4<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &Vector4<T>) -> Vector4<T>

Performs the * operation. Read more
Source§

impl<T: Unit<Scalar = i16>> Mul<&Vector4<T>> for &i16

Source§

type Output = Vector4<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &Vector4<T>) -> Vector4<T>

Performs the * operation. Read more
Source§

impl<T: Unit<Scalar = i32>> Mul<&Vector4<T>> for &i32

Source§

type Output = Vector4<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &Vector4<T>) -> Vector4<T>

Performs the * operation. Read more
Source§

impl<T: Unit<Scalar = i64>> Mul<&Vector4<T>> for &i64

Source§

type Output = Vector4<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &Vector4<T>) -> Vector4<T>

Performs the * operation. Read more
Source§

impl<T: Unit<Scalar = u16>> Mul<&Vector4<T>> for &u16

Source§

type Output = Vector4<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &Vector4<T>) -> Vector4<T>

Performs the * operation. Read more
Source§

impl<T: Unit<Scalar = u32>> Mul<&Vector4<T>> for &u32

Source§

type Output = Vector4<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &Vector4<T>) -> Vector4<T>

Performs the * operation. Read more
Source§

impl<T: Unit<Scalar = u64>> Mul<&Vector4<T>> for &u64

Source§

type Output = Vector4<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &Vector4<T>) -> Vector4<T>

Performs the * operation. Read more
Source§

impl<T: Unit> Mul<&Vector4<T>> for Vector4<T>

Source§

type Output = Vector4<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &Vector4<T>) -> Vector4<T>

Performs the * operation. Read more
Source§

impl<T: Unit<Scalar = f32>> Mul<&Vector4<T>> for f32

Source§

type Output = Vector4<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &Vector4<T>) -> Vector4<T>

Performs the * operation. Read more
Source§

impl<T: Unit<Scalar = f64>> Mul<&Vector4<T>> for f64

Source§

type Output = Vector4<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &Vector4<T>) -> Vector4<T>

Performs the * operation. Read more
Source§

impl<T: Unit<Scalar = i16>> Mul<&Vector4<T>> for i16

Source§

type Output = Vector4<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &Vector4<T>) -> Vector4<T>

Performs the * operation. Read more
Source§

impl<T: Unit<Scalar = i32>> Mul<&Vector4<T>> for i32

Source§

type Output = Vector4<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &Vector4<T>) -> Vector4<T>

Performs the * operation. Read more
Source§

impl<T: Unit<Scalar = i64>> Mul<&Vector4<T>> for i64

Source§

type Output = Vector4<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &Vector4<T>) -> Vector4<T>

Performs the * operation. Read more
Source§

impl<T: Unit<Scalar = u16>> Mul<&Vector4<T>> for u16

Source§

type Output = Vector4<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &Vector4<T>) -> Vector4<T>

Performs the * operation. Read more
Source§

impl<T: Unit<Scalar = u32>> Mul<&Vector4<T>> for u32

Source§

type Output = Vector4<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &Vector4<T>) -> Vector4<T>

Performs the * operation. Read more
Source§

impl<T: Unit<Scalar = u64>> Mul<&Vector4<T>> for u64

Source§

type Output = Vector4<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &Vector4<T>) -> Vector4<T>

Performs the * operation. Read more
Source§

impl<T: Unit<Scalar = f32>> Mul<&f32> for &Vector4<T>

Source§

type Output = Vector4<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &f32) -> Vector4<T>

Performs the * operation. Read more
Source§

impl<T: Unit<Scalar = f32>> Mul<&f32> for Vector4<T>

Source§

type Output = Vector4<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &f32) -> Vector4<T>

Performs the * operation. Read more
Source§

impl<T: Unit<Scalar = f64>> Mul<&f64> for &Vector4<T>

Source§

type Output = Vector4<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &f64) -> Vector4<T>

Performs the * operation. Read more
Source§

impl<T: Unit<Scalar = f64>> Mul<&f64> for Vector4<T>

Source§

type Output = Vector4<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &f64) -> Vector4<T>

Performs the * operation. Read more
Source§

impl<T: Unit<Scalar = i16>> Mul<&i16> for &Vector4<T>

Source§

type Output = Vector4<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &i16) -> Vector4<T>

Performs the * operation. Read more
Source§

impl<T: Unit<Scalar = i16>> Mul<&i16> for Vector4<T>

Source§

type Output = Vector4<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &i16) -> Vector4<T>

Performs the * operation. Read more
Source§

impl<T: Unit<Scalar = i32>> Mul<&i32> for &Vector4<T>

Source§

type Output = Vector4<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &i32) -> Vector4<T>

Performs the * operation. Read more
Source§

impl<T: Unit<Scalar = i32>> Mul<&i32> for Vector4<T>

Source§

type Output = Vector4<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &i32) -> Vector4<T>

Performs the * operation. Read more
Source§

impl<T: Unit<Scalar = i64>> Mul<&i64> for &Vector4<T>

Source§

type Output = Vector4<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &i64) -> Vector4<T>

Performs the * operation. Read more
Source§

impl<T: Unit<Scalar = i64>> Mul<&i64> for Vector4<T>

Source§

type Output = Vector4<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &i64) -> Vector4<T>

Performs the * operation. Read more
Source§

impl<T: Unit<Scalar = u16>> Mul<&u16> for &Vector4<T>

Source§

type Output = Vector4<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &u16) -> Vector4<T>

Performs the * operation. Read more
Source§

impl<T: Unit<Scalar = u16>> Mul<&u16> for Vector4<T>

Source§

type Output = Vector4<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &u16) -> Vector4<T>

Performs the * operation. Read more
Source§

impl<T: Unit<Scalar = u32>> Mul<&u32> for &Vector4<T>

Source§

type Output = Vector4<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &u32) -> Vector4<T>

Performs the * operation. Read more
Source§

impl<T: Unit<Scalar = u32>> Mul<&u32> for Vector4<T>

Source§

type Output = Vector4<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &u32) -> Vector4<T>

Performs the * operation. Read more
Source§

impl<T: Unit<Scalar = u64>> Mul<&u64> for &Vector4<T>

Source§

type Output = Vector4<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &u64) -> Vector4<T>

Performs the * operation. Read more
Source§

impl<T: Unit<Scalar = u64>> Mul<&u64> for Vector4<T>

Source§

type Output = Vector4<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &u64) -> Vector4<T>

Performs the * operation. Read more
Source§

impl<T: Unit> Mul<Vector4<T>> for &Vector4<T>

Source§

type Output = Vector4<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: Vector4<T>) -> Vector4<T>

Performs the * operation. Read more
Source§

impl<T: Unit<Scalar = f32>> Mul<Vector4<T>> for &f32

Source§

type Output = Vector4<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: Vector4<T>) -> Vector4<T>

Performs the * operation. Read more
Source§

impl<T: Unit<Scalar = f64>> Mul<Vector4<T>> for &f64

Source§

type Output = Vector4<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: Vector4<T>) -> Vector4<T>

Performs the * operation. Read more
Source§

impl<T: Unit<Scalar = i16>> Mul<Vector4<T>> for &i16

Source§

type Output = Vector4<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: Vector4<T>) -> Vector4<T>

Performs the * operation. Read more
Source§

impl<T: Unit<Scalar = i32>> Mul<Vector4<T>> for &i32

Source§

type Output = Vector4<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: Vector4<T>) -> Vector4<T>

Performs the * operation. Read more
Source§

impl<T: Unit<Scalar = i64>> Mul<Vector4<T>> for &i64

Source§

type Output = Vector4<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: Vector4<T>) -> Vector4<T>

Performs the * operation. Read more
Source§

impl<T: Unit<Scalar = u16>> Mul<Vector4<T>> for &u16

Source§

type Output = Vector4<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: Vector4<T>) -> Vector4<T>

Performs the * operation. Read more
Source§

impl<T: Unit<Scalar = u32>> Mul<Vector4<T>> for &u32

Source§

type Output = Vector4<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: Vector4<T>) -> Vector4<T>

Performs the * operation. Read more
Source§

impl<T: Unit<Scalar = u64>> Mul<Vector4<T>> for &u64

Source§

type Output = Vector4<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: Vector4<T>) -> Vector4<T>

Performs the * operation. Read more
Source§

impl<T> Mul<Vector4<T>> for Matrix4<T::Scalar>
where T: FloatUnit,

Source§

type Output = Vector4<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: Vector4<T>) -> Self::Output

Performs the * operation. Read more
Source§

impl<T: Unit<Scalar = f32>> Mul<Vector4<T>> for f32

Source§

type Output = Vector4<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: Vector4<T>) -> Vector4<T>

Performs the * operation. Read more
Source§

impl<T: Unit<Scalar = f64>> Mul<Vector4<T>> for f64

Source§

type Output = Vector4<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: Vector4<T>) -> Vector4<T>

Performs the * operation. Read more
Source§

impl<T: Unit<Scalar = i16>> Mul<Vector4<T>> for i16

Source§

type Output = Vector4<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: Vector4<T>) -> Vector4<T>

Performs the * operation. Read more
Source§

impl<T: Unit<Scalar = i32>> Mul<Vector4<T>> for i32

Source§

type Output = Vector4<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: Vector4<T>) -> Vector4<T>

Performs the * operation. Read more
Source§

impl<T: Unit<Scalar = i64>> Mul<Vector4<T>> for i64

Source§

type Output = Vector4<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: Vector4<T>) -> Vector4<T>

Performs the * operation. Read more
Source§

impl<T: Unit<Scalar = u16>> Mul<Vector4<T>> for u16

Source§

type Output = Vector4<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: Vector4<T>) -> Vector4<T>

Performs the * operation. Read more
Source§

impl<T: Unit<Scalar = u32>> Mul<Vector4<T>> for u32

Source§

type Output = Vector4<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: Vector4<T>) -> Vector4<T>

Performs the * operation. Read more
Source§

impl<T: Unit<Scalar = u64>> Mul<Vector4<T>> for u64

Source§

type Output = Vector4<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: Vector4<T>) -> Vector4<T>

Performs the * operation. Read more
Source§

impl<T: Unit<Scalar = f32>> Mul<f32> for &Vector4<T>

Source§

type Output = Vector4<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: f32) -> Vector4<T>

Performs the * operation. Read more
Source§

impl<T: Unit<Scalar = f32>> Mul<f32> for Vector4<T>

Source§

type Output = Vector4<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: f32) -> Vector4<T>

Performs the * operation. Read more
Source§

impl<T: Unit<Scalar = f64>> Mul<f64> for &Vector4<T>

Source§

type Output = Vector4<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: f64) -> Vector4<T>

Performs the * operation. Read more
Source§

impl<T: Unit<Scalar = f64>> Mul<f64> for Vector4<T>

Source§

type Output = Vector4<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: f64) -> Vector4<T>

Performs the * operation. Read more
Source§

impl<T: Unit<Scalar = i16>> Mul<i16> for &Vector4<T>

Source§

type Output = Vector4<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: i16) -> Vector4<T>

Performs the * operation. Read more
Source§

impl<T: Unit<Scalar = i16>> Mul<i16> for Vector4<T>

Source§

type Output = Vector4<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: i16) -> Vector4<T>

Performs the * operation. Read more
Source§

impl<T: Unit<Scalar = i32>> Mul<i32> for &Vector4<T>

Source§

type Output = Vector4<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: i32) -> Vector4<T>

Performs the * operation. Read more
Source§

impl<T: Unit<Scalar = i32>> Mul<i32> for Vector4<T>

Source§

type Output = Vector4<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: i32) -> Vector4<T>

Performs the * operation. Read more
Source§

impl<T: Unit<Scalar = i64>> Mul<i64> for &Vector4<T>

Source§

type Output = Vector4<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: i64) -> Vector4<T>

Performs the * operation. Read more
Source§

impl<T: Unit<Scalar = i64>> Mul<i64> for Vector4<T>

Source§

type Output = Vector4<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: i64) -> Vector4<T>

Performs the * operation. Read more
Source§

impl<T: Unit<Scalar = u16>> Mul<u16> for &Vector4<T>

Source§

type Output = Vector4<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: u16) -> Vector4<T>

Performs the * operation. Read more
Source§

impl<T: Unit<Scalar = u16>> Mul<u16> for Vector4<T>

Source§

type Output = Vector4<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: u16) -> Vector4<T>

Performs the * operation. Read more
Source§

impl<T: Unit<Scalar = u32>> Mul<u32> for &Vector4<T>

Source§

type Output = Vector4<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: u32) -> Vector4<T>

Performs the * operation. Read more
Source§

impl<T: Unit<Scalar = u32>> Mul<u32> for Vector4<T>

Source§

type Output = Vector4<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: u32) -> Vector4<T>

Performs the * operation. Read more
Source§

impl<T: Unit<Scalar = u64>> Mul<u64> for &Vector4<T>

Source§

type Output = Vector4<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: u64) -> Vector4<T>

Performs the * operation. Read more
Source§

impl<T: Unit<Scalar = u64>> Mul<u64> for Vector4<T>

Source§

type Output = Vector4<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: u64) -> Vector4<T>

Performs the * operation. Read more
Source§

impl<T: Unit> Mul for Vector4<T>

Source§

type Output = Vector4<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: Vector4<T>) -> Vector4<T>

Performs the * operation. Read more
Source§

impl<T: Unit> MulAssign<&Vector4<T>> for Vector4<T>

Source§

fn mul_assign(&mut self, rhs: &Vector4<T>)

Performs the *= operation. Read more
Source§

impl<T: Unit<Scalar = f32>> MulAssign<&f32> for Vector4<T>

Source§

fn mul_assign(&mut self, rhs: &f32)

Performs the *= operation. Read more
Source§

impl<T: Unit<Scalar = f64>> MulAssign<&f64> for Vector4<T>

Source§

fn mul_assign(&mut self, rhs: &f64)

Performs the *= operation. Read more
Source§

impl<T: Unit<Scalar = i16>> MulAssign<&i16> for Vector4<T>

Source§

fn mul_assign(&mut self, rhs: &i16)

Performs the *= operation. Read more
Source§

impl<T: Unit<Scalar = i32>> MulAssign<&i32> for Vector4<T>

Source§

fn mul_assign(&mut self, rhs: &i32)

Performs the *= operation. Read more
Source§

impl<T: Unit<Scalar = i64>> MulAssign<&i64> for Vector4<T>

Source§

fn mul_assign(&mut self, rhs: &i64)

Performs the *= operation. Read more
Source§

impl<T: Unit<Scalar = u16>> MulAssign<&u16> for Vector4<T>

Source§

fn mul_assign(&mut self, rhs: &u16)

Performs the *= operation. Read more
Source§

impl<T: Unit<Scalar = u32>> MulAssign<&u32> for Vector4<T>

Source§

fn mul_assign(&mut self, rhs: &u32)

Performs the *= operation. Read more
Source§

impl<T: Unit<Scalar = u64>> MulAssign<&u64> for Vector4<T>

Source§

fn mul_assign(&mut self, rhs: &u64)

Performs the *= operation. Read more
Source§

impl<T: Unit<Scalar = f32>> MulAssign<f32> for Vector4<T>

Source§

fn mul_assign(&mut self, rhs: f32)

Performs the *= operation. Read more
Source§

impl<T: Unit<Scalar = f64>> MulAssign<f64> for Vector4<T>

Source§

fn mul_assign(&mut self, rhs: f64)

Performs the *= operation. Read more
Source§

impl<T: Unit<Scalar = i16>> MulAssign<i16> for Vector4<T>

Source§

fn mul_assign(&mut self, rhs: i16)

Performs the *= operation. Read more
Source§

impl<T: Unit<Scalar = i32>> MulAssign<i32> for Vector4<T>

Source§

fn mul_assign(&mut self, rhs: i32)

Performs the *= operation. Read more
Source§

impl<T: Unit<Scalar = i64>> MulAssign<i64> for Vector4<T>

Source§

fn mul_assign(&mut self, rhs: i64)

Performs the *= operation. Read more
Source§

impl<T: Unit<Scalar = u16>> MulAssign<u16> for Vector4<T>

Source§

fn mul_assign(&mut self, rhs: u16)

Performs the *= operation. Read more
Source§

impl<T: Unit<Scalar = u32>> MulAssign<u32> for Vector4<T>

Source§

fn mul_assign(&mut self, rhs: u32)

Performs the *= operation. Read more
Source§

impl<T: Unit<Scalar = u64>> MulAssign<u64> for Vector4<T>

Source§

fn mul_assign(&mut self, rhs: u64)

Performs the *= operation. Read more
Source§

impl<T: Unit> MulAssign for Vector4<T>

Source§

fn mul_assign(&mut self, rhs: Vector4<T>)

Performs the *= operation. Read more
Source§

impl<T: SignedUnit> Neg for Vector4<T>

Source§

type Output = Vector4<T>

The resulting type after applying the - operator.
Source§

fn neg(self) -> Self

Performs the unary - operation. Read more
Source§

impl<T: Unit> PartialEq for Vector4<T>

Source§

fn eq(&self, other: &Self) -> 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<'a, T: Unit> Product<&'a Vector4<T>> for Vector4<T>

Source§

fn product<I>(iter: I) -> Self
where I: Iterator<Item = &'a Self>,

Takes an iterator and generates Self from the elements by multiplying the items.
Source§

impl<T: FloatUnit> RelativeEq for Vector4<T>

Source§

fn default_max_relative() -> Self::Epsilon

The default relative tolerance for testing values that are far-apart. Read more
Source§

fn relative_eq( &self, other: &Self, epsilon: Self::Epsilon, max_relative: Self::Epsilon, ) -> bool

A test for equality that uses a relative comparison if the values are far apart.
Source§

fn relative_ne( &self, other: &Self, epsilon: Self::Epsilon, max_relative: Self::Epsilon, ) -> bool

The inverse of RelativeEq::relative_eq.
Source§

impl<T: Unit> Rem<&Vector4<T>> for &Vector4<T>

Source§

type Output = Vector4<T>

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: &Vector4<T>) -> Vector4<T>

Performs the % operation. Read more
Source§

impl<T: Unit> Rem<&Vector4<T>> for Vector4<T>

Source§

type Output = Vector4<T>

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: &Vector4<T>) -> Vector4<T>

Performs the % operation. Read more
Source§

impl<T: Unit<Scalar = f32>> Rem<&f32> for &Vector4<T>

Source§

type Output = Vector4<T>

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: &f32) -> Vector4<T>

Performs the % operation. Read more
Source§

impl<T: Unit<Scalar = f32>> Rem<&f32> for Vector4<T>

Source§

type Output = Vector4<T>

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: &f32) -> Vector4<T>

Performs the % operation. Read more
Source§

impl<T: Unit<Scalar = f64>> Rem<&f64> for &Vector4<T>

Source§

type Output = Vector4<T>

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: &f64) -> Vector4<T>

Performs the % operation. Read more
Source§

impl<T: Unit<Scalar = f64>> Rem<&f64> for Vector4<T>

Source§

type Output = Vector4<T>

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: &f64) -> Vector4<T>

Performs the % operation. Read more
Source§

impl<T: Unit<Scalar = i16>> Rem<&i16> for &Vector4<T>

Source§

type Output = Vector4<T>

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: &i16) -> Vector4<T>

Performs the % operation. Read more
Source§

impl<T: Unit<Scalar = i16>> Rem<&i16> for Vector4<T>

Source§

type Output = Vector4<T>

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: &i16) -> Vector4<T>

Performs the % operation. Read more
Source§

impl<T: Unit<Scalar = i32>> Rem<&i32> for &Vector4<T>

Source§

type Output = Vector4<T>

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: &i32) -> Vector4<T>

Performs the % operation. Read more
Source§

impl<T: Unit<Scalar = i32>> Rem<&i32> for Vector4<T>

Source§

type Output = Vector4<T>

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: &i32) -> Vector4<T>

Performs the % operation. Read more
Source§

impl<T: Unit<Scalar = i64>> Rem<&i64> for &Vector4<T>

Source§

type Output = Vector4<T>

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: &i64) -> Vector4<T>

Performs the % operation. Read more
Source§

impl<T: Unit<Scalar = i64>> Rem<&i64> for Vector4<T>

Source§

type Output = Vector4<T>

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: &i64) -> Vector4<T>

Performs the % operation. Read more
Source§

impl<T: Unit<Scalar = u16>> Rem<&u16> for &Vector4<T>

Source§

type Output = Vector4<T>

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: &u16) -> Vector4<T>

Performs the % operation. Read more
Source§

impl<T: Unit<Scalar = u16>> Rem<&u16> for Vector4<T>

Source§

type Output = Vector4<T>

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: &u16) -> Vector4<T>

Performs the % operation. Read more
Source§

impl<T: Unit<Scalar = u32>> Rem<&u32> for &Vector4<T>

Source§

type Output = Vector4<T>

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: &u32) -> Vector4<T>

Performs the % operation. Read more
Source§

impl<T: Unit<Scalar = u32>> Rem<&u32> for Vector4<T>

Source§

type Output = Vector4<T>

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: &u32) -> Vector4<T>

Performs the % operation. Read more
Source§

impl<T: Unit<Scalar = u64>> Rem<&u64> for &Vector4<T>

Source§

type Output = Vector4<T>

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: &u64) -> Vector4<T>

Performs the % operation. Read more
Source§

impl<T: Unit<Scalar = u64>> Rem<&u64> for Vector4<T>

Source§

type Output = Vector4<T>

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: &u64) -> Vector4<T>

Performs the % operation. Read more
Source§

impl<T: Unit> Rem<Vector4<T>> for &Vector4<T>

Source§

type Output = Vector4<T>

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: Vector4<T>) -> Vector4<T>

Performs the % operation. Read more
Source§

impl<T: Unit<Scalar = f32>> Rem<f32> for &Vector4<T>

Source§

type Output = Vector4<T>

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: f32) -> Vector4<T>

Performs the % operation. Read more
Source§

impl<T: Unit<Scalar = f32>> Rem<f32> for Vector4<T>

Source§

type Output = Vector4<T>

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: f32) -> Vector4<T>

Performs the % operation. Read more
Source§

impl<T: Unit<Scalar = f64>> Rem<f64> for &Vector4<T>

Source§

type Output = Vector4<T>

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: f64) -> Vector4<T>

Performs the % operation. Read more
Source§

impl<T: Unit<Scalar = f64>> Rem<f64> for Vector4<T>

Source§

type Output = Vector4<T>

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: f64) -> Vector4<T>

Performs the % operation. Read more
Source§

impl<T: Unit<Scalar = i16>> Rem<i16> for &Vector4<T>

Source§

type Output = Vector4<T>

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: i16) -> Vector4<T>

Performs the % operation. Read more
Source§

impl<T: Unit<Scalar = i16>> Rem<i16> for Vector4<T>

Source§

type Output = Vector4<T>

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: i16) -> Vector4<T>

Performs the % operation. Read more
Source§

impl<T: Unit<Scalar = i32>> Rem<i32> for &Vector4<T>

Source§

type Output = Vector4<T>

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: i32) -> Vector4<T>

Performs the % operation. Read more
Source§

impl<T: Unit<Scalar = i32>> Rem<i32> for Vector4<T>

Source§

type Output = Vector4<T>

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: i32) -> Vector4<T>

Performs the % operation. Read more
Source§

impl<T: Unit<Scalar = i64>> Rem<i64> for &Vector4<T>

Source§

type Output = Vector4<T>

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: i64) -> Vector4<T>

Performs the % operation. Read more
Source§

impl<T: Unit<Scalar = i64>> Rem<i64> for Vector4<T>

Source§

type Output = Vector4<T>

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: i64) -> Vector4<T>

Performs the % operation. Read more
Source§

impl<T: Unit<Scalar = u16>> Rem<u16> for &Vector4<T>

Source§

type Output = Vector4<T>

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: u16) -> Vector4<T>

Performs the % operation. Read more
Source§

impl<T: Unit<Scalar = u16>> Rem<u16> for Vector4<T>

Source§

type Output = Vector4<T>

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: u16) -> Vector4<T>

Performs the % operation. Read more
Source§

impl<T: Unit<Scalar = u32>> Rem<u32> for &Vector4<T>

Source§

type Output = Vector4<T>

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: u32) -> Vector4<T>

Performs the % operation. Read more
Source§

impl<T: Unit<Scalar = u32>> Rem<u32> for Vector4<T>

Source§

type Output = Vector4<T>

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: u32) -> Vector4<T>

Performs the % operation. Read more
Source§

impl<T: Unit<Scalar = u64>> Rem<u64> for &Vector4<T>

Source§

type Output = Vector4<T>

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: u64) -> Vector4<T>

Performs the % operation. Read more
Source§

impl<T: Unit<Scalar = u64>> Rem<u64> for Vector4<T>

Source§

type Output = Vector4<T>

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: u64) -> Vector4<T>

Performs the % operation. Read more
Source§

impl<T: Unit> Rem for Vector4<T>

Source§

type Output = Vector4<T>

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: Vector4<T>) -> Vector4<T>

Performs the % operation. Read more
Source§

impl<T: Unit> RemAssign<&Vector4<T>> for Point4<T>

Source§

fn rem_assign(&mut self, rhs: &Vector4<T>)

Performs the %= operation. Read more
Source§

impl<T: Unit> RemAssign<&Vector4<T>> for Vector4<T>

Source§

fn rem_assign(&mut self, rhs: &Vector4<T>)

Performs the %= operation. Read more
Source§

impl<T: Unit<Scalar = f32>> RemAssign<&f32> for Vector4<T>

Source§

fn rem_assign(&mut self, rhs: &f32)

Performs the %= operation. Read more
Source§

impl<T: Unit<Scalar = f64>> RemAssign<&f64> for Vector4<T>

Source§

fn rem_assign(&mut self, rhs: &f64)

Performs the %= operation. Read more
Source§

impl<T: Unit<Scalar = i16>> RemAssign<&i16> for Vector4<T>

Source§

fn rem_assign(&mut self, rhs: &i16)

Performs the %= operation. Read more
Source§

impl<T: Unit<Scalar = i32>> RemAssign<&i32> for Vector4<T>

Source§

fn rem_assign(&mut self, rhs: &i32)

Performs the %= operation. Read more
Source§

impl<T: Unit<Scalar = i64>> RemAssign<&i64> for Vector4<T>

Source§

fn rem_assign(&mut self, rhs: &i64)

Performs the %= operation. Read more
Source§

impl<T: Unit<Scalar = u16>> RemAssign<&u16> for Vector4<T>

Source§

fn rem_assign(&mut self, rhs: &u16)

Performs the %= operation. Read more
Source§

impl<T: Unit<Scalar = u32>> RemAssign<&u32> for Vector4<T>

Source§

fn rem_assign(&mut self, rhs: &u32)

Performs the %= operation. Read more
Source§

impl<T: Unit<Scalar = u64>> RemAssign<&u64> for Vector4<T>

Source§

fn rem_assign(&mut self, rhs: &u64)

Performs the %= operation. Read more
Source§

impl<T: Unit> RemAssign<Vector4<T>> for Point4<T>

Source§

fn rem_assign(&mut self, rhs: Vector4<T>)

Performs the %= operation. Read more
Source§

impl<T: Unit<Scalar = f32>> RemAssign<f32> for Vector4<T>

Source§

fn rem_assign(&mut self, rhs: f32)

Performs the %= operation. Read more
Source§

impl<T: Unit<Scalar = f64>> RemAssign<f64> for Vector4<T>

Source§

fn rem_assign(&mut self, rhs: f64)

Performs the %= operation. Read more
Source§

impl<T: Unit<Scalar = i16>> RemAssign<i16> for Vector4<T>

Source§

fn rem_assign(&mut self, rhs: i16)

Performs the %= operation. Read more
Source§

impl<T: Unit<Scalar = i32>> RemAssign<i32> for Vector4<T>

Source§

fn rem_assign(&mut self, rhs: i32)

Performs the %= operation. Read more
Source§

impl<T: Unit<Scalar = i64>> RemAssign<i64> for Vector4<T>

Source§

fn rem_assign(&mut self, rhs: i64)

Performs the %= operation. Read more
Source§

impl<T: Unit<Scalar = u16>> RemAssign<u16> for Vector4<T>

Source§

fn rem_assign(&mut self, rhs: u16)

Performs the %= operation. Read more
Source§

impl<T: Unit<Scalar = u32>> RemAssign<u32> for Vector4<T>

Source§

fn rem_assign(&mut self, rhs: u32)

Performs the %= operation. Read more
Source§

impl<T: Unit<Scalar = u64>> RemAssign<u64> for Vector4<T>

Source§

fn rem_assign(&mut self, rhs: u64)

Performs the %= operation. Read more
Source§

impl<T: Unit> RemAssign for Vector4<T>

Source§

fn rem_assign(&mut self, rhs: Vector4<T>)

Performs the %= operation. Read more
Source§

impl<T: Unit> Sub<&Vector4<T>> for &Point4<T>

Source§

type Output = Point4<T>

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: &Vector4<T>) -> Point4<T>

Performs the - operation. Read more
Source§

impl<T: Unit> Sub<&Vector4<T>> for &Vector4<T>

Source§

type Output = Vector4<T>

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: &Vector4<T>) -> Vector4<T>

Performs the - operation. Read more
Source§

impl<T: Unit<Scalar = f32>> Sub<&Vector4<T>> for &f32

Source§

type Output = Vector4<T>

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: &Vector4<T>) -> Vector4<T>

Performs the - operation. Read more
Source§

impl<T: Unit<Scalar = f64>> Sub<&Vector4<T>> for &f64

Source§

type Output = Vector4<T>

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: &Vector4<T>) -> Vector4<T>

Performs the - operation. Read more
Source§

impl<T: Unit<Scalar = i16>> Sub<&Vector4<T>> for &i16

Source§

type Output = Vector4<T>

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: &Vector4<T>) -> Vector4<T>

Performs the - operation. Read more
Source§

impl<T: Unit<Scalar = i32>> Sub<&Vector4<T>> for &i32

Source§

type Output = Vector4<T>

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: &Vector4<T>) -> Vector4<T>

Performs the - operation. Read more
Source§

impl<T: Unit<Scalar = i64>> Sub<&Vector4<T>> for &i64

Source§

type Output = Vector4<T>

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: &Vector4<T>) -> Vector4<T>

Performs the - operation. Read more
Source§

impl<T: Unit<Scalar = u16>> Sub<&Vector4<T>> for &u16

Source§

type Output = Vector4<T>

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: &Vector4<T>) -> Vector4<T>

Performs the - operation. Read more
Source§

impl<T: Unit<Scalar = u32>> Sub<&Vector4<T>> for &u32

Source§

type Output = Vector4<T>

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: &Vector4<T>) -> Vector4<T>

Performs the - operation. Read more
Source§

impl<T: Unit<Scalar = u64>> Sub<&Vector4<T>> for &u64

Source§

type Output = Vector4<T>

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: &Vector4<T>) -> Vector4<T>

Performs the - operation. Read more
Source§

impl<T: Unit> Sub<&Vector4<T>> for Point4<T>

Source§

type Output = Point4<T>

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: &Vector4<T>) -> Point4<T>

Performs the - operation. Read more
Source§

impl<T: Unit> Sub<&Vector4<T>> for Vector4<T>

Source§

type Output = Vector4<T>

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: &Vector4<T>) -> Vector4<T>

Performs the - operation. Read more
Source§

impl<T: Unit<Scalar = f32>> Sub<&Vector4<T>> for f32

Source§

type Output = Vector4<T>

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: &Vector4<T>) -> Vector4<T>

Performs the - operation. Read more
Source§

impl<T: Unit<Scalar = f64>> Sub<&Vector4<T>> for f64

Source§

type Output = Vector4<T>

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: &Vector4<T>) -> Vector4<T>

Performs the - operation. Read more
Source§

impl<T: Unit<Scalar = i16>> Sub<&Vector4<T>> for i16

Source§

type Output = Vector4<T>

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: &Vector4<T>) -> Vector4<T>

Performs the - operation. Read more
Source§

impl<T: Unit<Scalar = i32>> Sub<&Vector4<T>> for i32

Source§

type Output = Vector4<T>

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: &Vector4<T>) -> Vector4<T>

Performs the - operation. Read more
Source§

impl<T: Unit<Scalar = i64>> Sub<&Vector4<T>> for i64

Source§

type Output = Vector4<T>

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: &Vector4<T>) -> Vector4<T>

Performs the - operation. Read more
Source§

impl<T: Unit<Scalar = u16>> Sub<&Vector4<T>> for u16

Source§

type Output = Vector4<T>

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: &Vector4<T>) -> Vector4<T>

Performs the - operation. Read more
Source§

impl<T: Unit<Scalar = u32>> Sub<&Vector4<T>> for u32

Source§

type Output = Vector4<T>

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: &Vector4<T>) -> Vector4<T>

Performs the - operation. Read more
Source§

impl<T: Unit<Scalar = u64>> Sub<&Vector4<T>> for u64

Source§

type Output = Vector4<T>

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: &Vector4<T>) -> Vector4<T>

Performs the - operation. Read more
Source§

impl<T: Unit<Scalar = f32>> Sub<&f32> for &Vector4<T>

Source§

type Output = Vector4<T>

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: &f32) -> Vector4<T>

Performs the - operation. Read more
Source§

impl<T: Unit<Scalar = f32>> Sub<&f32> for Vector4<T>

Source§

type Output = Vector4<T>

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: &f32) -> Vector4<T>

Performs the - operation. Read more
Source§

impl<T: Unit<Scalar = f64>> Sub<&f64> for &Vector4<T>

Source§

type Output = Vector4<T>

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: &f64) -> Vector4<T>

Performs the - operation. Read more
Source§

impl<T: Unit<Scalar = f64>> Sub<&f64> for Vector4<T>

Source§

type Output = Vector4<T>

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: &f64) -> Vector4<T>

Performs the - operation. Read more
Source§

impl<T: Unit<Scalar = i16>> Sub<&i16> for &Vector4<T>

Source§

type Output = Vector4<T>

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: &i16) -> Vector4<T>

Performs the - operation. Read more
Source§

impl<T: Unit<Scalar = i16>> Sub<&i16> for Vector4<T>

Source§

type Output = Vector4<T>

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: &i16) -> Vector4<T>

Performs the - operation. Read more
Source§

impl<T: Unit<Scalar = i32>> Sub<&i32> for &Vector4<T>

Source§

type Output = Vector4<T>

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: &i32) -> Vector4<T>

Performs the - operation. Read more
Source§

impl<T: Unit<Scalar = i32>> Sub<&i32> for Vector4<T>

Source§

type Output = Vector4<T>

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: &i32) -> Vector4<T>

Performs the - operation. Read more
Source§

impl<T: Unit<Scalar = i64>> Sub<&i64> for &Vector4<T>

Source§

type Output = Vector4<T>

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: &i64) -> Vector4<T>

Performs the - operation. Read more
Source§

impl<T: Unit<Scalar = i64>> Sub<&i64> for Vector4<T>

Source§

type Output = Vector4<T>

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: &i64) -> Vector4<T>

Performs the - operation. Read more
Source§

impl<T: Unit<Scalar = u16>> Sub<&u16> for &Vector4<T>

Source§

type Output = Vector4<T>

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: &u16) -> Vector4<T>

Performs the - operation. Read more
Source§

impl<T: Unit<Scalar = u16>> Sub<&u16> for Vector4<T>

Source§

type Output = Vector4<T>

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: &u16) -> Vector4<T>

Performs the - operation. Read more
Source§

impl<T: Unit<Scalar = u32>> Sub<&u32> for &Vector4<T>

Source§

type Output = Vector4<T>

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: &u32) -> Vector4<T>

Performs the - operation. Read more
Source§

impl<T: Unit<Scalar = u32>> Sub<&u32> for Vector4<T>

Source§

type Output = Vector4<T>

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: &u32) -> Vector4<T>

Performs the - operation. Read more
Source§

impl<T: Unit<Scalar = u64>> Sub<&u64> for &Vector4<T>

Source§

type Output = Vector4<T>

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: &u64) -> Vector4<T>

Performs the - operation. Read more
Source§

impl<T: Unit<Scalar = u64>> Sub<&u64> for Vector4<T>

Source§

type Output = Vector4<T>

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: &u64) -> Vector4<T>

Performs the - operation. Read more
Source§

impl<T: Unit> Sub<Vector4<T>> for &Point4<T>

Source§

type Output = Point4<T>

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: Vector4<T>) -> Point4<T>

Performs the - operation. Read more
Source§

impl<T: Unit> Sub<Vector4<T>> for &Vector4<T>

Source§

type Output = Vector4<T>

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: Vector4<T>) -> Vector4<T>

Performs the - operation. Read more
Source§

impl<T: Unit<Scalar = f32>> Sub<Vector4<T>> for &f32

Source§

type Output = Vector4<T>

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: Vector4<T>) -> Vector4<T>

Performs the - operation. Read more
Source§

impl<T: Unit<Scalar = f64>> Sub<Vector4<T>> for &f64

Source§

type Output = Vector4<T>

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: Vector4<T>) -> Vector4<T>

Performs the - operation. Read more
Source§

impl<T: Unit<Scalar = i16>> Sub<Vector4<T>> for &i16

Source§

type Output = Vector4<T>

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: Vector4<T>) -> Vector4<T>

Performs the - operation. Read more
Source§

impl<T: Unit<Scalar = i32>> Sub<Vector4<T>> for &i32

Source§

type Output = Vector4<T>

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: Vector4<T>) -> Vector4<T>

Performs the - operation. Read more
Source§

impl<T: Unit<Scalar = i64>> Sub<Vector4<T>> for &i64

Source§

type Output = Vector4<T>

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: Vector4<T>) -> Vector4<T>

Performs the - operation. Read more
Source§

impl<T: Unit<Scalar = u16>> Sub<Vector4<T>> for &u16

Source§

type Output = Vector4<T>

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: Vector4<T>) -> Vector4<T>

Performs the - operation. Read more
Source§

impl<T: Unit<Scalar = u32>> Sub<Vector4<T>> for &u32

Source§

type Output = Vector4<T>

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: Vector4<T>) -> Vector4<T>

Performs the - operation. Read more
Source§

impl<T: Unit<Scalar = u64>> Sub<Vector4<T>> for &u64

Source§

type Output = Vector4<T>

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: Vector4<T>) -> Vector4<T>

Performs the - operation. Read more
Source§

impl<T: Unit> Sub<Vector4<T>> for Point4<T>

Source§

type Output = Point4<T>

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: Vector4<T>) -> Point4<T>

Performs the - operation. Read more
Source§

impl<T: Unit<Scalar = f32>> Sub<Vector4<T>> for f32

Source§

type Output = Vector4<T>

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: Vector4<T>) -> Vector4<T>

Performs the - operation. Read more
Source§

impl<T: Unit<Scalar = f64>> Sub<Vector4<T>> for f64

Source§

type Output = Vector4<T>

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: Vector4<T>) -> Vector4<T>

Performs the - operation. Read more
Source§

impl<T: Unit<Scalar = i16>> Sub<Vector4<T>> for i16

Source§

type Output = Vector4<T>

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: Vector4<T>) -> Vector4<T>

Performs the - operation. Read more
Source§

impl<T: Unit<Scalar = i32>> Sub<Vector4<T>> for i32

Source§

type Output = Vector4<T>

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: Vector4<T>) -> Vector4<T>

Performs the - operation. Read more
Source§

impl<T: Unit<Scalar = i64>> Sub<Vector4<T>> for i64

Source§

type Output = Vector4<T>

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: Vector4<T>) -> Vector4<T>

Performs the - operation. Read more
Source§

impl<T: Unit<Scalar = u16>> Sub<Vector4<T>> for u16

Source§

type Output = Vector4<T>

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: Vector4<T>) -> Vector4<T>

Performs the - operation. Read more
Source§

impl<T: Unit<Scalar = u32>> Sub<Vector4<T>> for u32

Source§

type Output = Vector4<T>

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: Vector4<T>) -> Vector4<T>

Performs the - operation. Read more
Source§

impl<T: Unit<Scalar = u64>> Sub<Vector4<T>> for u64

Source§

type Output = Vector4<T>

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: Vector4<T>) -> Vector4<T>

Performs the - operation. Read more
Source§

impl<T: Unit<Scalar = f32>> Sub<f32> for &Vector4<T>

Source§

type Output = Vector4<T>

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: f32) -> Vector4<T>

Performs the - operation. Read more
Source§

impl<T: Unit<Scalar = f32>> Sub<f32> for Vector4<T>

Source§

type Output = Vector4<T>

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: f32) -> Vector4<T>

Performs the - operation. Read more
Source§

impl<T: Unit<Scalar = f64>> Sub<f64> for &Vector4<T>

Source§

type Output = Vector4<T>

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: f64) -> Vector4<T>

Performs the - operation. Read more
Source§

impl<T: Unit<Scalar = f64>> Sub<f64> for Vector4<T>

Source§

type Output = Vector4<T>

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: f64) -> Vector4<T>

Performs the - operation. Read more
Source§

impl<T: Unit<Scalar = i16>> Sub<i16> for &Vector4<T>

Source§

type Output = Vector4<T>

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: i16) -> Vector4<T>

Performs the - operation. Read more
Source§

impl<T: Unit<Scalar = i16>> Sub<i16> for Vector4<T>

Source§

type Output = Vector4<T>

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: i16) -> Vector4<T>

Performs the - operation. Read more
Source§

impl<T: Unit<Scalar = i32>> Sub<i32> for &Vector4<T>

Source§

type Output = Vector4<T>

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: i32) -> Vector4<T>

Performs the - operation. Read more
Source§

impl<T: Unit<Scalar = i32>> Sub<i32> for Vector4<T>

Source§

type Output = Vector4<T>

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: i32) -> Vector4<T>

Performs the - operation. Read more
Source§

impl<T: Unit<Scalar = i64>> Sub<i64> for &Vector4<T>

Source§

type Output = Vector4<T>

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: i64) -> Vector4<T>

Performs the - operation. Read more
Source§

impl<T: Unit<Scalar = i64>> Sub<i64> for Vector4<T>

Source§

type Output = Vector4<T>

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: i64) -> Vector4<T>

Performs the - operation. Read more
Source§

impl<T: Unit<Scalar = u16>> Sub<u16> for &Vector4<T>

Source§

type Output = Vector4<T>

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: u16) -> Vector4<T>

Performs the - operation. Read more
Source§

impl<T: Unit<Scalar = u16>> Sub<u16> for Vector4<T>

Source§

type Output = Vector4<T>

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: u16) -> Vector4<T>

Performs the - operation. Read more
Source§

impl<T: Unit<Scalar = u32>> Sub<u32> for &Vector4<T>

Source§

type Output = Vector4<T>

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: u32) -> Vector4<T>

Performs the - operation. Read more
Source§

impl<T: Unit<Scalar = u32>> Sub<u32> for Vector4<T>

Source§

type Output = Vector4<T>

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: u32) -> Vector4<T>

Performs the - operation. Read more
Source§

impl<T: Unit<Scalar = u64>> Sub<u64> for &Vector4<T>

Source§

type Output = Vector4<T>

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: u64) -> Vector4<T>

Performs the - operation. Read more
Source§

impl<T: Unit<Scalar = u64>> Sub<u64> for Vector4<T>

Source§

type Output = Vector4<T>

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: u64) -> Vector4<T>

Performs the - operation. Read more
Source§

impl<T: Unit> Sub for Vector4<T>

Source§

type Output = Vector4<T>

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: Vector4<T>) -> Vector4<T>

Performs the - operation. Read more
Source§

impl<T: Unit> SubAssign<&Vector4<T>> for Point4<T>

Source§

fn sub_assign(&mut self, rhs: &Vector4<T>)

Performs the -= operation. Read more
Source§

impl<T: Unit> SubAssign<&Vector4<T>> for Vector4<T>

Source§

fn sub_assign(&mut self, rhs: &Vector4<T>)

Performs the -= operation. Read more
Source§

impl<T: Unit<Scalar = f32>> SubAssign<&f32> for Vector4<T>

Source§

fn sub_assign(&mut self, rhs: &f32)

Performs the -= operation. Read more
Source§

impl<T: Unit<Scalar = f64>> SubAssign<&f64> for Vector4<T>

Source§

fn sub_assign(&mut self, rhs: &f64)

Performs the -= operation. Read more
Source§

impl<T: Unit<Scalar = i16>> SubAssign<&i16> for Vector4<T>

Source§

fn sub_assign(&mut self, rhs: &i16)

Performs the -= operation. Read more
Source§

impl<T: Unit<Scalar = i32>> SubAssign<&i32> for Vector4<T>

Source§

fn sub_assign(&mut self, rhs: &i32)

Performs the -= operation. Read more
Source§

impl<T: Unit<Scalar = i64>> SubAssign<&i64> for Vector4<T>

Source§

fn sub_assign(&mut self, rhs: &i64)

Performs the -= operation. Read more
Source§

impl<T: Unit<Scalar = u16>> SubAssign<&u16> for Vector4<T>

Source§

fn sub_assign(&mut self, rhs: &u16)

Performs the -= operation. Read more
Source§

impl<T: Unit<Scalar = u32>> SubAssign<&u32> for Vector4<T>

Source§

fn sub_assign(&mut self, rhs: &u32)

Performs the -= operation. Read more
Source§

impl<T: Unit<Scalar = u64>> SubAssign<&u64> for Vector4<T>

Source§

fn sub_assign(&mut self, rhs: &u64)

Performs the -= operation. Read more
Source§

impl<T: Unit> SubAssign<Vector4<T>> for Point4<T>

Source§

fn sub_assign(&mut self, rhs: Vector4<T>)

Performs the -= operation. Read more
Source§

impl<T: Unit<Scalar = f32>> SubAssign<f32> for Vector4<T>

Source§

fn sub_assign(&mut self, rhs: f32)

Performs the -= operation. Read more
Source§

impl<T: Unit<Scalar = f64>> SubAssign<f64> for Vector4<T>

Source§

fn sub_assign(&mut self, rhs: f64)

Performs the -= operation. Read more
Source§

impl<T: Unit<Scalar = i16>> SubAssign<i16> for Vector4<T>

Source§

fn sub_assign(&mut self, rhs: i16)

Performs the -= operation. Read more
Source§

impl<T: Unit<Scalar = i32>> SubAssign<i32> for Vector4<T>

Source§

fn sub_assign(&mut self, rhs: i32)

Performs the -= operation. Read more
Source§

impl<T: Unit<Scalar = i64>> SubAssign<i64> for Vector4<T>

Source§

fn sub_assign(&mut self, rhs: i64)

Performs the -= operation. Read more
Source§

impl<T: Unit<Scalar = u16>> SubAssign<u16> for Vector4<T>

Source§

fn sub_assign(&mut self, rhs: u16)

Performs the -= operation. Read more
Source§

impl<T: Unit<Scalar = u32>> SubAssign<u32> for Vector4<T>

Source§

fn sub_assign(&mut self, rhs: u32)

Performs the -= operation. Read more
Source§

impl<T: Unit<Scalar = u64>> SubAssign<u64> for Vector4<T>

Source§

fn sub_assign(&mut self, rhs: u64)

Performs the -= operation. Read more
Source§

impl<T: Unit> SubAssign for Vector4<T>

Source§

fn sub_assign(&mut self, rhs: Vector4<T>)

Performs the -= operation. Read more
Source§

impl<'a, T: Unit> Sum<&'a Vector4<T>> for Vector4<T>

Source§

fn sum<I>(iter: I) -> Self
where I: Iterator<Item = &'a Self>,

Takes an iterator and generates Self from the elements by “summing up” the items.
Source§

impl<T: Unit> Sum for Vector4<T>

Source§

fn sum<I>(iter: I) -> Self
where I: Iterator<Item = Self>,

Takes an iterator and generates Self from the elements by “summing up” the items.
Source§

impl<T: Unit> Swizzle<T> for Vector4<T>

Source§

fn swizzle2<const X: usize, const Y: usize>(&self) -> Vector2<T>

Select two components from this vector and return a 2D vector made from those components.
Source§

fn swizzle3<const X: usize, const Y: usize, const Z: usize>(&self) -> Vector3<T>

Select three components from this vector and return a 3D vector made from those components.
Source§

fn swizzle4<const X: usize, const Y: usize, const Z: usize, const W: usize>( &self, ) -> Vector4<T>

Select four components from this vector and return a 4D vector made from those components.
Source§

impl<T: Unit> Transparent for Vector4<T>

SAFETY: These are guaranteed to have the same representation.

Source§

type Wrapped = <<T as Unit>::Scalar as Scalar>::Vec4

The inner type that shares a compatible representation with Self.
Source§

fn wrap(x: Self::Wrapped) -> Self

Wrap the inner type by copy. Read more
Source§

fn peel(x: Self) -> Self::Wrapped

Unwrap the inner type by copy. Read more
Source§

fn peel_copy(x: &Self) -> Self::Wrapped

Convert a reference to the inner type. Read more
Source§

impl<T: FloatUnit> UlpsEq for Vector4<T>

Source§

fn default_max_ulps() -> u32

The default ULPs to tolerate when testing values that are far-apart. Read more
Source§

fn ulps_eq(&self, other: &Self, epsilon: Self::Epsilon, max_ulps: u32) -> bool

A test for equality that uses units in the last place (ULP) if the values are far apart.
Source§

fn ulps_ne(&self, other: &Self, epsilon: Self::Epsilon, max_ulps: u32) -> bool

The inverse of UlpsEq::ulps_eq.
Source§

impl<T: Unit> Vec4Swizzles for Vector4<T>

Source§

type Vec2 = Vector2<T>

Source§

type Vec3 = Vector3<T>

Source§

fn xx(self) -> Vector2<T>

Source§

fn xy(self) -> Vector2<T>

Source§

fn yy(self) -> Vector2<T>

Source§

fn yx(self) -> Vector2<T>

Source§

fn xxx(self) -> Vector3<T>

Source§

fn xxy(self) -> Vector3<T>

Source§

fn xyx(self) -> Vector3<T>

Source§

fn xyy(self) -> Vector3<T>

Source§

fn yxx(self) -> Vector3<T>

Source§

fn yxy(self) -> Vector3<T>

Source§

fn yyx(self) -> Vector3<T>

Source§

fn yyy(self) -> Vector3<T>

Source§

fn xxxx(self) -> Vector4<T>

Source§

fn xxxy(self) -> Vector4<T>

Source§

fn xxyx(self) -> Vector4<T>

Source§

fn xxyy(self) -> Vector4<T>

Source§

fn xyxx(self) -> Vector4<T>

Source§

fn xyxy(self) -> Vector4<T>

Source§

fn xyyx(self) -> Vector4<T>

Source§

fn xyyy(self) -> Vector4<T>

Source§

fn yxxx(self) -> Vector4<T>

Source§

fn yxxy(self) -> Vector4<T>

Source§

fn yxyx(self) -> Vector4<T>

Source§

fn yxyy(self) -> Vector4<T>

Source§

fn yyxx(self) -> Vector4<T>

Source§

fn yyxy(self) -> Vector4<T>

Source§

fn yyyx(self) -> Vector4<T>

Source§

fn yyyy(self) -> Vector4<T>

Source§

fn with_xy(self, rhs: Vector2<T>) -> Self

Source§

fn with_xz(self, rhs: Vector2<T>) -> Self

Source§

fn with_yx(self, rhs: Vector2<T>) -> Self

Source§

fn with_yz(self, rhs: Vector2<T>) -> Self

Source§

fn with_zx(self, rhs: Vector2<T>) -> Self

Source§

fn with_zy(self, rhs: Vector2<T>) -> Self

Source§

fn xz(self) -> Vector2<T>

Source§

fn yz(self) -> Vector2<T>

Source§

fn zx(self) -> Vector2<T>

Source§

fn zy(self) -> Vector2<T>

Source§

fn zz(self) -> Vector2<T>

Source§

fn xxz(self) -> Vector3<T>

Source§

fn xyz(self) -> Vector3<T>

Source§

fn xzx(self) -> Vector3<T>

Source§

fn xzy(self) -> Vector3<T>

Source§

fn xzz(self) -> Vector3<T>

Source§

fn yxz(self) -> Vector3<T>

Source§

fn yyz(self) -> Vector3<T>

Source§

fn yzx(self) -> Vector3<T>

Source§

fn yzy(self) -> Vector3<T>

Source§

fn yzz(self) -> Vector3<T>

Source§

fn zxx(self) -> Vector3<T>

Source§

fn zxy(self) -> Vector3<T>

Source§

fn zxz(self) -> Vector3<T>

Source§

fn zyx(self) -> Vector3<T>

Source§

fn zyy(self) -> Vector3<T>

Source§

fn zyz(self) -> Vector3<T>

Source§

fn zzx(self) -> Vector3<T>

Source§

fn zzy(self) -> Vector3<T>

Source§

fn zzz(self) -> Vector3<T>

Source§

fn xxxz(self) -> Vector4<T>

Source§

fn xxyz(self) -> Vector4<T>

Source§

fn xxzx(self) -> Vector4<T>

Source§

fn xxzy(self) -> Vector4<T>

Source§

fn xxzz(self) -> Vector4<T>

Source§

fn xyxz(self) -> Vector4<T>

Source§

fn xyyz(self) -> Vector4<T>

Source§

fn xyzx(self) -> Vector4<T>

Source§

fn xyzy(self) -> Vector4<T>

Source§

fn xyzz(self) -> Vector4<T>

Source§

fn xzxx(self) -> Vector4<T>

Source§

fn xzxy(self) -> Vector4<T>

Source§

fn xzxz(self) -> Vector4<T>

Source§

fn xzyx(self) -> Vector4<T>

Source§

fn xzyy(self) -> Vector4<T>

Source§

fn xzyz(self) -> Vector4<T>

Source§

fn xzzx(self) -> Vector4<T>

Source§

fn xzzy(self) -> Vector4<T>

Source§

fn xzzz(self) -> Vector4<T>

Source§

fn yxxz(self) -> Vector4<T>

Source§

fn yxyz(self) -> Vector4<T>

Source§

fn yxzx(self) -> Vector4<T>

Source§

fn yxzy(self) -> Vector4<T>

Source§

fn yxzz(self) -> Vector4<T>

Source§

fn yyxz(self) -> Vector4<T>

Source§

fn yyyz(self) -> Vector4<T>

Source§

fn yyzx(self) -> Vector4<T>

Source§

fn yyzy(self) -> Vector4<T>

Source§

fn yyzz(self) -> Vector4<T>

Source§

fn yzxx(self) -> Vector4<T>

Source§

fn yzxy(self) -> Vector4<T>

Source§

fn yzxz(self) -> Vector4<T>

Source§

fn yzyx(self) -> Vector4<T>

Source§

fn yzyy(self) -> Vector4<T>

Source§

fn yzyz(self) -> Vector4<T>

Source§

fn yzzx(self) -> Vector4<T>

Source§

fn yzzy(self) -> Vector4<T>

Source§

fn yzzz(self) -> Vector4<T>

Source§

fn zxxx(self) -> Vector4<T>

Source§

fn zxxy(self) -> Vector4<T>

Source§

fn zxxz(self) -> Vector4<T>

Source§

fn zxyx(self) -> Vector4<T>

Source§

fn zxyy(self) -> Vector4<T>

Source§

fn zxyz(self) -> Vector4<T>

Source§

fn zxzx(self) -> Vector4<T>

Source§

fn zxzy(self) -> Vector4<T>

Source§

fn zxzz(self) -> Vector4<T>

Source§

fn zyxx(self) -> Vector4<T>

Source§

fn zyxy(self) -> Vector4<T>

Source§

fn zyxz(self) -> Vector4<T>

Source§

fn zyyx(self) -> Vector4<T>

Source§

fn zyyy(self) -> Vector4<T>

Source§

fn zyyz(self) -> Vector4<T>

Source§

fn zyzx(self) -> Vector4<T>

Source§

fn zyzy(self) -> Vector4<T>

Source§

fn zyzz(self) -> Vector4<T>

Source§

fn zzxx(self) -> Vector4<T>

Source§

fn zzxy(self) -> Vector4<T>

Source§

fn zzxz(self) -> Vector4<T>

Source§

fn zzyx(self) -> Vector4<T>

Source§

fn zzyy(self) -> Vector4<T>

Source§

fn zzyz(self) -> Vector4<T>

Source§

fn zzzx(self) -> Vector4<T>

Source§

fn zzzy(self) -> Vector4<T>

Source§

fn zzzz(self) -> Vector4<T>

Source§

fn with_wx(self, rhs: Vector2<T>) -> Self

Source§

fn with_wy(self, rhs: Vector2<T>) -> Self

Source§

fn with_wz(self, rhs: Vector2<T>) -> Self

Source§

fn with_xw(self, rhs: Vector2<T>) -> Self

Source§

fn with_yw(self, rhs: Vector2<T>) -> Self

Source§

fn with_zw(self, rhs: Vector2<T>) -> Self

Source§

fn with_wxy(self, rhs: Vector3<T>) -> Self

Source§

fn with_wxz(self, rhs: Vector3<T>) -> Self

Source§

fn with_wyx(self, rhs: Vector3<T>) -> Self

Source§

fn with_wyz(self, rhs: Vector3<T>) -> Self

Source§

fn with_wzx(self, rhs: Vector3<T>) -> Self

Source§

fn with_wzy(self, rhs: Vector3<T>) -> Self

Source§

fn with_xwy(self, rhs: Vector3<T>) -> Self

Source§

fn with_xwz(self, rhs: Vector3<T>) -> Self

Source§

fn with_xyw(self, rhs: Vector3<T>) -> Self

Source§

fn with_xyz(self, rhs: Vector3<T>) -> Self

Source§

fn with_xzw(self, rhs: Vector3<T>) -> Self

Source§

fn with_xzy(self, rhs: Vector3<T>) -> Self

Source§

fn with_ywx(self, rhs: Vector3<T>) -> Self

Source§

fn with_yxw(self, rhs: Vector3<T>) -> Self

Source§

fn with_yzx(self, rhs: Vector3<T>) -> Self

Source§

fn with_yzw(self, rhs: Vector3<T>) -> Self

Source§

fn with_yxz(self, rhs: Vector3<T>) -> Self

Source§

fn with_ywz(self, rhs: Vector3<T>) -> Self

Source§

fn with_zwx(self, rhs: Vector3<T>) -> Self

Source§

fn with_zxw(self, rhs: Vector3<T>) -> Self

Source§

fn with_zxy(self, rhs: Vector3<T>) -> Self

Source§

fn with_zyx(self, rhs: Vector3<T>) -> Self

Source§

fn with_zwy(self, rhs: Vector3<T>) -> Self

Source§

fn with_zyw(self, rhs: Vector3<T>) -> Self

Source§

fn xw(self) -> Vector2<T>

Source§

fn yw(self) -> Vector2<T>

Source§

fn zw(self) -> Vector2<T>

Source§

fn wx(self) -> Vector2<T>

Source§

fn wy(self) -> Vector2<T>

Source§

fn wz(self) -> Vector2<T>

Source§

fn ww(self) -> Vector2<T>

Source§

fn xxw(self) -> Vector3<T>

Source§

fn xyw(self) -> Vector3<T>

Source§

fn xzw(self) -> Vector3<T>

Source§

fn xwx(self) -> Vector3<T>

Source§

fn xwy(self) -> Vector3<T>

Source§

fn xwz(self) -> Vector3<T>

Source§

fn xww(self) -> Vector3<T>

Source§

fn yxw(self) -> Vector3<T>

Source§

fn yyw(self) -> Vector3<T>

Source§

fn yzw(self) -> Vector3<T>

Source§

fn ywx(self) -> Vector3<T>

Source§

fn ywy(self) -> Vector3<T>

Source§

fn ywz(self) -> Vector3<T>

Source§

fn yww(self) -> Vector3<T>

Source§

fn zxw(self) -> Vector3<T>

Source§

fn zyw(self) -> Vector3<T>

Source§

fn zzw(self) -> Vector3<T>

Source§

fn zwx(self) -> Vector3<T>

Source§

fn zwy(self) -> Vector3<T>

Source§

fn zwz(self) -> Vector3<T>

Source§

fn zww(self) -> Vector3<T>

Source§

fn wxx(self) -> Vector3<T>

Source§

fn wxy(self) -> Vector3<T>

Source§

fn wxz(self) -> Vector3<T>

Source§

fn wxw(self) -> Vector3<T>

Source§

fn wyx(self) -> Vector3<T>

Source§

fn wyy(self) -> Vector3<T>

Source§

fn wyz(self) -> Vector3<T>

Source§

fn wyw(self) -> Vector3<T>

Source§

fn wzx(self) -> Vector3<T>

Source§

fn wzy(self) -> Vector3<T>

Source§

fn wzz(self) -> Vector3<T>

Source§

fn wzw(self) -> Vector3<T>

Source§

fn wwx(self) -> Vector3<T>

Source§

fn wwy(self) -> Vector3<T>

Source§

fn wwz(self) -> Vector3<T>

Source§

fn www(self) -> Vector3<T>

Source§

fn xxxw(self) -> Vector4<T>

Source§

fn xxyw(self) -> Vector4<T>

Source§

fn xxzw(self) -> Vector4<T>

Source§

fn xxwx(self) -> Vector4<T>

Source§

fn xxwy(self) -> Vector4<T>

Source§

fn xxwz(self) -> Vector4<T>

Source§

fn xxww(self) -> Vector4<T>

Source§

fn xyxw(self) -> Vector4<T>

Source§

fn xyyw(self) -> Vector4<T>

Source§

fn xyzw(self) -> Vector4<T>

Source§

fn xywx(self) -> Vector4<T>

Source§

fn xywy(self) -> Vector4<T>

Source§

fn xywz(self) -> Vector4<T>

Source§

fn xyww(self) -> Vector4<T>

Source§

fn xzxw(self) -> Vector4<T>

Source§

fn xzyw(self) -> Vector4<T>

Source§

fn xzzw(self) -> Vector4<T>

Source§

fn xzwx(self) -> Vector4<T>

Source§

fn xzwy(self) -> Vector4<T>

Source§

fn xzwz(self) -> Vector4<T>

Source§

fn xzww(self) -> Vector4<T>

Source§

fn xwxx(self) -> Vector4<T>

Source§

fn xwxy(self) -> Vector4<T>

Source§

fn xwxz(self) -> Vector4<T>

Source§

fn xwxw(self) -> Vector4<T>

Source§

fn xwyx(self) -> Vector4<T>

Source§

fn xwyy(self) -> Vector4<T>

Source§

fn xwyz(self) -> Vector4<T>

Source§

fn xwyw(self) -> Vector4<T>

Source§

fn xwzx(self) -> Vector4<T>

Source§

fn xwzy(self) -> Vector4<T>

Source§

fn xwzz(self) -> Vector4<T>

Source§

fn xwzw(self) -> Vector4<T>

Source§

fn xwwx(self) -> Vector4<T>

Source§

fn xwwy(self) -> Vector4<T>

Source§

fn xwwz(self) -> Vector4<T>

Source§

fn xwww(self) -> Vector4<T>

Source§

fn yxxw(self) -> Vector4<T>

Source§

fn yxyw(self) -> Vector4<T>

Source§

fn yxzw(self) -> Vector4<T>

Source§

fn yxwx(self) -> Vector4<T>

Source§

fn yxwy(self) -> Vector4<T>

Source§

fn yxwz(self) -> Vector4<T>

Source§

fn yxww(self) -> Vector4<T>

Source§

fn yyxw(self) -> Vector4<T>

Source§

fn yyyw(self) -> Vector4<T>

Source§

fn yyzw(self) -> Vector4<T>

Source§

fn yywx(self) -> Vector4<T>

Source§

fn yywy(self) -> Vector4<T>

Source§

fn yywz(self) -> Vector4<T>

Source§

fn yyww(self) -> Vector4<T>

Source§

fn yzxw(self) -> Vector4<T>

Source§

fn yzyw(self) -> Vector4<T>

Source§

fn yzzw(self) -> Vector4<T>

Source§

fn yzwx(self) -> Vector4<T>

Source§

fn yzwy(self) -> Vector4<T>

Source§

fn yzwz(self) -> Vector4<T>

Source§

fn yzww(self) -> Vector4<T>

Source§

fn ywxx(self) -> Vector4<T>

Source§

fn ywxy(self) -> Vector4<T>

Source§

fn ywxz(self) -> Vector4<T>

Source§

fn ywxw(self) -> Vector4<T>

Source§

fn ywyx(self) -> Vector4<T>

Source§

fn ywyy(self) -> Vector4<T>

Source§

fn ywyz(self) -> Vector4<T>

Source§

fn ywyw(self) -> Vector4<T>

Source§

fn ywzx(self) -> Vector4<T>

Source§

fn ywzy(self) -> Vector4<T>

Source§

fn ywzz(self) -> Vector4<T>

Source§

fn ywzw(self) -> Vector4<T>

Source§

fn ywwx(self) -> Vector4<T>

Source§

fn ywwy(self) -> Vector4<T>

Source§

fn ywwz(self) -> Vector4<T>

Source§

fn ywww(self) -> Vector4<T>

Source§

fn zxxw(self) -> Vector4<T>

Source§

fn zxyw(self) -> Vector4<T>

Source§

fn zxzw(self) -> Vector4<T>

Source§

fn zxwx(self) -> Vector4<T>

Source§

fn zxwy(self) -> Vector4<T>

Source§

fn zxwz(self) -> Vector4<T>

Source§

fn zxww(self) -> Vector4<T>

Source§

fn zyxw(self) -> Vector4<T>

Source§

fn zyyw(self) -> Vector4<T>

Source§

fn zyzw(self) -> Vector4<T>

Source§

fn zywx(self) -> Vector4<T>

Source§

fn zywy(self) -> Vector4<T>

Source§

fn zywz(self) -> Vector4<T>

Source§

fn zyww(self) -> Vector4<T>

Source§

fn zzxw(self) -> Vector4<T>

Source§

fn zzyw(self) -> Vector4<T>

Source§

fn zzzw(self) -> Vector4<T>

Source§

fn zzwx(self) -> Vector4<T>

Source§

fn zzwy(self) -> Vector4<T>

Source§

fn zzwz(self) -> Vector4<T>

Source§

fn zzww(self) -> Vector4<T>

Source§

fn zwxx(self) -> Vector4<T>

Source§

fn zwxy(self) -> Vector4<T>

Source§

fn zwxz(self) -> Vector4<T>

Source§

fn zwxw(self) -> Vector4<T>

Source§

fn zwyx(self) -> Vector4<T>

Source§

fn zwyy(self) -> Vector4<T>

Source§

fn zwyz(self) -> Vector4<T>

Source§

fn zwyw(self) -> Vector4<T>

Source§

fn zwzx(self) -> Vector4<T>

Source§

fn zwzy(self) -> Vector4<T>

Source§

fn zwzz(self) -> Vector4<T>

Source§

fn zwzw(self) -> Vector4<T>

Source§

fn zwwx(self) -> Vector4<T>

Source§

fn zwwy(self) -> Vector4<T>

Source§

fn zwwz(self) -> Vector4<T>

Source§

fn zwww(self) -> Vector4<T>

Source§

fn wxxx(self) -> Vector4<T>

Source§

fn wxxy(self) -> Vector4<T>

Source§

fn wxxz(self) -> Vector4<T>

Source§

fn wxxw(self) -> Vector4<T>

Source§

fn wxyx(self) -> Vector4<T>

Source§

fn wxyy(self) -> Vector4<T>

Source§

fn wxyz(self) -> Vector4<T>

Source§

fn wxyw(self) -> Vector4<T>

Source§

fn wxzx(self) -> Vector4<T>

Source§

fn wxzy(self) -> Vector4<T>

Source§

fn wxzz(self) -> Vector4<T>

Source§

fn wxzw(self) -> Vector4<T>

Source§

fn wxwx(self) -> Vector4<T>

Source§

fn wxwy(self) -> Vector4<T>

Source§

fn wxwz(self) -> Vector4<T>

Source§

fn wxww(self) -> Vector4<T>

Source§

fn wyxx(self) -> Vector4<T>

Source§

fn wyxy(self) -> Vector4<T>

Source§

fn wyxz(self) -> Vector4<T>

Source§

fn wyxw(self) -> Vector4<T>

Source§

fn wyyx(self) -> Vector4<T>

Source§

fn wyyy(self) -> Vector4<T>

Source§

fn wyyz(self) -> Vector4<T>

Source§

fn wyyw(self) -> Vector4<T>

Source§

fn wyzx(self) -> Vector4<T>

Source§

fn wyzy(self) -> Vector4<T>

Source§

fn wyzz(self) -> Vector4<T>

Source§

fn wyzw(self) -> Vector4<T>

Source§

fn wywx(self) -> Vector4<T>

Source§

fn wywy(self) -> Vector4<T>

Source§

fn wywz(self) -> Vector4<T>

Source§

fn wyww(self) -> Vector4<T>

Source§

fn wzxx(self) -> Vector4<T>

Source§

fn wzxy(self) -> Vector4<T>

Source§

fn wzxz(self) -> Vector4<T>

Source§

fn wzxw(self) -> Vector4<T>

Source§

fn wzyx(self) -> Vector4<T>

Source§

fn wzyy(self) -> Vector4<T>

Source§

fn wzyz(self) -> Vector4<T>

Source§

fn wzyw(self) -> Vector4<T>

Source§

fn wzzx(self) -> Vector4<T>

Source§

fn wzzy(self) -> Vector4<T>

Source§

fn wzzz(self) -> Vector4<T>

Source§

fn wzzw(self) -> Vector4<T>

Source§

fn wzwx(self) -> Vector4<T>

Source§

fn wzwy(self) -> Vector4<T>

Source§

fn wzwz(self) -> Vector4<T>

Source§

fn wzww(self) -> Vector4<T>

Source§

fn wwxx(self) -> Vector4<T>

Source§

fn wwxy(self) -> Vector4<T>

Source§

fn wwxz(self) -> Vector4<T>

Source§

fn wwxw(self) -> Vector4<T>

Source§

fn wwyx(self) -> Vector4<T>

Source§

fn wwyy(self) -> Vector4<T>

Source§

fn wwyz(self) -> Vector4<T>

Source§

fn wwyw(self) -> Vector4<T>

Source§

fn wwzx(self) -> Vector4<T>

Source§

fn wwzy(self) -> Vector4<T>

Source§

fn wwzz(self) -> Vector4<T>

Source§

fn wwzw(self) -> Vector4<T>

Source§

fn wwwx(self) -> Vector4<T>

Source§

fn wwwy(self) -> Vector4<T>

Source§

fn wwwz(self) -> Vector4<T>

Source§

fn wwww(self) -> Vector4<T>

Source§

impl<T: Unit> Zeroable for Vector4<T>

SAFETY: T::Scalar is Zeroable, and Vector4 is #[repr(C)].

Source§

fn zeroed() -> Self

Source§

impl<T: Unit> Copy for Vector4<T>

Source§

impl<T: Unit<Scalar: Eq>> Eq for Vector4<T>

Source§

impl<T: Unit> Pod for Vector4<T>

SAFETY: T::Scalar is Pod.

Auto Trait Implementations§

§

impl<U> Freeze for Vector4<U>
where <U as Unit>::Scalar: Freeze,

§

impl<U> RefUnwindSafe for Vector4<U>
where <U as Unit>::Scalar: RefUnwindSafe,

§

impl<U> Send for Vector4<U>

§

impl<U> Sync for Vector4<U>

§

impl<U> Unpin for Vector4<U>
where <U as Unit>::Scalar: Unpin,

§

impl<U> UnwindSafe for Vector4<U>
where <U as Unit>::Scalar: UnwindSafe,

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> CheckedBitPattern for T
where T: AnyBitPattern,

Source§

type Bits = T

Self must have the same layout as the specified Bits except for the possible invalid bit patterns being checked during is_valid_bit_pattern.
Source§

fn is_valid_bit_pattern(_bits: &T) -> bool

If this function returns true, then it must be valid to reinterpret bits as &Self.
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.
Source§

impl<T> AnyBitPattern for T
where T: Pod,

Source§

impl<'a, T> Facet<'a> for T
where T: 'a,

Source§

impl<T> NoUninit for T
where T: Pod,

Source§

impl<T, Rhs> NumAssignOps<Rhs> for T
where T: AddAssign<Rhs> + SubAssign<Rhs> + MulAssign<Rhs> + DivAssign<Rhs> + RemAssign<Rhs>,

Source§

impl<T, Rhs, Output> NumOps<Rhs, Output> for T
where T: Sub<Rhs, Output = Output> + Mul<Rhs, Output = Output> + Div<Rhs, Output = Output> + Add<Rhs, Output = Output> + Rem<Rhs, Output = Output>,

Source§

impl<T> PodValue for T
where T: Copy + Debug + Default + PartialEq + Pod + Send + Sync + Serializable + 'static,

Source§

impl<T, Base> RefNum<Base> for T
where T: NumOps<Base, Base> + for<'r> NumOps<&'r Base, Base>,

Source§

impl<T> Serializable for T

Source§

impl<T> WasmComponentType for T