Struct Float4

Source
pub struct Float4 {
    pub x: f32,
    pub y: f32,
    pub z: f32,
    pub w: f32,
}
Expand description

Vector containing 4 floating point values.

Fields§

§x: f32

The x-component of the vector.

§y: f32

The y-component of the vector.

§z: f32

The z-component of the vector.

§w: f32

The w-component of the vector.

Implementations§

Source§

impl Float4

Source

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

Creates a vector from 4 floating point values.

Source

pub fn abs(&self) -> Self

Computes the per-component absolute numbers.

Source

pub fn acos(&self) -> Self

Computes the per-component arccosine numbers (in radians). Each component should be a value within the range of -1 to 1. Return values are in the range 0, pi or NaN if the number is outside the range -1 to 1.

Source

pub fn all(&self) -> bool

Determines if all components of the vector are non-zero.

Source

pub fn any(&self) -> bool

Determines if any components of the vector are non-zero.

Source

pub fn asin(&self) -> Self

Each component should be a value within the range of -1 to 1. Return values are in the range -pi/2 to pi/2 or NaN if the number is outside the range -1 to 1.

Source

pub fn atan(&self) -> Self

Computes the per-component arctangent numbers (in radians). Return values are in the range -pi/2 to pi/2.

Source

pub fn ceil(&self) -> Self

Computes the per-component smallest integers greater than or equal to self.x and self.y and self.z and self.w respectively.

Source

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

Computes the per-component clamped numbers between min and max.

Source

pub fn cos(&self) -> Self

Computes the per-component cosine numbers (in radians).

Source

pub fn cosh(&self) -> Self

Computes the per-component hyperbolic cosine numbers.

Source

pub fn degrees(&self) -> Self

Converts the per-component numbers from radians to degrees.

Source

pub fn distance(&self, rhs: &Self) -> f32

Computes the distance scalar between two vectors.

Source

pub fn dot(&self, rhs: &Self) -> f32

Computes the dot product of two vectors.

Source

pub fn exp(&self) -> Self

Computes the per-component e^(self), the exponential function.

Source

pub fn exp2(&self) -> Self

Computes the per-component 2^(self).

Source

pub fn floor(&self) -> Self

Computes the per-component largest integers less than or equal to self.x and self.y and self.z and self.w respectively.

Source

pub fn fmod(&self, rhs: &Self) -> Self

Computes the floating-point remainder of division for each component.

Source

pub fn frac(&self) -> Self

Computes the fractional (or decimal) part of each component; which is greater than or equal to 0 and less than 1.

Source

pub fn ldexp(&self, exponent: &Self) -> Self

Computes value * 2^exponent for each component of the vector.

Source

pub fn length(&self) -> f32

Computes the length scalar between two vectors.

Source

pub fn lerp(&self, rhs: &Self, t: f32) -> Self

Computes a linear interpolation between two vectors.

Source

pub fn log(&self) -> Self

Computes the natural logarithm (base e) of each component of the vector.

Source

pub fn log10(&self) -> Self

Computes the natural logarithm (base 10) of each component of the vector.

Source

pub fn log2(&self) -> Self

Computes the natural logarithm (base 2) of each component of the vector.

Source

pub fn mad(&self, b: &Self, c: &Self) -> Self

Computes the multiply-add operation: (self * b) + c.

Source

pub fn max(&self, rhs: &Self) -> Self

Computes the component-wise maximum of two vectors.

Source

pub fn min(&self, rhs: &Self) -> Self

Computes the component-wise minimum of two vectors.

Source

pub fn normalize(&self) -> Self

Computes the normalized vector (unit vector) of self.

Source

pub fn pow(&self, exponent: f32) -> Self

Computes the component-wise power: self^exponent.

Source

pub fn radians(&self) -> Self

Converts the per-component numbers from degrees to radians.

Source

pub fn rcp(&self) -> Self

Computes the reciprocal of each component of the vector. Equivalent to 1 / self.

Source

pub fn rcp_safe(&self) -> Self

Computes the reciprocal of each component of the vector. Equivalent to 1 / self and returning 0 when self is 0.

Source

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

Computes the reflection of an incident vector self about a normal vector normal.

Source

pub fn refract(&self, normal: &Self, eta: f32) -> Self

Computes the refraction vector for the given incident vector, normal, and refraction index.

Source

pub fn round(&self) -> Self

Rounds each component of the vector to the nearest integer.

Source

pub fn rsqrt(&self) -> Self

Computes the reciprocal square root of each component of the vector.

Source

pub fn saturate(&self) -> Self

