Struct glam::f32::Vec4[][src]

#[repr(align(16))]
pub struct Vec4(_);
Expand description

A 4-dimensional vector.

This type uses 16 byte aligned SIMD vector type for storage on supported platforms.

Implementations

impl Vec4[src]

pub const ZERO: Self[src]

All zeroes.

pub const ONE: Self[src]

All ones.

pub const X: Self[src]

[1, 0, 0, 0]: a unit-length vector pointing along the positive X axis.

pub const Y: Self[src]

[0, 1, 0, 0]: a unit-length vector pointing along the positive Y axis.

pub const Z: Self[src]

[0, 0, 1, 0]: a unit-length vector pointing along the positive Z axis.

pub const W: Self[src]

[0, 0, 0, 1]: a unit-length vector pointing along the positive W axis.

pub const AXES: [Self; 4][src]

The unit axes.

pub fn new(x: f32, y: f32, z: f32, w: f32) -> Self[src]

Creates a new 4D vector.

pub fn truncate(self) -> Vec3[src]

Creates a Vec3 from the x, y and z elements of self, discarding w.

Truncation to Vec3 may also be performed by using self.xyz() or Vec3::from().

To truncate to Vec3A use Vec3A::from().

pub fn to_array(&self) -> [f32; 4][src]

[x, y, z, w]

pub fn splat(v: f32) -> Self[src]

Creates a vector with all elements set to v.

pub fn select(mask: BVec4A, if_true: Vec4, if_false: Vec4) -> Vec4[src]

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.

pub fn dot(self, other: Self) -> f32[src]

Computes the dot product of self and other.

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

Returns a vector containing the mininum values for each element of self and other.

In other words this computes [self.x.max(other.x), self.y.max(other.y), ..].

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

Returns a vector containing the maximum values for each element of self and other.

In other words this computes [self.x.max(other.x), self.y.max(other.y), ..].

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

Component-wise clamping of values, similar to f32::clamp.

Each element in min must be less-or-equal to the corresponing element in max.

If the glam-assert feature is enabled, the function will panic if the contract is not met, otherwise the behavior is undefined.

pub fn min_element(self) -> f32[src]

Returns the horizontal minimum of self.

In other words this computes min(x, y, ..).

pub fn max_element(self) -> f32[src]

Returns the horizontal maximum of self.

In other words this computes max(x, y, ..).

pub fn cmpeq(self, other: Self) -> BVec4A[src]

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

In other words, this computes [self.x == other.x, self.y == other.y, ..] for all elements.

pub fn cmpne(self, other: Self) -> BVec4A[src]

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

In other words this computes [self.x != other.x, self.y != other.y, ..] for all elements.

pub fn cmpge(self, other: Self) -> BVec4A[src]

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

In other words this computes [self.x >= other.x, self.y >= other.y, ..] for all elements.

pub fn cmpgt(self, other: Self) -> BVec4A[src]

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

In other words this computes [self.x > other.x, self.y > other.y, ..] for all elements.

pub fn cmple(self, other: Self) -> BVec4A[src]

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

In other words this computes [self.x <= other.x, self.y <= other.y, ..] for all elements.

pub fn cmplt(self, other: Self) -> BVec4A[src]

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

In other words this computes [self.x < other.x, self.y < other.y, ..] for all elements.

pub fn from_slice_unaligned(slice: &[f32]) -> Self[src]

Creates a vector from the first N values in slice.

Panics

Panics if slice is less than N elements long.

pub fn write_to_slice_unaligned(self, slice: &mut [f32])[src]

Writes the elements of self to the first N elements in slice.

Panics

Panics if slice is less than N elements long.

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

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

pub fn signum(self) -> Self[src]

Returns a vector with elements representing the sign of self.

  • 1.0 if the number is positive, +0.0 or INFINITY
  • -1.0 if the number is negative, -0.0 or NEG_INFINITY
  • NAN if the number is NAN

pub fn is_finite(self) -> bool[src]

Returns true if, and only if, all elements are finite. If any element is either NaN, positive or negative infinity, this will return false.

pub fn is_nan(self) -> bool[src]

Returns true if any elements are NaN.

pub fn is_nan_mask(self) -> BVec4A[src]

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

