[−][src]Struct glam::Vec4
A 4-dimensional vector.
This type is 16 byte aligned unless the scalar-math feature is enabed.
Fields
x: f32y: f32z: f32w: f32Implementations
impl Vec4[src]
pub fn new(x: f32, y: f32, z: f32, w: f32) -> Self[src]
Creates a new Vec4.
pub const fn zero() -> Self[src]
Creates a Vec4 with all elements set to 0.0.
pub const fn one() -> Self[src]
Creates a Vec4 with all elements set to 1.0.
pub const fn unit_x() -> Self[src]
Creates a Vec4 with values [x: 1.0, y: 0.0, z: 0.0, w: 0.0].
pub const fn unit_y() -> Self[src]
Creates a Vec4 with values [x: 0.0, y: 1.0, z: 0.0, w: 0.0].
pub const fn unit_z() -> Self[src]
Creates a Vec4 with values [x: 0.0, y: 0.0, z: 1.0, w: 0.0].
pub const fn unit_w() -> Self[src]
Creates a Vec4 with values [x: 0.0, y: 0.0, z: 0.0, w: 1.0].
pub fn splat(v: f32) -> Self[src]
Creates a Vec4 with all elements set to v.
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 dot(self, other: Self) -> f32[src]
Computes the 4D dot product of self and other.
pub fn length(self) -> f32[src]
Computes the 4D length of self.
pub fn length_squared(self) -> f32[src]
Computes the squared 4D length of self.
This is generally faster than Vec4::length() as it avoids a square
root operation.
pub fn length_recip(self) -> f32[src]
Computes 1.0 / Vec4::length().
For valid results, self must not be of length zero.
pub fn distance(self, other: Vec4) -> f32[src]
Computes the Euclidean distance between two points in space.
pub fn distance_squared(self, other: Vec4) -> 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.
pub fn min(self, other: Self) -> Self[src]
Returns the vertical minimum of self and other.
In other words, this computes
[x: min(x1, x2), y: min(y1, y2), z: min(z1, z2), w: min(w1, w2)],
taking the minimum of each element individually.
pub fn max(self, other: Self) -> Self[src]
Returns the vertical maximum of self and other.
In other words, this computes
[x: max(x1, x2), y: max(y1, y2), z: max(z1, z2), w: max(w1, w2)],
taking the maximum of each element individually.
pub fn min_element(self) -> f32[src]
Returns the horizontal minimum of self's elements.
In other words, this computes min(x, y, z, w).
pub fn max_element(self) -> f32[src]
Returns the horizontal maximum of self's elements.
In other words, this computes max(x, y, z, w).
pub fn cmpeq(self, other: Self) -> Vec4Mask[src]
Performs a vertical == comparison between self and other,
returning a Vec4Mask of the results.
In other words, this computes [x1 == x2, y1 == y2, z1 == z2, w1 == w2].
pub fn cmpne(self, other: Self) -> Vec4Mask[src]
Performs a vertical != comparison between self and other,
returning a Vec4Mask of the results.
In other words, this computes [x1 != x2, y1 != y2, z1 != z2, w1 != w2].
pub fn cmpge(self, other: Self) -> Vec4Mask[src]
Performs a vertical >= comparison between self and other,
returning a Vec4Mask of the results.
In other words, this computes [x1 >= x2, y1 >= y2, z1 >= z2, w1 >= w2].
pub fn cmpgt(self, other: Self) -> Vec4Mask[src]
Performs a vertical > comparison between self and other,
returning a Vec4Mask of the results.
In other words, this computes [x1 > x2, y1 > y2, z1 > z2, w1 > w2].
pub fn cmple(self, other: Self) -> Vec4Mask[src]
Performs a vertical <= comparison between self and other,
returning a Vec4Mask of the results.
In other words, this computes [x1 <= x2, y1 <= y2, z1 <= z2, w1 <= w2].
pub fn cmplt(self, other: Self) -> Vec4Mask[src]
Performs a vertical < comparison between self and other,
returning a Vec4Mask of the results.
In other words, this computes [x1 < x2, y1 < y2, z1 < z2, w1 < w2].
pub fn from_slice_unaligned(slice: &[f32]) -> Self[src]
Creates a Vec4 from the first four values in slice.
Panics
Panics if slice is less than four elements long.
pub fn write_to_slice_unaligned(self, slice: &mut [f32])[src]
Writes the elements of self to the first four elements in slice.
Panics
Panics if slice is less than four elements long.
pub fn abs(self) -> Self[src]
Returns a Vec4 containing the absolute value of each element of self.
pub fn round(self) -> Self[src]
Returns a Vec4 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 Vec4 containing the largest integer less than or equal to a number for each
element of self.
pub fn ceil(self) -> Self[src]
Returns a Vec4 containing the smallest integer greater than or equal to a number for each
element of self.
pub fn exp(self) -> Self[src]
Returns a Vec4 containing e^self (the exponential function) for each element of self.
pub fn powf(self, n: f32) -> Self[src]
Returns a Vec4 containing each element of self raised to the power of n.
pub fn is_nan_mask(self) -> Vec4Mask[src]
Performs is_nan on each element of self, returning a Vec4Mask of the results.
In other words, this computes [x.is_nan(), y.is_nan(), z.is_nan(), w.is_nan()].
pub fn signum(self) -> Self[src]
Returns a Vec4 with elements representing the sign of self.
1.0if the number is positive,+0.0orINFINITY-1.0if the number is negative,-0.0orNEG_INFINITYNANif the number isNAN
pub fn recip(self) -> Self[src]
Returns a Vec4 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 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_normalized(self) -> bool[src]
Returns whether self is length 1.0 or not.
Uses a precision threshold of 1e-6.
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 Vec4's 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 on floating point comparisons see https://randomascii.wordpress.com/2012/02/25/comparing-floating-point-numbers-2012-edition/
Trait Implementations
impl Add<Vec4> for Vec4[src]
type Output = Self
The resulting type after applying the + operator.
pub fn add(self, other: Self) -> Self[src]
impl AddAssign<Vec4> for Vec4[src]
pub fn add_assign(&mut self, other: Self)[src]
impl AsMut<[f32; 4]> for Vec4[src]
impl AsRef<[f32; 4]> for Vec4[src]
impl Clone for Vec4[src]
impl Copy for Vec4[src]
impl Debug for Vec4[src]
impl Default for Vec4[src]
impl Deref for Vec4[src]
impl DerefMut for Vec4[src]
impl Display for Vec4[src]
impl Div<Vec4> for Vec4[src]
type Output = Self
The resulting type after applying the / operator.
pub fn div(self, other: Self) -> Self[src]
impl Div<Vec4> for f32[src]
type Output = Vec4
The resulting type after applying the / operator.
pub fn div(self, other: Vec4) -> Vec4[src]
impl Div<f32> for Vec4[src]
type Output = Self
The resulting type after applying the / operator.
pub fn div(self, other: f32) -> Self[src]
impl DivAssign<Vec4> for Vec4[src]
pub fn div_assign(&mut self, other: Self)[src]
impl DivAssign<f32> for Vec4[src]
pub fn div_assign(&mut self, other: f32)[src]
impl From<[f32; 4]> for Vec4[src]
impl From<(f32, f32, f32, f32)> for Vec4[src]
impl From<Quat> for Vec4[src]
impl From<Vec4> for Quat[src]
impl From<Vec4> for __m128[src]
impl From<Vec4> for (f32, f32, f32, f32)[src]
impl From<Vec4> for [f32; 4][src]
impl From<Vec4> for Vec3A[src]
pub fn from(v: Vec4) -> Self[src]
Creates a Vec3 from the x, y and z elements of the Vec4, discarding z.
On architectures where SIMD is supported such as SSE2 on x86_64 this conversion is a noop.
impl From<Vec4> for Vec3[src]
pub fn from(v: Vec4) -> Self[src]
Creates a Vec3 from the x, y and z elements of the Vec4, discarding z.
impl From<Vec4> for Vec2[src]
pub fn from(v: Vec4) -> Self[src]
Creates a Vec2 from the x and y elements of the Vec4, discarding z.
impl From<__m128> for Vec4[src]
impl Index<usize> for Vec4[src]
type Output = f32
The returned type after indexing.
pub fn index(&self, index: usize) -> &Self::Output[src]
impl IndexMut<usize> for Vec4[src]
impl Mul<Vec4> for Mat4[src]
type Output = Vec4
The resulting type after applying the * operator.
pub fn mul(self, other: Vec4) -> Vec4[src]
impl Mul<Vec4> for Vec4[src]
type Output = Self
The resulting type after applying the * operator.
pub fn mul(self, other: Self) -> Self[src]
impl Mul<Vec4> for f32[src]
type Output = Vec4
The resulting type after applying the * operator.
pub fn mul(self, other: Vec4) -> Vec4[src]
impl Mul<f32> for Vec4[src]
type Output = Self
The resulting type after applying the * operator.
pub fn mul(self, other: f32) -> Self[src]
impl MulAssign<Vec4> for Vec4[src]
pub fn mul_assign(&mut self, other: Self)[src]
impl MulAssign<f32> for Vec4[src]
pub fn mul_assign(&mut self, other: f32)[src]
impl Neg for Vec4[src]
impl PartialEq<Vec4> for Vec4[src]
impl PartialOrd<Vec4> for Vec4[src]
pub fn partial_cmp(&self, other: &Vec4) -> Option<Ordering>[src]
pub fn lt(&self, other: &Vec4) -> bool[src]
pub fn le(&self, other: &Vec4) -> bool[src]
pub fn gt(&self, other: &Vec4) -> bool[src]
pub fn ge(&self, other: &Vec4) -> bool[src]
impl<'a> Product<&'a Vec4> for Vec4[src]
impl StructuralPartialEq for Vec4[src]
impl Sub<Vec4> for Vec4[src]
type Output = Self
The resulting type after applying the - operator.
pub fn sub(self, other: Self) -> Self[src]
impl SubAssign<Vec4> for Vec4[src]
pub fn sub_assign(&mut self, other: Self)[src]
impl<'a> Sum<&'a Vec4> for Vec4[src]
impl Vec4Swizzles for Vec4[src]
pub fn xxxx(self) -> Vec4[src]
pub fn xxxy(self) -> Vec4[src]
pub fn xxxz(self) -> Vec4[src]
pub fn xxxw(self) -> Vec4[src]
pub fn xxyx(self) -> Vec4[src]
pub fn xxyy(self) -> Vec4[src]
pub fn xxyz(self) -> Vec4[src]
pub fn xxyw(self) -> Vec4[src]
pub fn xxzx(self) -> Vec4[src]
pub fn xxzy(self) -> Vec4[src]
pub fn xxzz(self) -> Vec4[src]
pub fn xxzw(self) -> Vec4[src]
pub fn xxwx(self) -> Vec4[src]
pub fn xxwy(self) -> Vec4[src]
pub fn xxwz(self) -> Vec4[src]
pub fn xxww(self) -> Vec4[src]
pub fn xyxx(self) -> Vec4[src]
pub fn xyxy(self) -> Vec4[src]
pub fn xyxz(self) -> Vec4[src]
pub fn xyxw(self) -> Vec4[src]
pub fn xyyx(self) -> Vec4[src]
pub fn xyyy(self) -> Vec4[src]
pub fn xyyz(self) -> Vec4[src]
pub fn xyyw(self) -> Vec4[src]
pub fn xyzx(self) -> Vec4[src]
pub fn xyzy(self) -> Vec4[src]
pub fn xyzz(self) -> Vec4[src]
pub fn xywx(self) -> Vec4[src]
pub fn xywy(self) -> Vec4[src]
pub fn xywz(self) -> Vec4[src]
pub fn xyww(self) -> Vec4[src]
pub fn xzxx(self) -> Vec4[src]
pub fn xzxy(self) -> Vec4[src]
pub fn xzxz(self) -> Vec4[src]
pub fn xzxw(self) -> Vec4[src]
pub fn xzyx(self) -> Vec4[src]
pub fn xzyy(self) -> Vec4[src]
pub fn xzyz(self) -> Vec4[src]
pub fn xzyw(self) -> Vec4[src]
pub fn xzzx(self) -> Vec4[src]
pub fn xzzy(self) -> Vec4[src]
pub fn xzzz(self) -> Vec4[src]
pub fn xzzw(self) -> Vec4[src]
pub fn xzwx(self) -> Vec4[src]
pub fn xzwy(self) -> Vec4[src]
pub fn xzwz(self) -> Vec4[src]
pub fn xzww(self) -> Vec4[src]
pub fn xwxx(self) -> Vec4[src]
pub fn xwxy(self) -> Vec4[src]
pub fn xwxz(self) -> Vec4[src]
pub fn xwxw(self) -> Vec4[src]
pub fn xwyx(self) -> Vec4[src]
pub fn xwyy(self) -> Vec4[src]
pub fn xwyz(self) -> Vec4[src]
pub fn xwyw(self) -> Vec4[src]
pub fn xwzx(self) -> Vec4[src]
pub fn xwzy(self) -> Vec4[src]
pub fn xwzz(self) -> Vec4[src]
pub fn xwzw(self) -> Vec4[src]
pub fn xwwx(self) -> Vec4[src]
pub fn xwwy(self) -> Vec4[src]
pub fn xwwz(self) -> Vec4[src]
pub fn xwww(self) -> Vec4[src]
pub fn yxxx(self) -> Vec4[src]
pub fn yxxy(self) -> Vec4[src]
pub fn yxxz(self) -> Vec4[src]
pub fn yxxw(self) -> Vec4[src]
pub fn yxyx(self) -> Vec4[src]
pub fn yxyy(self) -> Vec4[src]
pub fn yxyz(self) -> Vec4[src]
pub fn yxyw(self) -> Vec4[src]
pub fn yxzx(self) -> Vec4[src]
pub fn yxzy(self) -> Vec4[src]
pub fn yxzz(self) -> Vec4[src]
pub fn yxzw(self) -> Vec4[src]
pub fn yxwx(self) -> Vec4[src]
pub fn yxwy(self) -> Vec4[src]
pub fn yxwz(self) -> Vec4[src]
pub fn yxww(self) -> Vec4[src]
pub fn yyxx(self) -> Vec4[src]
pub fn yyxy(self) -> Vec4[src]
pub fn yyxz(self) -> Vec4[src]
pub fn yyxw(self) -> Vec4[src]
pub fn yyyx(self) -> Vec4[src]
pub fn yyyy(self) -> Vec4[src]
pub fn yyyz(self) -> Vec4[src]
pub fn yyyw(self) -> Vec4[src]
pub fn yyzx(self) -> Vec4[src]
pub fn yyzy(self) -> Vec4[src]
pub fn yyzz(self) -> Vec4[src]
pub fn yyzw(self) -> Vec4[src]
pub fn yywx(self) -> Vec4[src]
pub fn yywy(self) -> Vec4[src]
pub fn yywz(self) -> Vec4[src]
pub fn yyww(self) -> Vec4[src]
pub fn yzxx(self) -> Vec4[src]
pub fn yzxy(self) -> Vec4[src]
pub fn yzxz(self) -> Vec4[src]
pub fn yzxw(self) -> Vec4[src]
pub fn yzyx(self) -> Vec4[src]
pub fn yzyy(self) -> Vec4[src]
pub fn yzyz(self) -> Vec4[src]
pub fn yzyw(self) -> Vec4[src]
pub fn yzzx(self) -> Vec4[src]
pub fn yzzy(self) -> Vec4[src]
pub fn yzzz(self) -> Vec4[src]
pub fn yzzw(self) -> Vec4[src]
pub fn yzwx(self) -> Vec4[src]
pub fn yzwy(self) -> Vec4[src]
pub fn yzwz(self) -> Vec4[src]
pub fn yzww(self) -> Vec4[src]
pub fn ywxx(self) -> Vec4[src]
pub fn ywxy(self) -> Vec4[src]
pub fn ywxz(self) -> Vec4[src]
pub fn ywxw(self) -> Vec4[src]
pub fn ywyx(self) -> Vec4[src]
pub fn ywyy(self) -> Vec4[src]
pub fn ywyz(self) -> Vec4[src]
pub fn ywyw(self) -> Vec4[src]
pub fn ywzx(self) -> Vec4[src]
pub fn ywzy(self) -> Vec4[src]
pub fn ywzz(self) -> Vec4[src]
pub fn ywzw(self) -> Vec4[src]
pub fn ywwx(self) -> Vec4[src]
pub fn ywwy(self) -> Vec4[src]
pub fn ywwz(self) -> Vec4[src]
pub fn ywww(self) -> Vec4[src]
pub fn zxxx(self) -> Vec4[src]
pub fn zxxy(self) -> Vec4[src]
pub fn zxxz(self) -> Vec4[src]
pub fn zxxw(self) -> Vec4[src]
pub fn zxyx(self) -> Vec4[src]
pub fn zxyy(self) -> Vec4[src]
pub fn zxyz(self) -> Vec4[src]
pub fn zxyw(self) -> Vec4[src]
pub fn zxzx(self) -> Vec4[src]
pub fn zxzy(self) -> Vec4[src]
pub fn zxzz(self) -> Vec4[src]
pub fn zxzw(self) -> Vec4[src]
pub fn zxwx(self) -> Vec4[src]
pub fn zxwy(self) -> Vec4[src]
pub fn zxwz(self) -> Vec4[src]
pub fn zxww(self) -> Vec4[src]
pub fn zyxx(self) -> Vec4[src]
pub fn zyxy(self) -> Vec4[src]
pub fn zyxz(self) -> Vec4[src]
pub fn zyxw(self) -> Vec4[src]
pub fn zyyx(self) -> Vec4[src]
pub fn zyyy(self) -> Vec4[src]
pub fn zyyz(self) -> Vec4[src]
pub fn zyyw(self) -> Vec4[src]
pub fn zyzx(self) -> Vec4[src]
pub fn zyzy(self) -> Vec4[src]
pub fn zyzz(self) -> Vec4[src]
pub fn zyzw(self) -> Vec4[src]
pub fn zywx(self) -> Vec4[src]
pub fn zywy(self) -> Vec4[src]
pub fn zywz(self) -> Vec4[src]
pub fn zyww(self) -> Vec4[src]
pub fn zzxx(self) -> Vec4[src]
pub fn zzxy(self) -> Vec4[src]
pub fn zzxz(self) -> Vec4[src]
pub fn zzxw(self) -> Vec4[src]
pub fn zzyx(self) -> Vec4[src]
pub fn zzyy(self) -> Vec4[src]
pub fn zzyz(self) -> Vec4[src]
pub fn zzyw(self) -> Vec4[src]
pub fn zzzx(self) -> Vec4[src]
pub fn zzzy(self) -> Vec4[src]
pub fn zzzz(self) -> Vec4[src]
pub fn zzzw(self) -> Vec4[src]
pub fn zzwx(self) -> Vec4[src]
pub fn zzwy(self) -> Vec4[src]
pub fn zzwz(self) -> Vec4[src]
pub fn zzww(self) -> Vec4[src]
pub fn zwxx(self) -> Vec4[src]
pub fn zwxy(self) -> Vec4[src]
pub fn zwxz(self) -> Vec4[src]
pub fn zwxw(self) -> Vec4[src]
pub fn zwyx(self) -> Vec4[src]
pub fn zwyy(self) -> Vec4[src]
pub fn zwyz(self) -> Vec4[src]
pub fn zwyw(self) -> Vec4[src]
pub fn zwzx(self) -> Vec4[src]
pub fn zwzy(self) -> Vec4[src]
pub fn zwzz(self) -> Vec4[src]
pub fn zwzw(self) -> Vec4[src]
pub fn zwwx(self) -> Vec4[src]
pub fn zwwy(self) -> Vec4[src]
pub fn zwwz(self) -> Vec4[src]
pub fn zwww(self) -> Vec4[src]
pub fn wxxx(self) -> Vec4[src]
pub fn wxxy(self) -> Vec4[src]
pub fn wxxz(self) -> Vec4[src]
pub fn wxxw(self) -> Vec4[src]
pub fn wxyx(self) -> Vec4[src]
pub fn wxyy(self) -> Vec4[src]
pub fn wxyz(self) -> Vec4[src]
pub fn wxyw(self) -> Vec4[src]
pub fn wxzx(self) -> Vec4[src]
pub fn wxzy(self) -> Vec4[src]
pub fn wxzz(self) -> Vec4[src]
pub fn wxzw(self) -> Vec4[src]
pub fn wxwx(self) -> Vec4[src]
pub fn wxwy(self) -> Vec4[src]
pub fn wxwz(self) -> Vec4[src]
pub fn wxww(self) -> Vec4[src]
pub fn wyxx(self) -> Vec4[src]
pub fn wyxy(self) -> Vec4[src]
pub fn wyxz(self) -> Vec4[src]
pub fn wyxw(self) -> Vec4[src]
pub fn wyyx(self) -> Vec4[src]
pub fn wyyy(self) -> Vec4[src]
pub fn wyyz(self) -> Vec4[src]
pub fn wyyw(self) -> Vec4[src]
pub fn wyzx(self) -> Vec4[src]
pub fn wyzy(self) -> Vec4[src]
pub fn wyzz(self) -> Vec4[src]
pub fn wyzw(self) -> Vec4[src]
pub fn wywx(self) -> Vec4[src]
pub fn wywy(self) -> Vec4[src]
pub fn wywz(self) -> Vec4[src]
pub fn wyww(self) -> Vec4[src]
pub fn wzxx(self) -> Vec4[src]
pub fn wzxy(self) -> Vec4[src]
pub fn wzxz(self) -> Vec4[src]
pub fn wzxw(self) -> Vec4[src]
pub fn wzyx(self) -> Vec4[src]
pub fn wzyy(self) -> Vec4[src]
pub fn wzyz(self) -> Vec4[src]
pub fn wzyw(self) -> Vec4[src]
pub fn wzzx(self) -> Vec4[src]
pub fn wzzy(self) -> Vec4[src]
pub fn wzzz(self) -> Vec4[src]
pub fn wzzw(self) -> Vec4[src]
pub fn wzwx(self) -> Vec4[src]
pub fn wzwy(self) -> Vec4[src]
pub fn wzwz(self) -> Vec4[src]
pub fn wzww(self) -> Vec4[src]
pub fn wwxx(self) -> Vec4[src]
pub fn wwxy(self) -> Vec4[src]
pub fn wwxz(self) -> Vec4[src]
pub fn wwxw(self) -> Vec4[src]
pub fn wwyx(self) -> Vec4[src]
pub fn wwyy(self) -> Vec4[src]
pub fn wwyz(self) -> Vec4[src]
pub fn wwyw(self) -> Vec4[src]
pub fn wwzx(self) -> Vec4[src]
pub fn wwzy(self) -> Vec4[src]
pub fn wwzz(self) -> Vec4[src]
pub fn wwzw(self) -> Vec4[src]
pub fn wwwx(self) -> Vec4[src]
pub fn wwwy(self) -> Vec4[src]
pub fn wwwz(self) -> Vec4[src]
pub fn wwww(self) -> Vec4[src]
pub fn xxx(self) -> Vec3[src]
pub fn xxy(self) -> Vec3[src]
pub fn xxz(self) -> Vec3[src]
pub fn xxw(self) -> Vec3[src]
pub fn xyx(self) -> Vec3[src]
pub fn xyy(self) -> Vec3[src]
pub fn xyz(self) -> Vec3[src]
pub fn xyw(self) -> Vec3[src]
pub fn xzx(self) -> Vec3[src]
pub fn xzy(self) -> Vec3[src]
pub fn xzz(self) -> Vec3[src]
pub fn xzw(self) -> Vec3[src]
pub fn xwx(self) -> Vec3[src]
pub fn xwy(self) -> Vec3[src]
pub fn xwz(self) -> Vec3[src]
pub fn xww(self) -> Vec3[src]
pub fn yxx(self) -> Vec3[src]
pub fn yxy(self) -> Vec3[src]
pub fn yxz(self) -> Vec3[src]
pub fn yxw(self) -> Vec3[src]
pub fn yyx(self) -> Vec3[src]
pub fn yyy(self) -> Vec3[src]
pub fn yyz(self) -> Vec3[src]
pub fn yyw(self) -> Vec3[src]
pub fn yzx(self) -> Vec3[src]
pub fn yzy(self) -> Vec3[src]
pub fn yzz(self) -> Vec3[src]
pub fn yzw(self) -> Vec3[src]
pub fn ywx(self) -> Vec3[src]
pub fn ywy(self) -> Vec3[src]
pub fn ywz(self) -> Vec3[src]
pub fn yww(self) -> Vec3[src]
pub fn zxx(self) -> Vec3[src]
pub fn zxy(self) -> Vec3[src]
pub fn zxz(self) -> Vec3[src]
pub fn zxw(self) -> Vec3[src]
pub fn zyx(self) -> Vec3[src]
pub fn zyy(self) -> Vec3[src]
pub fn zyz(self) -> Vec3[src]
pub fn zyw(self) -> Vec3[src]
pub fn zzx(self) -> Vec3[src]
pub fn zzy(self) -> Vec3[src]
pub fn zzz(self) -> Vec3[src]
pub fn zzw(self) -> Vec3[src]
pub fn zwx(self) -> Vec3[src]
pub fn zwy(self) -> Vec3[src]
pub fn zwz(self) -> Vec3[src]
pub fn zww(self) -> Vec3[src]
pub fn wxx(self) -> Vec3[src]
pub fn wxy(self) -> Vec3[src]
pub fn wxz(self) -> Vec3[src]
pub fn wxw(self) -> Vec3[src]
pub fn wyx(self) -> Vec3[src]
pub fn wyy(self) -> Vec3[src]
pub fn wyz(self) -> Vec3[src]
pub fn wyw(self) -> Vec3[src]
pub fn wzx(self) -> Vec3[src]
pub fn wzy(self) -> Vec3[src]
pub fn wzz(self) -> Vec3[src]
pub fn wzw(self) -> Vec3[src]
pub fn wwx(self) -> Vec3[src]
pub fn wwy(self) -> Vec3[src]
pub fn wwz(self) -> Vec3[src]
pub fn www(self) -> Vec3[src]
pub fn xx(self) -> Vec2[src]
pub fn xy(self) -> Vec2[src]
pub fn xz(self) -> Vec2[src]
pub fn xw(self) -> Vec2[src]
pub fn yx(self) -> Vec2[src]
pub fn yy(self) -> Vec2[src]
pub fn yz(self) -> Vec2[src]
pub fn yw(self) -> Vec2[src]
pub fn zx(self) -> Vec2[src]
pub fn zy(self) -> Vec2[src]
pub fn zz(self) -> Vec2[src]
pub fn zw(self) -> Vec2[src]
pub fn wx(self) -> Vec2[src]
pub fn wy(self) -> Vec2[src]
pub fn wz(self) -> Vec2[src]
pub fn ww(self) -> Vec2[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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn clone_into(&self, target: &mut T)[src]
impl<T> ToString for T where
T: Display + ?Sized, [src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,