Clamps each component of the vector to the range [0, 1].

Source

pub fn sign(&self) -> Self

Computes the sign of each component of the vector.

Source

pub fn sin(&self) -> Self

Computes the per-component sine numbers (in radians).

Source

pub fn sinh(&self) -> Self

Computes the per-component hyperbolic sine numbers.

Source

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

Performs smoothstep interpolation on each component of the vector.

Source

pub fn sqrt(&self) -> Self

Computes the square root of each component of the vector.

Source

pub fn step(&self, edge: &Self) -> Self

Computes the component-wise step function. For each component: returns 0.0 if self < edge, else returns 1.0.

Source

pub fn tan(&self) -> Self

Computes the per-component tangent numbers (in radians).

Source

pub fn tanh(&self) -> Self

Computes the per-component hyperbolic tangent numbers.

Source

pub fn trunc(&self) -> Self

Truncates each component of the vector to its integer portion.

Source

pub fn xx(&self) -> Float2

Returns a swizzled vector.

Source

pub fn xy(&self) -> Float2

Returns a swizzled vector.

Source

pub fn xz(&self) -> Float2

Returns a swizzled vector.

Source

pub fn xw(&self) -> Float2

Returns a swizzled vector.

Source

pub fn yx(&self) -> Float2

Returns a swizzled vector.

Source

pub fn yy(&self) -> Float2

Returns a swizzled vector.

Source

pub fn yz(&self) -> Float2

Returns a swizzled vector.

Source

pub fn yw(&self) -> Float2

Returns a swizzled vector.

Source

pub fn zx(&self) -> Float2

Returns a swizzled vector.

Source

pub fn zy(&self) -> Float2

Returns a swizzled vector.

Source

pub fn zz(&self) -> Float2

Returns a swizzled vector.

Source

pub fn zw(&self) -> Float2

Returns a swizzled vector.

Source

pub fn wx(&self) -> Float2

Returns a swizzled vector.

Source

pub fn wy(&self) -> Float2

Returns a swizzled vector.

Source

pub fn wz(&self) -> Float2

Returns a swizzled vector.

Source

pub fn ww(&self) -> Float2

Returns a swizzled vector.

Source

pub fn xxx(&self) -> Float3

Returns a swizzled vector.

Source

pub fn xxy(&self) -> Float3

Returns a swizzled vector.

Source

pub fn xxz(&self) -> Float3

Returns a swizzled vector.

Source

pub fn xxw(&self) -> Float3

Returns a swizzled vector.

Source

pub fn xyx(&self) -> Float3

Returns a swizzled vector.

Source

pub fn xyy(&self) -> Float3

Returns a swizzled vector.

Source

pub fn xyz(&self) -> Float3

Returns a swizzled vector.

Source

pub fn xyw(&self) -> Float3

Returns a swizzled vector.

Source

pub fn xzx(&self) -> Float3

Returns a swizzled vector.

Source

pub fn xzy(&self) -> Float3

Returns a swizzled vector.

Source

pub fn xzz(&self) -> Float3

Returns a swizzled vector.

Source

pub fn xzw(&self) -> Float3

Returns a swizzled vector.

Source

pub fn xwx(&self) -> Float3

Returns a swizzled vector.

Source

pub fn xwy(&self) -> Float3

Returns a swizzled vector.

Source

pub fn xwz(&self) -> Float3

Returns a swizzled vector.

Source

pub fn xww(&self) -> Float3

Returns a swizzled vector.

Source

pub fn yxx(&self) -> Float3

Returns a swizzled vector.

Source

pub fn yxy(&self) -> Float3

Returns a swizzled vector.

Source

pub fn yxz(&self) -> Float3

Returns a swizzled vector.

Source

pub fn yxw(&self) -> Float3

Returns a swizzled vector.

Source

pub fn yyx(&self) -> Float3

Returns a swizzled vector.

Source

pub fn yyy(&self) -> Float3

Returns a swizzled vector.

Source

pub fn yyz(&self) -> Float3

Returns a swizzled vector.

Source

pub fn yyw(&self) -> Float3

Returns a swizzled vector.

Source

pub fn yzx(&self) -> Float3

Returns a swizzled vector.

Source

pub fn yzy(&self) -> Float3

Returns a swizzled vector.

Source

pub fn yzz(&self) -> Float3

Returns a swizzled vector.

Source

pub fn yzw(&self) -> Float3

Returns a swizzled vector.

Source

pub fn ywx(&self) -> Float3

Returns a swizzled vector.

Source

pub fn ywy(&self) -> Float3