In other words, this computes [x.is_nan(), y.is_nan(), z.is_nan(), w.is_nan()].

pub fn length(self) -> f32[src]

Computes the length of self.

pub fn length_squared(self) -> f32[src]

Computes the squared length of self.

This is faster than length() as it avoids a square root operation.

pub fn length_recip(self) -> f32[src]

Computes 1.0 / length().

For valid results, self must not be of length zero.

pub fn distance(self, other: Self) -> f32[src]

Computes the Euclidean distance between two points in space.

pub fn distance_squared(self, other: Self) -> f32[src]

Compute the squared euclidean distance between two points in space.

pub fn normalize(self) -> Self[src]

Returns self normalized to length 1.0.

For valid results, self must not be of length zero, nor very close to zero.

See also Self::try_normalize and Self::normalize_or_zero.

pub fn try_normalize(self) -> Option<Self>[src]

Returns self normalized to length 1.0 if possible, else returns None.

In particular, if the input is zero (or very close to zero), or non-finite, the result of this operation will be None.

See also Self::normalize_or_zero.

pub fn normalize_or_zero(self) -> Self[src]

Returns self normalized to length 1.0 if possible, else returns zero.

In particular, if the input is zero (or very close to zero), or non-finite, the result of this operation will be zero.

See also Self::try_normalize.

pub fn is_normalized(self) -> bool[src]

Returns whether self is length 1.0 or not.

Uses a precision threshold of 1e-6.

pub fn round(self) -> Self[src]

Returns a vector containing the nearest integer to a number for each element of self. Round half-way cases away from 0.0.

pub fn floor(self) -> Self[src]

Returns a vector containing the largest integer less than or equal to a number for each element of self.

pub fn ceil(self) -> Self[src]

Returns a vector containing the smallest integer greater than or equal to a number for each element of self.

pub fn exp(self) -> Self[src]

Returns a vector containing e^self (the exponential function) for each element of self.

pub fn powf(self, n: f32) -> Self[src]

Returns a vector containing each element of self raised to the power of n.

pub fn recip(self) -> Self[src]

Returns a vector containing the reciprocal 1.0/n of each element of self.

pub fn lerp(self, other: Self, s: f32) -> Self[src]

Performs a linear interpolation between self and other based on the value s.

When s is 0.0, the result will be equal to self. When s is 1.0, the result will be equal to other.

pub fn abs_diff_eq(self, other: Self, max_abs_diff: f32) -> bool[src]

Returns true if the absolute difference of all elements between self and other is less than or equal to max_abs_diff.

This can be used to compare if two vectors contain similar elements. It works best when comparing with a known value. The max_abs_diff that should be used used depends on the values being compared against.

For more see comparing floating point numbers.

pub fn clamp_length(self, min: f32, max: f32) -> Self[src]

Returns a vector with a length no less than min and no more than max

pub fn clamp_length_max(self, max: f32) -> Self[src]

Returns a vector with a length no more than max

pub fn clamp_length_min(self, min: f32) -> Self[src]

Returns a vector with a length no less than min

pub fn as_f64(&self) -> DVec4[src]

Casts all elements of self to f64.

pub fn as_i32(&self) -> IVec4[src]

Casts all elements of self to i32.

pub fn as_u32(&self) -> UVec4[src]

Casts all elements of self to u32.

Trait Implementations

impl Add<Vec4> for Vec4[src]

type Output = Self

The resulting type after applying the + operator.

fn add(self, other: Self) -> Self[src]

Performs the + operation. Read more

impl AddAssign<Vec4> for Vec4[src]

fn add_assign(&mut self, other: Self)[src]

Performs the += operation. Read more

impl AsMut<[f32; 4]> for Vec4[src]

fn as_mut(&mut self) -> &mut [f32; 4][src]

Performs the conversion.

impl AsRef<[f32; 4]> for Vec4[src]

fn as_ref(&self) -> &[f32; 4][src]

Performs the conversion.

impl Clone for Vec4[src]

fn clone(&self) -> Vec4[src]

Returns a copy of the value. Read more

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

Performs copy-assignment from source. Read more

impl Debug for Vec4[src]

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

Formats the value using the given formatter. Read more

impl Default for Vec4[src]

fn default() -> Self[src]

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

impl Deref for Vec4[src]