Returns a swizzled vector.

Source

pub fn ywz(&self) -> Float3

Returns a swizzled vector.

Source

pub fn yww(&self) -> Float3

Returns a swizzled vector.

Source

pub fn zxx(&self) -> Float3

Returns a swizzled vector.

Source

pub fn zxy(&self) -> Float3

Returns a swizzled vector.

Source

pub fn zxz(&self) -> Float3

Returns a swizzled vector.

Source

pub fn zxw(&self) -> Float3

Returns a swizzled vector.

Source

pub fn zyx(&self) -> Float3

Returns a swizzled vector.

Source

pub fn zyy(&self) -> Float3

Returns a swizzled vector.

Source

pub fn zyz(&self) -> Float3

Returns a swizzled vector.

Source

pub fn zyw(&self) -> Float3

Returns a swizzled vector.

Source

pub fn zzx(&self) -> Float3

Returns a swizzled vector.

Source

pub fn zzy(&self) -> Float3

Returns a swizzled vector.

Source

pub fn zzz(&self) -> Float3

Returns a swizzled vector.

Source

pub fn zzw(&self) -> Float3

Returns a swizzled vector.

Source

pub fn zwx(&self) -> Float3

Returns a swizzled vector.

Source

pub fn zwy(&self) -> Float3

Returns a swizzled vector.

Source

pub fn zwz(&self) -> Float3

Returns a swizzled vector.

Source

pub fn zww(&self) -> Float3

Returns a swizzled vector.

Source

pub fn wxx(&self) -> Float3

Returns a swizzled vector.

Source

pub fn wxy(&self) -> Float3

Returns a swizzled vector.

Source

pub fn wxz(&self) -> Float3

Returns a swizzled vector.

Source

pub fn wxw(&self) -> Float3

Returns a swizzled vector.

Source

pub fn wyx(&self) -> Float3

Returns a swizzled vector.

Source

pub fn wyy(&self) -> Float3

Returns a swizzled vector.

Source

pub fn wyz(&self) -> Float3

Returns a swizzled vector.

Source

pub fn wyw(&self) -> Float3

Returns a swizzled vector.

Source

pub fn wzx(&self) -> Float3

Returns a swizzled vector.

Source

pub fn wzy(&self) -> Float3

Returns a swizzled vector.

Source

pub fn wzz(&self) -> Float3

Returns a swizzled vector.

Source

pub fn wzw(&self) -> Float3

Returns a swizzled vector.

Source

pub fn wwx(&self) -> Float3

Returns a swizzled vector.

Source

pub fn wwy(&self) -> Float3

Returns a swizzled vector.

Source

pub fn wwz(&self) -> Float3

Returns a swizzled vector.

Source

pub fn www(&self) -> Float3

Returns a swizzled vector.

Source

pub fn xxxx(&self) -> Float4

Returns a swizzled vector.

Source

pub fn xxxy(&self) -> Float4

Returns a swizzled vector.

Source

pub fn xxxz(&self) -> Float4

Returns a swizzled vector.

Source

pub fn xxxw(&self) -> Float4

Returns a swizzled vector.

Source

pub fn xxyx(&self) -> Float4

Returns a swizzled vector.

Source

pub fn xxyy(&self) -> Float4

Returns a swizzled vector.

Source

pub fn xxyz(&self) -> Float4

Returns a swizzled vector.

Source

pub fn xxyw(&self) -> Float4

Returns a swizzled vector.

Source

pub fn xxzx(&self) -> Float4

Returns a swizzled vector.

Source

pub fn xxzy(&self) -> Float4

Returns a swizzled vector.

Source

pub fn xxzz(&self) -> Float4

Returns a swizzled vector.

Source

pub fn xxzw(&self) -> Float4

Returns a swizzled vector.

Source

pub fn xxwx(&self) -> Float4

Returns a swizzled vector.

Source

pub fn xxwy(&self) -> Float4

Returns a swizzled vector.

Source

pub fn xxwz(&self) -> Float4

Returns a swizzled vector.

Source

pub fn xxww(&self) -> Float4

Returns a swizzled vector.

Source

pub fn xyxx(&self) -> Float4

Returns a swizzled vector.

Source

pub fn xyxy(&self) -> Float4

Returns a swizzled vector.

Source

pub fn xyxz(&self) -> Float4

Returns a swizzled vector.

Source

pub fn xyxw(&self) -> Float4

Returns a swizzled vector.

Source

pub fn xyyx(&self) -> Float4

Returns a swizzled vector.

Source

pub fn xyyy(&self) -> Float4

Returns a swizzled vector.

Source

pub fn xyyz(&self) -> Float4

Returns a swizzled vector.

Source

pub fn xyyw(&self) -> Float4

Returns a swizzled vector.

Source

pub fn xyzx(&self) -> Float4

Returns a swizzled vector.

Source

pub fn xyzy(&self) -> Float4

Returns a swizzled vector.

Source

pub fn xyzz(&self) -> Float4

Returns a swizzled vector.

Source

pub fn xyzw(&self) -> Float4

Returns a swizzled vector.

Source

pub fn xywx(&self) -> Float4

Returns a swizzled vector.

Source

pub fn xywy(&self) -> Float4

Returns a swizzled vector.

Source

pub fn xywz(&self) -> Float4

Returns a swizzled vector.

Source

pub fn xyww(&self) -> Float4

Returns a swizzled vector.

Source

pub fn xzxx(&self) -> Float4

Returns a swizzled vector.

Source

pub fn xzxy(&self) -> Float4

Returns a swizzled vector.

Source

pub fn xzxz(&self) -> Float4

Returns a swizzled vector.

Source

pub fn xzxw(&self) -> Float4

Returns a swizzled vector.

Source

pub fn xzyx(&self) -> Float4

Returns a swizzled vector.

Source

pub fn xzyy(&self) -> Float4

Returns a swizzled vector.

Source

pub fn xzyz(&self) -> Float4

Returns a swizzled vector.

Source

pub fn xzyw(&self) -> Float4

Returns a swizzled vector.

Source

pub fn xzzx(&self) -> Float4

Returns a swizzled vector.

Source

pub fn xzzy(&self) -> Float4

Returns a swizzled vector.

Source

pub fn xzzz(&self) -> Float4

Returns a swizzled vector.

Source

pub fn xzzw(&self) -> Float4

Returns a swizzled vector.

Source

pub fn xzwx(&self) -> Float4

Returns a swizzled vector.

Source

pub fn xzwy(&self) -> Float4

Returns a swizzled vector.

Source

pub fn xzwz(&self) -> Float4

Returns a swizzled vector.

Source

pub fn xzww(&self) -> Float4

Returns a swizzled vector.

Source

pub fn xwxx(&self) -> Float4

Returns a swizzled vector.

Source

pub fn xwxy(&self) -> Float4

Returns a swizzled vector.

Source

pub fn xwxz(&self) -> Float4

Returns a swizzled vector.

Source

pub fn xwxw(&self) -> Float4

Returns a swizzled vector.

Source

pub fn xwyx(&self) -> Float4

Returns a swizzled vector.

Source

pub fn xwyy(&self) -> Float4

Returns a swizzled vector.

Source

pub fn xwyz(&self) -> Float4

Returns a swizzled vector.

Source

pub fn xwyw(&self) -> Float4

Returns a swizzled vector.

Source

pub fn xwzx(&self) -> Float4

Returns a swizzled vector.

Source

pub fn xwzy(&self) -> Float4

Returns a swizzled vector.

Source

pub fn xwzz(&self) -> Float4

Returns a swizzled vector.

Source

pub fn xwzw(&self) -> Float4

Returns a swizzled vector.

Source

pub fn xwwx(&self) -> Float4

Returns a swizzled vector.

Source

pub fn xwwy(&self) -> Float4

Returns a swizzled vector.

Source

pub fn xwwz(&self) -> Float4

Returns a swizzled vector.

Source

pub fn xwww(&self) -> Float4

Returns a swizzled vector.

Source

pub fn yxxx(&self) -> Float4

Returns a swizzled vector.

Source

pub fn yxxy(&self) -> Float4

Returns a swizzled vector.

Source

pub fn yxxz(&self) -> Float4

Returns a swizzled vector.

Source

pub fn yxxw(&self) -> Float4

Returns a swizzled vector.

Source

pub fn yxyx(&self) -> Float4

Returns a swizzled vector.

Source

pub fn yxyy(&self) -> Float4

Returns a swizzled vector.

Source

pub fn yxyz(&self) -> Float4

Returns a swizzled vector.

Source

pub fn yxyw(&self) -> Float4

Returns a swizzled vector.

Source

pub fn yxzx(&self) -> Float4

Returns a swizzled vector.

Source

pub fn yxzy(&self) -> Float4

Returns a swizzled vector.

Source

pub fn yxzz(&self) -> Float4

Returns a swizzled vector.

Source

pub fn yxzw(&self) -> Float4

Returns a swizzled vector.

Source

pub fn yxwx(&self) -> Float4

Returns a swizzled vector.