type Target = XYZW<f32>

The resulting type after dereferencing.

fn deref(&self) -> &Self::Target[src]

Dereferences the value.

impl DerefMut for Vec4[src]

fn deref_mut(&mut self) -> &mut Self::Target[src]

Mutably dereferences the value.

impl Display for Vec4[src]

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

Formats the value using the given formatter. Read more

impl Div<Vec4> for Vec4[src]

type Output = Self

The resulting type after applying the / operator.

fn div(self, other: Vec4) -> Self[src]

Performs the / operation. Read more

impl Div<f32> for Vec4[src]

type Output = Self

The resulting type after applying the / operator.

fn div(self, other: f32) -> Self[src]

Performs the / operation. Read more

impl DivAssign<Vec4> for Vec4[src]

fn div_assign(&mut self, other: Vec4)[src]

Performs the /= operation. Read more

impl DivAssign<f32> for Vec4[src]

fn div_assign(&mut self, other: f32)[src]

Performs the /= operation. Read more

impl From<[f32; 4]> for Vec4[src]

fn from(a: [f32; 4]) -> Self[src]

Performs the conversion.

impl From<(Vec2, Vec2)> for Vec4[src]

fn from((v, u): (Vec2, Vec2)) -> Self[src]

Performs the conversion.

impl From<(Vec2, f32, f32)> for Vec4[src]

fn from((v, z, w): (Vec2, f32, f32)) -> Self[src]

Performs the conversion.

impl From<(Vec3, f32)> for Vec4[src]

fn from((v, w): (Vec3, f32)) -> Self[src]

Performs the conversion.

impl From<(f32, f32, f32, f32)> for Vec4[src]

fn from(t: (f32, f32, f32, f32)) -> Self[src]

Performs the conversion.

impl From<Quat> for Vec4[src]

fn from(q: Quat) -> Self[src]

Performs the conversion.

impl From<Vec4> for Vec3[src]

fn from(v: Vec4) -> Self[src]

Creates a 3D vector from the x, y and z elements of self, discarding w.

impl From<Vec4> for Vec2[src]

fn from(v: Vec4) -> Self[src]

Creates a 2D vector from the x and y elements of self, discarding z and w.

impl From<Vec4> for Vec3A[src]

fn from(v: Vec4) -> Self[src]

Creates a Vec3A from the x, y and z elements of self discarding w.

On architectures where SIMD is supported such as SSE2 on x86_64 this conversion is a noop.

impl From<__m128> for Vec4[src]

fn from(t: __m128) -> Self[src]

Performs the conversion.

impl Index<usize> for Vec4[src]

type Output = f32

The returned type after indexing.

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

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

impl IndexMut<usize> for Vec4[src]

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

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

impl Mul<Vec4> for Mat4[src]

type Output = Vec4

The resulting type after applying the * operator.

fn mul(self, other: Vec4) -> Vec4[src]

Performs the * operation. Read more

impl Mul<Vec4> for Vec4[src]

type Output = Self

The resulting type after applying the * operator.

fn mul(self, other: Vec4) -> Self[src]

Performs the * operation. Read more

impl Mul<f32> for Vec4[src]

type Output = Self

The resulting type after applying the * operator.

fn mul(self, other: f32) -> Self[src]

Performs the * operation. Read more

impl MulAssign<Vec4> for Vec4[src]

fn mul_assign(&mut self, other: Vec4)[src]

Performs the *= operation. Read more

impl MulAssign<f32> for Vec4[src]

fn mul_assign(&mut self, other: f32)[src]

Performs the *= operation. Read more

impl Neg for Vec4[src]

type Output = Self

The resulting type after applying the - operator.

fn neg(self) -> Self[src]

Performs the unary - operation. Read more

impl PartialEq<Vec4> for Vec4[src]

fn eq(&self, other: &Self) -> bool[src]

This method tests for self and other values to be equal, and is used by ==. Read more

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]

This method tests for !=.

impl<'a> Product<&'a Vec4> for Vec4[src]

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

Method which takes an iterator and generates Self from the elements by multiplying the items. Read more

impl Sub<Vec4> for Vec4[src]

type Output = Self

The resulting type after applying the - operator.

fn sub(self, other: Vec4) -> Self[src]

Performs the - operation. Read more