Source

pub fn yxwy(&self) -> Float4

Returns a swizzled vector.

Source

pub fn yxwz(&self) -> Float4

Returns a swizzled vector.

Source

pub fn yxww(&self) -> Float4

Returns a swizzled vector.

Source

pub fn yyxx(&self) -> Float4

Returns a swizzled vector.

Source

pub fn yyxy(&self) -> Float4

Returns a swizzled vector.

Source

pub fn yyxz(&self) -> Float4

Returns a swizzled vector.

Source

pub fn yyxw(&self) -> Float4

Returns a swizzled vector.

Source

pub fn yyyx(&self) -> Float4

Returns a swizzled vector.

Source

pub fn yyyy(&self) -> Float4

Returns a swizzled vector.

Source

pub fn yyyz(&self) -> Float4

Returns a swizzled vector.

Source

pub fn yyyw(&self) -> Float4

Returns a swizzled vector.

Source

pub fn yyzx(&self) -> Float4

Returns a swizzled vector.

Source

pub fn yyzy(&self) -> Float4

Returns a swizzled vector.

Source

pub fn yyzz(&self) -> Float4

Returns a swizzled vector.

Source

pub fn yyzw(&self) -> Float4

Returns a swizzled vector.

Source

pub fn yywx(&self) -> Float4

Returns a swizzled vector.

Source

pub fn yywy(&self) -> Float4

Returns a swizzled vector.

Source

pub fn yywz(&self) -> Float4

Returns a swizzled vector.

Source

pub fn yyww(&self) -> Float4

Returns a swizzled vector.

Source

pub fn yzxx(&self) -> Float4

Returns a swizzled vector.

Source

pub fn yzxy(&self) -> Float4

Returns a swizzled vector.

Source

pub fn yzxz(&self) -> Float4

Returns a swizzled vector.

Source

pub fn yzxw(&self) -> Float4

Returns a swizzled vector.

Source

pub fn yzyx(&self) -> Float4

Returns a swizzled vector.

Source

pub fn yzyy(&self) -> Float4

Returns a swizzled vector.

Source

pub fn yzyz(&self) -> Float4

Returns a swizzled vector.

Source

pub fn yzyw(&self) -> Float4

Returns a swizzled vector.

Source

pub fn yzzx(&self) -> Float4

Returns a swizzled vector.

Source

pub fn yzzy(&self) -> Float4

Returns a swizzled vector.

Source

pub fn yzzz(&self) -> Float4

Returns a swizzled vector.

Source

pub fn yzzw(&self) -> Float4

Returns a swizzled vector.

Source

pub fn yzwx(&self) -> Float4

Returns a swizzled vector.

Source

pub fn yzwy(&self) -> Float4

Returns a swizzled vector.

Source

pub fn yzwz(&self) -> Float4

Returns a swizzled vector.

Source

pub fn yzww(&self) -> Float4

Returns a swizzled vector.

Source

pub fn ywxx(&self) -> Float4

Returns a swizzled vector.

Source

pub fn ywxy(&self) -> Float4

Returns a swizzled vector.

Source

pub fn ywxz(&self) -> Float4

Returns a swizzled vector.

Source

pub fn ywxw(&self) -> Float4

Returns a swizzled vector.

Source

pub fn ywyx(&self) -> Float4

Returns a swizzled vector.

Source

pub fn ywyy(&self) -> Float4

Returns a swizzled vector.

Source

pub fn ywyz(&self) -> Float4

Returns a swizzled vector.

Source

pub fn ywyw(&self) -> Float4

Returns a swizzled vector.

Source

pub fn ywzx(&self) -> Float4

Returns a swizzled vector.

Source

pub fn ywzy(&self) -> Float4

Returns a swizzled vector.

Source

pub fn ywzz(&self) -> Float4

Returns a swizzled vector.

Source

pub fn ywzw(&self) -> Float4

Returns a swizzled vector.

Source

pub fn ywwx(&self) -> Float4

Returns a swizzled vector.

Source

pub fn ywwy(&self) -> Float4

Returns a swizzled vector.

Source

pub fn ywwz(&self) -> Float4

Returns a swizzled vector.

Source

pub fn ywww(&self) -> Float4

Returns a swizzled vector.

Source

pub fn zxxx(&self) -> Float4

Returns a swizzled vector.

Source

pub fn zxxy(&self) -> Float4

Returns a swizzled vector.

Source

pub fn zxxz(&self) -> Float4

Returns a swizzled vector.

Source

pub fn zxxw(&self) -> Float4

Returns a swizzled vector.

Source

pub fn zxyx(&self) -> Float4

Returns a swizzled vector.

Source

pub fn zxyy(&self) -> Float4

Returns a swizzled vector.

Source

pub fn zxyz(&self) -> Float4

Returns a swizzled vector.

Source

pub fn zxyw(&self) -> Float4

Returns a swizzled vector.

Source

pub fn zxzx(&self) -> Float4

Returns a swizzled vector.

Source

pub fn zxzy(&self) -> Float4

Returns a swizzled vector.

Source

pub fn zxzz(&self) -> Float4

Returns a swizzled vector.

Source

pub fn zxzw(&self) -> Float4

Returns a swizzled vector.

Source

pub fn zxwx(&self) -> Float4

Returns a swizzled vector.

Source

pub fn zxwy(&self) -> Float4

Returns a swizzled vector.

Source

pub fn zxwz(&self) -> Float4

Returns a swizzled vector.

Source

pub fn zxww(&self) -> Float4

Returns a swizzled vector.

Source

pub fn zyxx(&self) -> Float4

Returns a swizzled vector.

Source

pub fn zyxy(&self) -> Float4

Returns a swizzled vector.

Source

pub fn zyxz(&self) -> Float4

Returns a swizzled vector.

Source

pub fn zyxw(&self) -> Float4

Returns a swizzled vector.

Source

pub fn zyyx(&self) -> Float4

Returns a swizzled vector.

Source

pub fn zyyy(&self) -> Float4

Returns a swizzled vector.

Source

pub fn zyyz(&self) -> Float4

Returns a swizzled vector.

Source

pub fn zyyw(&self) -> Float4

Returns a swizzled vector.

Source

pub fn zyzx(&self) -> Float4

Returns a swizzled vector.

Source

pub fn zyzy(&self) -> Float4

Returns a swizzled vector.

Source

pub fn zyzz(&self) -> Float4

Returns a swizzled vector.

Source

pub fn zyzw(&self) -> Float4

Returns a swizzled vector.

Source

pub fn zywx(&self) -> Float4

Returns a swizzled vector.

Source

pub fn zywy(&self) -> Float4

Returns a swizzled vector.

Source

pub fn zywz(&self) -> Float4

Returns a swizzled vector.

Source

pub fn zyww(&self) -> Float4

Returns a swizzled vector.

Source

pub fn zzxx(&self) -> Float4

Returns a swizzled vector.

Source

pub fn zzxy(&self) -> Float4

Returns a swizzled vector.

Source

pub fn zzxz(&self) -> Float4

Returns a swizzled vector.

Source

pub fn zzxw(&self) -> Float4

Returns a swizzled vector.

Source

pub fn zzyx(&self) -> Float4

Returns a swizzled vector.

Source

pub fn zzyy(&self) -> Float4

Returns a swizzled vector.

Source

pub fn zzyz(&self) -> Float4

Returns a swizzled vector.

Source

pub fn zzyw(&self) -> Float4

Returns a swizzled vector.

Source

pub fn zzzx(&self) -> Float4

Returns a swizzled vector.

Source

pub fn zzzy(&self) -> Float4

Returns a swizzled vector.

Source

pub fn zzzz(&self) -> Float4

Returns a swizzled vector.

Source

pub fn zzzw(&self) -> Float4

Returns a swizzled vector.

Source

pub fn zzwx(&self) -> Float4

Returns a swizzled vector.

Source

pub fn zzwy(&self) -> Float4

Returns a swizzled vector.

Source

pub fn zzwz(&self) -> Float4

Returns a swizzled vector.

Source

pub fn zzww(&self) -> Float4

Returns a swizzled vector.

Source

pub fn zwxx(&self) -> Float4

Returns a swizzled vector.

Source

pub fn zwxy(&self) -> Float4

Returns a swizzled vector.

Source

pub fn zwxz(&self) -> Float4

Returns a swizzled vector.

Source

pub fn zwxw(&self) -> Float4

Returns a swizzled vector.

Source

pub fn zwyx(&self) -> Float4

Returns a swizzled vector.

Source

pub fn zwyy(&self) -> Float4

Returns a swizzled vector.

Source

pub fn zwyz(&self) -> Float4

Returns a swizzled vector.

Source

pub fn zwyw(&self) -> Float4

Returns a swizzled vector.

Source

pub fn zwzx(&self) -> Float4

Returns a swizzled vector.

Source

pub fn zwzy(&self) -> Float4

Returns a swizzled vector.

Source

pub fn zwzz(&self) -> Float4

Returns a swizzled vector.