impl SubAssign<Vec4> for Vec4[src]

fn sub_assign(&mut self, other: Vec4)[src]

Performs the -= operation. Read more

impl<'a> Sum<&'a Vec4> for Vec4[src]

fn sum<I>(iter: I) -> Self where
    I: Iterator<Item = &'a Self>, 
[src]

Method which takes an iterator and generates Self from the elements by “summing up” the items. Read more

impl Vec4Swizzles for Vec4[src]

type Vec2 = Vec2

type Vec3 = Vec3

fn xxxx(self) -> Vec4[src]

fn xxxy(self) -> Vec4[src]

fn xxxz(self) -> Vec4[src]

fn xxxw(self) -> Vec4[src]

fn xxyx(self) -> Vec4[src]

fn xxyy(self) -> Vec4[src]

fn xxyz(self) -> Vec4[src]

fn xxyw(self) -> Vec4[src]

fn xxzx(self) -> Vec4[src]

fn xxzy(self) -> Vec4[src]

fn xxzz(self) -> Vec4[src]

fn xxzw(self) -> Vec4[src]

fn xxwx(self) -> Vec4[src]

fn xxwy(self) -> Vec4[src]

fn xxwz(self) -> Vec4[src]

fn xxww(self) -> Vec4[src]

fn xyxx(self) -> Vec4[src]

fn xyxy(self) -> Vec4[src]

fn xyxz(self) -> Vec4[src]

fn xyxw(self) -> Vec4[src]

fn xyyx(self) -> Vec4[src]

fn xyyy(self) -> Vec4[src]

fn xyyz(self) -> Vec4[src]

fn xyyw(self) -> Vec4[src]

fn xyzx(self) -> Vec4[src]

fn xyzy(self) -> Vec4[src]

fn xyzz(self) -> Vec4[src]

fn xywx(self) -> Vec4[src]

fn xywy(self) -> Vec4[src]

fn xywz(self) -> Vec4[src]

fn xyww(self) -> Vec4[src]

fn xzxx(self) -> Vec4[src]

fn xzxy(self) -> Vec4[src]

fn xzxz(self) -> Vec4[src]

fn xzxw(self) -> Vec4[src]

fn xzyx(self) -> Vec4[src]

fn xzyy(self) -> Vec4[src]

fn xzyz(self) -> Vec4[src]

fn xzyw(self) -> Vec4[src]

fn xzzx(self) -> Vec4[src]

fn xzzy(self) -> Vec4[src]

fn xzzz(self) -> Vec4[src]

fn xzzw(self) -> Vec4[src]

fn xzwx(self) -> Vec4[src]

fn xzwy(self) -> Vec4[src]

fn xzwz(self) -> Vec4[src]

fn xzww(self) -> Vec4[src]

fn xwxx(self) -> Vec4[src]

fn xwxy(self) -> Vec4[src]

fn xwxz(self) -> Vec4[src]

fn xwxw(self) -> Vec4[src]

fn xwyx(self) -> Vec4[src]

fn xwyy(self) -> Vec4[src]

fn xwyz(self) -> Vec4[src]

fn xwyw(self) -> Vec4[src]

fn xwzx(self) -> Vec4[src]

fn xwzy(self) -> Vec4[src]

fn xwzz(self) -> Vec4[src]

fn xwzw(self) -> Vec4[src]

fn xwwx(self) -> Vec4[src]

fn xwwy(self) -> Vec4[src]

fn xwwz(self) -> Vec4[src]

fn xwww(self) -> Vec4[src]

fn yxxx(self) -> Vec4[src]

fn yxxy(self) -> Vec4[src]

fn yxxz(self) -> Vec4[src]

fn yxxw(self) -> Vec4[src]

fn yxyx(self) -> Vec4[src]

fn yxyy(self) -> Vec4[src]

fn yxyz(self) -> Vec4[src]

fn yxyw(self) -> Vec4[src]

fn yxzx(self) -> Vec4[src]

fn yxzy(self) -> Vec4[src]

fn yxzz(self) -> Vec4[src]

fn yxzw(self) -> Vec4[src]

fn yxwx(self) -> Vec4[src]

fn yxwy(self) -> Vec4[src]

fn yxwz(self) -> Vec4[src]

fn yxww(self) -> Vec4[src]