Source

pub fn zwzw(&self) -> Float4

Returns a swizzled vector.

Source

pub fn zwwx(&self) -> Float4

Returns a swizzled vector.

Source

pub fn zwwy(&self) -> Float4

Returns a swizzled vector.

Source

pub fn zwwz(&self) -> Float4

Returns a swizzled vector.

Source

pub fn zwww(&self) -> Float4

Returns a swizzled vector.

Source

pub fn wxxx(&self) -> Float4

Returns a swizzled vector.

Source

pub fn wxxy(&self) -> Float4

Returns a swizzled vector.

Source

pub fn wxxz(&self) -> Float4

Returns a swizzled vector.

Source

pub fn wxxw(&self) -> Float4

Returns a swizzled vector.

Source

pub fn wxyx(&self) -> Float4

Returns a swizzled vector.

Source

pub fn wxyy(&self) -> Float4

Returns a swizzled vector.

Source

pub fn wxyz(&self) -> Float4

Returns a swizzled vector.

Source

pub fn wxyw(&self) -> Float4

Returns a swizzled vector.

Source

pub fn wxzx(&self) -> Float4

Returns a swizzled vector.

Source

pub fn wxzy(&self) -> Float4

Returns a swizzled vector.

Source

pub fn wxzz(&self) -> Float4

Returns a swizzled vector.

Source

pub fn wxzw(&self) -> Float4

Returns a swizzled vector.

Source

pub fn wxwx(&self) -> Float4

Returns a swizzled vector.

Source

pub fn wxwy(&self) -> Float4

Returns a swizzled vector.

Source

pub fn wxwz(&self) -> Float4

Returns a swizzled vector.

Source

pub fn wxww(&self) -> Float4

Returns a swizzled vector.

Source

pub fn wyxx(&self) -> Float4

Returns a swizzled vector.

Source

pub fn wyxy(&self) -> Float4

Returns a swizzled vector.

Source

pub fn wyxz(&self) -> Float4

Returns a swizzled vector.

Source

pub fn wyxw(&self) -> Float4

Returns a swizzled vector.

Source

pub fn wyyx(&self) -> Float4

Returns a swizzled vector.

Source

pub fn wyyy(&self) -> Float4

Returns a swizzled vector.

Source

pub fn wyyz(&self) -> Float4

Returns a swizzled vector.

Source

pub fn wyyw(&self) -> Float4

Returns a swizzled vector.

Source

pub fn wyzx(&self) -> Float4

Returns a swizzled vector.

Source

pub fn wyzy(&self) -> Float4

Returns a swizzled vector.

Source

pub fn wyzz(&self) -> Float4

Returns a swizzled vector.

Source

pub fn wyzw(&self) -> Float4

Returns a swizzled vector.

Source

pub fn wywx(&self) -> Float4

Returns a swizzled vector.

Source

pub fn wywy(&self) -> Float4

Returns a swizzled vector.

Source

pub fn wywz(&self) -> Float4

Returns a swizzled vector.

Source

pub fn wyww(&self) -> Float4

Returns a swizzled vector.

Source

pub fn wzxx(&self) -> Float4

Returns a swizzled vector.

Source

pub fn wzxy(&self) -> Float4

Returns a swizzled vector.

Source

pub fn wzxz(&self) -> Float4

Returns a swizzled vector.

Source

pub fn wzxw(&self) -> Float4

Returns a swizzled vector.

Source

pub fn wzyx(&self) -> Float4

Returns a swizzled vector.

Source

pub fn wzyy(&self) -> Float4

Returns a swizzled vector.

Source

pub fn wzyz(&self) -> Float4

Returns a swizzled vector.

Source

pub fn wzyw(&self) -> Float4

Returns a swizzled vector.

Source

pub fn wzzx(&self) -> Float4

Returns a swizzled vector.

Source

pub fn wzzy(&self) -> Float4

Returns a swizzled vector.

Source

pub fn wzzz(&self) -> Float4

Returns a swizzled vector.

Source

pub fn wzzw(&self) -> Float4

Returns a swizzled vector.

Source

pub fn wzwx(&self) -> Float4

Returns a swizzled vector.

Source

pub fn wzwy(&self) -> Float4

Returns a swizzled vector.

Source

pub fn wzwz(&self) -> Float4

Returns a swizzled vector.

Source

pub fn wzww(&self) -> Float4

Returns a swizzled vector.

Source

pub fn wwxx(&self) -> Float4

Returns a swizzled vector.

Source

pub fn wwxy(&self) -> Float4

Returns a swizzled vector.

Source

pub fn wwxz(&self) -> Float4

Returns a swizzled vector.

Source

pub fn wwxw(&self) -> Float4

Returns a swizzled vector.

Source

pub fn wwyx(&self) -> Float4

Returns a swizzled vector.

Source

pub fn wwyy(&self) -> Float4

Returns a swizzled vector.

Source

pub fn wwyz(&self) -> Float4

Returns a swizzled vector.

Source

pub fn wwyw(&self) -> Float4

Returns a swizzled vector.

Source

pub fn wwzx(&self) -> Float4

Returns a swizzled vector.

Source

pub fn wwzy(&self) -> Float4

Returns a swizzled vector.

Source

pub fn wwzz(&self) -> Float4

Returns a swizzled vector.

Source

pub fn wwzw(&self) -> Float4

Returns a swizzled vector.

Source

pub fn wwwx(&self) -> Float4

Returns a swizzled vector.

Source

pub fn wwwy(&self) -> Float4

Returns a swizzled vector.

Source

pub fn wwwz(&self) -> Float4

Returns a swizzled vector.

Source

pub fn wwww(&self) -> Float4

Returns a swizzled vector.

Trait Implementations§

Source§

impl Add<f32> for Float4

Source§

type Output = Float4

The resulting type after applying the + operator.
Source§

fn add(self, rhs: f32) -> Self

Performs the + operation. Read more
Source§

impl Add for Float4

Source§

type Output = Float4

The resulting type after applying the + operator.
Source§

fn add(self, rhs: Self) -> Self

Performs the + operation. Read more
Source§

impl AddAssign<f32> for Float4

Source§

fn add_assign(&mut self, rhs: f32)

Performs the += operation. Read more
Source§

impl AddAssign for Float4

Source§

fn add_assign(&mut self, rhs: Self)

Performs the += operation. Read more
Source§

impl Clone for Float4

Source§

fn clone(&self) -> Float4

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 Debug for Float4

Source§

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

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

impl Display for Float4

Source§

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

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

impl Div<f32> for Float4

Source§

type Output = Float4

The resulting type after applying the / operator.
Source§

fn div(self, rhs: f32) -> Self

Performs the / operation. Read more
Source§

impl Div for Float4

Source§

type Output = Float4

The resulting type after applying the / operator.
Source§

fn div(self, rhs: Self) -> Self

Performs the / operation. Read more
Source§

impl DivAssign<f32> for Float4

Source§

fn div_assign(&mut self, rhs: f32)

Performs the /= operation. Read more
Source§

impl DivAssign for Float4

Source§

fn div_assign(&mut self, rhs: Self)

Performs the /= operation. Read more
Source§

impl From<(f32, f32, f32, f32)> for Float4

Source§

fn from(lhs: (f32, f32, f32, f32)) -> Self

Converts to this type from the input type.
Source§

impl From<f32> for Float4

Source§

fn from(lhs: f32) -> Self

Converts to this type from the input type.
Source§

impl Mul<f32> for Float4

Source§

type Output = Float4

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: f32) -> Self

Performs the * operation. Read more
Source§

impl Mul for Float4

Source§

type Output = Float4

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: Self) -> Self

Performs the * operation. Read more
Source§

impl MulAssign<f32> for Float4

Source§

fn mul_assign(&mut self, rhs: f32)

Performs the *= operation. Read more
Source§

impl MulAssign for Float4

Source§

fn mul_assign(&mut self, rhs: Self)

Performs the *= operation. Read more
Source§

impl Neg for Float4

Source§

type Output = Float4

The resulting type after applying the - operator.
Source§

fn neg(self) -> Self

Performs the unary - operation. Read more
Source§

impl PartialEq for Float4

Source§

fn eq(&self, rhs: &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 Sub<f32> for Float4

Source§

type Output = Float4

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: f32) -> Self

Performs the - operation. Read more
Source§

impl Sub for Float4

Source§

type Output = Float4

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: Self) -> Self

Performs the - operation. Read more
Source§

impl SubAssign<f32> for Float4

Source§

fn sub_assign(&mut self, rhs: f32)

Performs the -= operation. Read more
Source§

impl SubAssign for Float4

Source§

fn sub_assign(&mut self, rhs: Self)

Performs the -= operation. Read more
Source§

impl Copy for Float4

Auto Trait Implementations§

§

impl Freeze for Float4

§

impl RefUnwindSafe for Float4

§

impl Send for Float4

§

impl Sync for Float4

§

impl Unpin for Float4

§

impl UnwindSafe for Float4

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> 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> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. 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.