fn yyxx(self) -> Vec4[src]

fn yyxy(self) -> Vec4[src]

fn yyxz(self) -> Vec4[src]

fn yyxw(self) -> Vec4[src]

fn yyyx(self) -> Vec4[src]

fn yyyy(self) -> Vec4[src]

fn yyyz(self) -> Vec4[src]

fn yyyw(self) -> Vec4[src]

fn yyzx(self) -> Vec4[src]

fn yyzy(self) -> Vec4[src]

fn yyzz(self) -> Vec4[src]

fn yyzw(self) -> Vec4[src]

fn yywx(self) -> Vec4[src]

fn yywy(self) -> Vec4[src]

fn yywz(self) -> Vec4[src]

fn yyww(self) -> Vec4[src]

fn yzxx(self) -> Vec4[src]

fn yzxy(self) -> Vec4[src]

fn yzxz(self) -> Vec4[src]

fn yzxw(self) -> Vec4[src]

fn yzyx(self) -> Vec4[src]

fn yzyy(self) -> Vec4[src]

fn yzyz(self) -> Vec4[src]

fn yzyw(self) -> Vec4[src]

fn yzzx(self) -> Vec4[src]

fn yzzy(self) -> Vec4[src]

fn yzzz(self) -> Vec4[src]

fn yzzw(self) -> Vec4[src]

fn yzwx(self) -> Vec4[src]

fn yzwy(self) -> Vec4[src]

fn yzwz(self) -> Vec4[src]

fn yzww(self) -> Vec4[src]

fn ywxx(self) -> Vec4[src]

fn ywxy(self) -> Vec4[src]

fn ywxz(self) -> Vec4[src]

fn ywxw(self) -> Vec4[src]

fn ywyx(self) -> Vec4[src]

fn ywyy(self) -> Vec4[src]

fn ywyz(self) -> Vec4[src]

fn ywyw(self) -> Vec4[src]

fn ywzx(self) -> Vec4[src]

fn ywzy(self) -> Vec4[src]

fn ywzz(self) -> Vec4[src]

fn ywzw(self) -> Vec4[src]

fn ywwx(self) -> Vec4[src]

fn ywwy(self) -> Vec4[src]

fn ywwz(self) -> Vec4[src]

fn ywww(self) -> Vec4[src]

fn zxxx(self) -> Vec4[src]

fn zxxy(self) -> Vec4[src]

fn zxxz(self) -> Vec4[src]

fn zxxw(self) -> Vec4[src]

fn zxyx(self) -> Vec4[src]

fn zxyy(self) -> Vec4[src]

fn zxyz(self) -> Vec4[src]

fn zxyw(self) -> Vec4[src]

fn zxzx(self) -> Vec4[src]

fn zxzy(self) -> Vec4[src]

fn zxzz(self) -> Vec4[src]

fn zxzw(self) -> Vec4[src]

fn zxwx(self) -> Vec4[src]

fn zxwy(self) -> Vec4[src]

fn zxwz(self) -> Vec4[src]

fn zxww(self) -> Vec4[src]

fn zyxx(self) -> Vec4[src]

fn zyxy(self) -> Vec4[src]

fn zyxz(self) -> Vec4[src]

fn zyxw(self) -> Vec4[src]

fn zyyx(self) -> Vec4[src]

fn zyyy(self) -> Vec4[src]

fn zyyz(self) -> Vec4[src]

fn zyyw(self) -> Vec4[src]

fn zyzx(self) -> Vec4[src]

fn zyzy(self) -> Vec4[src]

fn zyzz(self) -> Vec4[src]

fn zyzw(self) -> Vec4[src]

fn zywx(self) -> Vec4[src]

fn zywy(self) -> Vec4[src]

fn zywz(self) -> Vec4[src]

fn zyww(self) -> Vec4[src]

fn zzxx(self) -> Vec4[src]

fn zzxy(self) -> Vec4[src]

fn zzxz(self) -> Vec4[src]

fn zzxw(self) -> Vec4[src]

fn zzyx(self) -> Vec4[src]

fn zzyy(self) -> Vec4[src]

fn zzyz(self) -> Vec4[src]

fn zzyw(self) -> Vec4[src]

fn zzzx(self) -> Vec4[src]

fn zzzy(self) -> Vec4[src]

fn zzzz(self) -> Vec4[src]

fn zzzw(self) -> Vec4[src]

fn zzwx(self) -> Vec4[src]

fn zzwy(self) -> Vec4[src]

fn zzwz(self) -> Vec4[src]

fn zzww(self) -> Vec4[src]

fn zwxx(self) -> Vec4[src]

fn zwxy(self) -> Vec4[src]

fn zwxz(self) -> Vec4[src]

fn zwxw(self) -> Vec4[src]

fn zwyx(self) -> Vec4[src]

fn zwyy(self) -> Vec4[src]

fn zwyz(self) -> Vec4[src]

fn zwyw(self) -> Vec4[src]

fn zwzx(self) -> Vec4[src]

fn zwzy(self) -> Vec4[src]

fn zwzz(self) -> Vec4[src]

fn zwzw(self) -> Vec4[src]

fn zwwx(self) -> Vec4[src]

fn zwwy(self) -> Vec4[src]

fn zwwz(self) -> Vec4[src]

fn zwww(self) -> Vec4[src]

fn wxxx(self) -> Vec4[src]

fn wxxy(self) -> Vec4[src]

fn wxxz(self) -> Vec4[src]

fn wxxw(self) -> Vec4[src]

fn wxyx(self) -> Vec4[src]

fn wxyy(self) -> Vec4[src]

fn wxyz(self) -> Vec4[src]

fn wxyw(self) -> Vec4[src]

fn wxzx(self) -> Vec4[src]

fn wxzy(self) -> Vec4[src]

fn wxzz(self) -> Vec4[src]

fn wxzw(self) -> Vec4[src]

fn wxwx(self) -> Vec4[src]

fn wxwy(self) -> Vec4[src]

fn wxwz(self) -> Vec4[src]

fn wxww(self) -> Vec4[src]

fn wyxx(self) -> Vec4[src]

fn wyxy(self) -> Vec4[src]

fn wyxz(self) -> Vec4[src]

fn wyxw(self) -> Vec4[src]

fn wyyx(self) -> Vec4[src]

fn wyyy(self) -> Vec4[src]

fn wyyz(self) -> Vec4[src]

fn wyyw(self) -> Vec4[src]

fn wyzx(self) -> Vec4[src]

fn wyzy(self) -> Vec4[src]

fn wyzz(self) -> Vec4[src]

fn wyzw(self) -> Vec4[src]

fn wywx(self) -> Vec4[src]

fn wywy(self) -> Vec4[src]

fn wywz(self) -> Vec4[src]

fn wyww(self) -> Vec4[src]

fn wzxx(self) -> Vec4[src]

fn wzxy(self) -> Vec4[src]

fn wzxz(self) -> Vec4[src]

fn wzxw(self) -> Vec4[src]

fn wzyx(self) -> Vec4[src]

fn wzyy(self) -> Vec4[src]

fn wzyz(self) -> Vec4[src]

fn wzyw(self) -> Vec4[src]

fn wzzx(self) -> Vec4[src]

fn wzzy(self) -> Vec4[src]

fn wzzz(self) -> Vec4[src]

fn wzzw(self) -> Vec4[src]

fn wzwx(self) -> Vec4[src]

fn wzwy(self) -> Vec4[src]

fn wzwz(self) -> Vec4[src]

fn wzww(self) -> Vec4[src]

fn wwxx(self) -> Vec4[src]

fn wwxy(self) -> Vec4[src]

fn wwxz(self) -> Vec4[src]

fn wwxw(self) -> Vec4[src]

fn wwyx(self) -> Vec4[src]

fn wwyy(self) -> Vec4[src]

fn wwyz(self) -> Vec4[src]

fn wwyw(self) -> Vec4[src]

fn wwzx(self) -> Vec4[src]

fn wwzy(self) -> Vec4[src]

fn wwzz(self) -> Vec4[src]

fn wwzw(self) -> Vec4[src]

fn wwwx(self) -> Vec4[src]

fn wwwy(self) -> Vec4[src]

fn wwwz(self) -> Vec4[src]

fn wwww(self) -> Vec4[src]

fn xxx(self) -> Vec3[src]

fn xxy(self) -> Vec3[src]

fn xxz(self) -> Vec3[src]

fn xxw(self) -> Vec3[src]

fn xyx(self) -> Vec3[src]

fn xyy(self) -> Vec3[src]

fn xyz(self) -> Vec3[src]

fn xyw(self) -> Vec3[src]

fn xzx(self) -> Vec3[src]

fn xzy(self) -> Vec3[src]

fn xzz(self) -> Vec3[src]

fn xzw(self) -> Vec3[src]

fn xwx(self) -> Vec3[src]

fn xwy(self) -> Vec3[src]

fn xwz(self) -> Vec3[src]

fn xww(self) -> Vec3[src]

fn yxx(self) -> Vec3[src]

fn yxy(self) -> Vec3[src]

fn yxz(self) -> Vec3[src]

fn yxw(self) -> Vec3[src]

fn yyx(self) -> Vec3[src]

fn yyy(self) -> Vec3[src]

fn yyz(self) -> Vec3[src]

fn yyw(self) -> Vec3[src]

fn yzx(self) -> Vec3[src]

fn yzy(self) -> Vec3[src]

fn yzz(self) -> Vec3[src]

fn yzw(self) -> Vec3[src]

fn ywx(self) -> Vec3[src]

fn ywy(self) -> Vec3[src]

fn ywz(self) -> Vec3[src]

fn yww(self) -> Vec3[src]

fn zxx(self) -> Vec3[src]

fn zxy(self) -> Vec3[src]

fn zxz(self) -> Vec3[src]

fn zxw(self) -> Vec3[src]

fn zyx(self) -> Vec3[src]

fn zyy(self) -> Vec3[src]

fn zyz(self) -> Vec3[src]

fn zyw(self) -> Vec3[src]

fn zzx(self) -> Vec3[src]

fn zzy(self) -> Vec3[src]

fn zzz(self) -> Vec3[src]

fn zzw(self) -> Vec3[src]

fn zwx(self) -> Vec3[src]

fn zwy(self) -> Vec3[src]

fn zwz(self) -> Vec3[src]

fn zww(self) -> Vec3[src]

fn wxx(self) -> Vec3[src]

fn wxy(self) -> Vec3[src]

fn wxz(self) -> Vec3[src]

fn wxw(self) -> Vec3[src]

fn wyx(self) -> Vec3[src]

fn wyy(self) -> Vec3[src]

fn wyz(self) -> Vec3[src]

fn wyw(self) -> Vec3[src]

fn wzx(self) -> Vec3[src]

fn wzy(self) -> Vec3[src]

fn wzz(self) -> Vec3[src]

fn wzw(self) -> Vec3[src]

fn wwx(self) -> Vec3[src]

fn wwy(self) -> Vec3[src]

fn wwz(self) -> Vec3[src]

fn www(self) -> Vec3[src]

fn xx(self) -> Vec2[src]

fn xy(self) -> Vec2[src]

fn xz(self) -> Vec2[src]

fn xw(self) -> Vec2[src]

fn yx(self) -> Vec2[src]

fn yy(self) -> Vec2[src]

fn yz(self) -> Vec2[src]

fn yw(self) -> Vec2[src]

fn zx(self) -> Vec2[src]

fn zy(self) -> Vec2[src]

fn zz(self) -> Vec2[src]

fn zw(self) -> Vec2[src]

fn wx(self) -> Vec2[src]

fn wy(self) -> Vec2[src]

fn wz(self) -> Vec2[src]

fn ww(self) -> Vec2[src]

fn xyzw(self) -> Self[src]

impl Copy for Vec4[src]

Auto Trait Implementations

impl RefUnwindSafe for Vec4

impl Send for Vec4

impl Sync for Vec4

impl Unpin for Vec4

impl UnwindSafe for Vec4

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

impl<T> From<T> for T[src]

pub fn from(t: T) -> T[src]

Performs the conversion.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

pub fn into(self) -> U[src]

Performs the conversion.

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

pub fn to_owned(&self) -> T[src]

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

pub fn clone_into(&self, target: &mut T)[src]

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

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

impl<T> ToString for T where
    T: Display + ?Sized
[src]

pub default fn to_string(&self) -> String[src]

Converts the given value to a String. Read more

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

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

Performs the conversion.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

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

Performs the conversion.