Vec4

Struct Vec4 

Source
#[repr(C)]
pub struct Vec4<T> { pub x: T, pub y: T, pub z: T, pub w: T, }

Fields§

§x: T§y: T§z: T§w: T

Implementations§

Source§

impl<T> Vec4<T>
where T: Copy,

Source

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

Creates a new Vec4 from multiple components

Source

pub fn len() -> usize

Source

pub fn to_tuple(&self) -> (T, T, T, T)

Source

pub fn xx(&self) -> Vec2<T>

Source

pub fn xy(&self) -> Vec2<T>

Source

pub fn xz(&self) -> Vec2<T>

Source

pub fn xw(&self) -> Vec2<T>

Source

pub fn yx(&self) -> Vec2<T>

Source

pub fn yy(&self) -> Vec2<T>

Source

pub fn yz(&self) -> Vec2<T>

Source

pub fn yw(&self) -> Vec2<T>

Source

pub fn zx(&self) -> Vec2<T>

Source

pub fn zy(&self) -> Vec2<T>

Source

pub fn zz(&self) -> Vec2<T>

Source

pub fn zw(&self) -> Vec2<T>

Source

pub fn wx(&self) -> Vec2<T>

Source

pub fn wy(&self) -> Vec2<T>

Source

pub fn wz(&self) -> Vec2<T>

Source

pub fn ww(&self) -> Vec2<T>

Source

pub fn xxx(&self) -> Vec3<T>

Source

pub fn xxy(&self) -> Vec3<T>

Source

pub fn xxz(&self) -> Vec3<T>

Source

pub fn xxw(&self) -> Vec3<T>

Source

pub fn xyx(&self) -> Vec3<T>

Source

pub fn xyy(&self) -> Vec3<T>

Source

pub fn xyz(&self) -> Vec3<T>

Source

pub fn xyw(&self) -> Vec3<T>

Source

pub fn xzx(&self) -> Vec3<T>

Source

pub fn xzy(&self) -> Vec3<T>

Source

pub fn xzz(&self) -> Vec3<T>

Source

pub fn xzw(&self) -> Vec3<T>

Source

pub fn xwx(&self) -> Vec3<T>

Source

pub fn xwy(&self) -> Vec3<T>

Source

pub fn xwz(&self) -> Vec3<T>

Source

pub fn xww(&self) -> Vec3<T>

Source

pub fn yxx(&self) -> Vec3<T>

Source

pub fn yxy(&self) -> Vec3<T>

Source

pub fn yxz(&self) -> Vec3<T>

Source

pub fn yxw(&self) -> Vec3<T>

Source

pub fn yyx(&self) -> Vec3<T>

Source

pub fn yyy(&self) -> Vec3<T>

Source

pub fn yyz(&self) -> Vec3<T>

Source

pub fn yyw(&self) -> Vec3<T>

Source

pub fn yzx(&self) -> Vec3<T>

Source

pub fn yzy(&self) -> Vec3<T>

Source

pub fn yzz(&self) -> Vec3<T>

Source

pub fn yzw(&self) -> Vec3<T>

Source

pub fn ywx(&self) -> Vec3<T>

Source

pub fn ywy(&self) -> Vec3<T>

Source

pub fn ywz(&self) -> Vec3<T>

Source

pub fn yww(&self) -> Vec3<T>

Source

pub fn zxx(&self) -> Vec3<T>

Source

pub fn zxy(&self) -> Vec3<T>

Source

pub fn zxz(&self) -> Vec3<T>

Source

pub fn zxw(&self) -> Vec3<T>

Source

pub fn zyx(&self) -> Vec3<T>

Source

pub fn zyy(&self) -> Vec3<T>

Source

pub fn zyz(&self) -> Vec3<T>

Source

pub fn zyw(&self) -> Vec3<T>

Source

pub fn zzx(&self) -> Vec3<T>

Source

pub fn zzy(&self) -> Vec3<T>

Source

pub fn zzz(&self) -> Vec3<T>

Source

pub fn zzw(&self) -> Vec3<T>

Source

pub fn zwx(&self) -> Vec3<T>

Source

pub fn zwy(&self) -> Vec3<T>

Source

pub fn zwz(&self) -> Vec3<T>

Source

pub fn zww(&self) -> Vec3<T>

Source

pub fn wxx(&self) -> Vec3<T>

Source

pub fn wxy(&self) -> Vec3<T>

Source

pub fn wxz(&self) -> Vec3<T>

Source

pub fn wxw(&self) -> Vec3<T>

Source

pub fn wyx(&self) -> Vec3<T>

Source

pub fn wyy(&self) -> Vec3<T>

Source

pub fn wyz(&self) -> Vec3<T>

Source

pub fn wyw(&self) -> Vec3<T>

Source

pub fn wzx(&self) -> Vec3<T>

Source

pub fn wzy(&self) -> Vec3<T>

Source

pub fn wzz(&self) -> Vec3<T>

Source

pub fn wzw(&self) -> Vec3<T>

Source

pub fn wwx(&self) -> Vec3<T>

Source

pub fn wwy(&self) -> Vec3<T>

Source

pub fn wwz(&self) -> Vec3<T>

Source

pub fn www(&self) -> Vec3<T>

Source

pub fn xxxx(&self) -> Self

Source

pub fn xxxy(&self) -> Self

Source

pub fn xxxz(&self) -> Self

Source

pub fn xxxw(&self) -> Self

Source

pub fn xxyx(&self) -> Self

Source

pub fn xxyy(&self) -> Self

Source

pub fn xxyz(&self) -> Self

Source

pub fn xxyw(&self) -> Self

Source

pub fn xxzx(&self) -> Self

Source

pub fn xxzy(&self) -> Self

Source

pub fn xxzz(&self) -> Self

Source

pub fn xxzw(&self) -> Self

Source

pub fn xxwx(&self) -> Self

Source

pub fn xxwy(&self) -> Self

Source

pub fn xxwz(&self) -> Self

Source

pub fn xxww(&self) -> Self

Source

pub fn xyxx(&self) -> Self

Source

pub fn xyxy(&self) -> Self

Source

pub fn xyxz(&self) -> Self

Source

pub fn xyxw(&self) -> Self

Source

pub fn xyyx(&self) -> Self

Source

pub fn xyyy(&self) -> Self

Source

pub fn xyyz(&self) -> Self

Source

pub fn xyyw(&self) -> Self

Source

pub fn xyzx(&self) -> Self

Source

pub fn xyzy(&self) -> Self

Source

pub fn xyzz(&self) -> Self

Source

pub fn xyzw(&self) -> Self

Source

pub fn xywx(&self) -> Self

Source

pub fn xywy(&self) -> Self

Source

pub fn xywz(&self) -> Self

Source

pub fn xyww(&self) -> Self

Source

pub fn xzxx(&self) -> Self

Source

pub fn xzxy(&self) -> Self

Source

pub fn xzxz(&self) -> Self

Source

pub fn xzxw(&self) -> Self

Source

pub fn xzyx(&self) -> Self

Source

pub fn xzyy(&self) -> Self

Source

pub fn xzyz(&self) -> Self

Source

pub fn xzyw(&self) -> Self

Source

pub fn xzzx(&self) -> Self

Source

pub fn xzzy(&self) -> Self

Source

pub fn xzzz(&self) -> Self

Source

pub fn xzzw(&self) -> Self

Source

pub fn xzwx(&self) -> Self

Source

pub fn xzwy(&self) -> Self

Source

pub fn xzwz(&self) -> Self

Source

pub fn xzww(&self) -> Self

Source

pub fn xwxx(&self) -> Self

Source

pub fn xwxy(&self) -> Self

Source

pub fn xwxz(&self) -> Self

Source

pub fn xwxw(&self) -> Self

Source

pub fn xwyx(&self) -> Self

Source

pub fn xwyy(&self) -> Self

Source

pub fn xwyz(&self) -> Self

Source

pub fn xwyw(&self) -> Self

Source

pub fn xwzx(&self) -> Self

Source

pub fn xwzy(&self) -> Self

Source

pub fn xwzz(&self) -> Self

Source

pub fn xwzw(&self) -> Self

Source

pub fn xwwx(&self) -> Self

Source

pub fn xwwy(&self) -> Self

Source

pub fn xwwz(&self) -> Self

Source

pub fn xwww(&self) -> Self

Source

pub fn yxxx(&self) -> Self

Source

pub fn yxxy(&self) -> Self

Source

pub fn yxxz(&self) -> Self

Source

pub fn yxxw(&self) -> Self

Source

pub fn yxyx(&self) -> Self

Source

pub fn yxyy(&self) -> Self

Source

pub fn yxyz(&self) -> Self

Source

pub fn yxyw(&self) -> Self

Source

pub fn yxzx(&self) -> Self

Source

pub fn yxzy(&self) -> Self

Source

pub fn yxzz(&self) -> Self

Source

pub fn yxzw(&self) -> Self

Source

pub fn yxwx(&self) -> Self

Source

pub fn yxwy(&self) -> Self

Source

pub fn yxwz(&self) -> Self

Source

pub fn yxww(&self) -> Self

Source

pub fn yyxx(&self) -> Self

Source

pub fn yyxy(&self) -> Self

Source

pub fn yyxz(&self) -> Self

Source

pub fn yyxw(&self) -> Self

Source

pub fn yyyx(&self) -> Self

Source

pub fn yyyy(&self) -> Self

Source

pub fn yyyz(&self) -> Self

Source

pub fn yyyw(&self) -> Self

Source

pub fn yyzx(&self) -> Self

Source

pub fn yyzy(&self) -> Self

Source

pub fn yyzz(&self) -> Self

Source

pub fn yyzw(&self) -> Self

Source

pub fn yywx(&self) -> Self

Source

pub fn yywy(&self) -> Self

Source

pub fn yywz(&self) -> Self

Source

pub fn yyww(&self) -> Self

Source

pub fn yzxx(&self) -> Self

Source

pub fn yzxy(&self) -> Self

Source

pub fn yzxz(&self) -> Self

Source

pub fn yzxw(&self) -> Self

Source

pub fn yzyx(&self) -> Self

Source

pub fn yzyy(&self) -> Self

Source

pub fn yzyz(&self) -> Self

Source

pub fn yzyw(&self) -> Self

Source

pub fn yzzx(&self) -> Self

Source

pub fn yzzy(&self) -> Self

Source

pub fn yzzz(&self) -> Self

Source

pub fn yzzw(&self) -> Self

Source

pub fn yzwx(&self) -> Self

Source

pub fn yzwy(&self) -> Self

Source

pub fn yzwz(&self) -> Self

Source

pub fn yzww(&self) -> Self

Source

pub fn ywxx(&self) -> Self

Source

pub fn ywxy(&self) -> Self

Source

pub fn ywxz(&self) -> Self

Source

pub fn ywxw(&self) -> Self

Source

pub fn ywyx(&self) -> Self

Source

pub fn ywyy(&self) -> Self

Source

pub fn ywyz(&self) -> Self

Source

pub fn ywyw(&self) -> Self

Source

pub fn ywzx(&self) -> Self

Source

pub fn ywzy(&self) -> Self

Source

pub fn ywzz(&self) -> Self

Source

pub fn ywzw(&self) -> Self

Source

pub fn ywwx(&self) -> Self

Source

pub fn ywwy(&self) -> Self

Source

pub fn ywwz(&self) -> Self

Source

pub fn ywww(&self) -> Self

Source

pub fn zxxx(&self) -> Self

Source

pub fn zxxy(&self) -> Self

Source

pub fn zxxz(&self) -> Self

Source

pub fn zxxw(&self) -> Self

Source

pub fn zxyx(&self) -> Self

Source

pub fn zxyy(&self) -> Self

Source

pub fn zxyz(&self) -> Self

Source

pub fn zxyw(&self) -> Self

Source

pub fn zxzx(&self) -> Self

Source

pub fn zxzy(&self) -> Self

Source

pub fn zxzz(&self) -> Self

Source

pub fn zxzw(&self) -> Self

Source

pub fn zxwx(&self) -> Self

Source

pub fn zxwy(&self) -> Self

Source

pub fn zxwz(&self) -> Self

Source

pub fn zxww(&self) -> Self

Source

pub fn zyxx(&self) -> Self

Source

pub fn zyxy(&self) -> Self

Source

pub fn zyxz(&self) -> Self

Source

pub fn zyxw(&self) -> Self

Source

pub fn zyyx(&self) -> Self

Source

pub fn zyyy(&self) -> Self

Source

pub fn zyyz(&self) -> Self

Source

pub fn zyyw(&self) -> Self

Source

pub fn zyzx(&self) -> Self

Source

pub fn zyzy(&self) -> Self

Source

pub fn zyzz(&self) -> Self

Source

pub fn zyzw(&self) -> Self

Source

pub fn zywx(&self) -> Self

Source

pub fn zywy(&self) -> Self

Source

pub fn zywz(&self) -> Self

Source

pub fn zyww(&self) -> Self

Source

pub fn zzxx(&self) -> Self

Source

pub fn zzxy(&self) -> Self

Source

pub fn zzxz(&self) -> Self

Source

pub fn zzxw(&self) -> Self

Source

pub fn zzyx(&self) -> Self

Source

pub fn zzyy(&self) -> Self

Source

pub fn zzyz(&self) -> Self

Source

pub fn zzyw(&self) -> Self

Source

pub fn zzzx(&self) -> Self

Source

pub fn zzzy(&self) -> Self

Source

pub fn zzzz(&self) -> Self

Source

pub fn zzzw(&self) -> Self

Source

pub fn zzwx(&self) -> Self

Source

pub fn zzwy(&self) -> Self

Source

pub fn zzwz(&self) -> Self

Source

pub fn zzww(&self) -> Self

Source

pub fn zwxx(&self) -> Self

Source

pub fn zwxy(&self) -> Self

Source

pub fn zwxz(&self) -> Self

Source

pub fn zwxw(&self) -> Self

Source

pub fn zwyx(&self) -> Self

Source

pub fn zwyy(&self) -> Self

Source

pub fn zwyz(&self) -> Self

Source

pub fn zwyw(&self) -> Self

Source

pub fn zwzx(&self) -> Self

Source

pub fn zwzy(&self) -> Self

Source

pub fn zwzz(&self) -> Self

Source

pub fn zwzw(&self) -> Self

Source

pub fn zwwx(&self) -> Self

Source

pub fn zwwy(&self) -> Self

Source

pub fn zwwz(&self) -> Self

Source

pub fn zwww(&self) -> Self

Source

pub fn wxxx(&self) -> Self

Source

pub fn wxxy(&self) -> Self

Source

pub fn wxxz(&self) -> Self

Source

pub fn wxxw(&self) -> Self

Source

pub fn wxyx(&self) -> Self

Source

pub fn wxyy(&self) -> Self

Source

pub fn wxyz(&self) -> Self

Source

pub fn wxyw(&self) -> Self

Source

pub fn wxzx(&self) -> Self

Source

pub fn wxzy(&self) -> Self

Source

pub fn wxzz(&self) -> Self

Source

pub fn wxzw(&self) -> Self

Source

pub fn wxwx(&self) -> Self

Source

pub fn wxwy(&self) -> Self

Source

pub fn wxwz(&self) -> Self

Source

pub fn wxww(&self) -> Self

Source

pub fn wyxx(&self) -> Self

Source

pub fn wyxy(&self) -> Self

Source

pub fn wyxz(&self) -> Self

Source

pub fn wyxw(&self) -> Self

Source

pub fn wyyx(&self) -> Self

Source

pub fn wyyy(&self) -> Self

Source

pub fn wyyz(&self) -> Self

Source

pub fn wyyw(&self) -> Self

Source

pub fn wyzx(&self) -> Self

Source

pub fn wyzy(&self) -> Self

Source

pub fn wyzz(&self) -> Self

Source

pub fn wyzw(&self) -> Self

Source

pub fn wywx(&self) -> Self

Source

pub fn wywy(&self) -> Self

Source

pub fn wywz(&self) -> Self

Source

pub fn wyww(&self) -> Self

Source

pub fn wzxx(&self) -> Self

Source

pub fn wzxy(&self) -> Self

Source

pub fn wzxz(&self) -> Self

Source

pub fn wzxw(&self) -> Self

Source

pub fn wzyx(&self) -> Self

Source

pub fn wzyy(&self) -> Self

Source

pub fn wzyz(&self) -> Self

Source

pub fn wzyw(&self) -> Self

Source

pub fn wzzx(&self) -> Self

Source

pub fn wzzy(&self) -> Self

Source

pub fn wzzz(&self) -> Self

Source

pub fn wzzw(&self) -> Self

Source

pub fn wzwx(&self) -> Self

Source

pub fn wzwy(&self) -> Self

Source

pub fn wzwz(&self) -> Self

Source

pub fn wzww(&self) -> Self

Source

pub fn wwxx(&self) -> Self

Source

pub fn wwxy(&self) -> Self

Source

pub fn wwxz(&self) -> Self

Source

pub fn wwxw(&self) -> Self

Source

pub fn wwyx(&self) -> Self

Source

pub fn wwyy(&self) -> Self

Source

pub fn wwyz(&self) -> Self

Source

pub fn wwyw(&self) -> Self

Source

pub fn wwzx(&self) -> Self

Source

pub fn wwzy(&self) -> Self

Source

pub fn wwzz(&self) -> Self

Source

pub fn wwzw(&self) -> Self

Source

pub fn wwwx(&self) -> Self

Source

pub fn wwwy(&self) -> Self

Source

pub fn wwwz(&self) -> Self

Source

pub fn wwww(&self) -> Self

Source§

impl<T> Vec4<T>
where T: Vec + Math,

Source

pub fn dot(&self, b: Self) -> T

Source

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

Source

pub fn length2(&self) -> T

Source

pub fn length(&self) -> T

Source

pub fn distance(&self, b: Self) -> T

Source

pub fn normalize(&self) -> Self

Trait Implementations§

Source§

impl<T> Add for Vec4<T>
where T: Add<Output = T>,

Source§

type Output = Vec4<T>

The resulting type after applying the + operator.
Source§

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

Performs the + operation. Read more
Source§

impl<T> AddAssign for Vec4<T>
where T: AddAssign<T>,

Source§

fn add_assign(&mut self, other: Self)

Performs the += operation. Read more
Source§

impl<T> AsMut<Vec4<T>> for Vec4<T>

Source§

fn as_mut(&mut self) -> &mut Vec4<T>

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

impl<T> AsRef<Vec4<T>> for Vec4<T>

Source§

fn as_ref(&self) -> &Vec4<T>

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

impl<T> Binary for Vec4<T>
where T: Vec + Math,

Source§

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

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

impl<T: Clone> Clone for Vec4<T>

Source§

fn clone(&self) -> Vec4<T>

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: Debug> Debug for Vec4<T>

Source§

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

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

impl<T: Default> Default for Vec4<T>

Source§

fn default() -> Vec4<T>

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

impl<T> Display for Vec4<T>
where T: Debug,

Source§

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

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

impl<T> Div<T> for Vec4<T>
where T: Div<Output = T> + Copy,

Source§

type Output = Vec4<T>

The resulting type after applying the / operator.
Source§

fn div(self, s: T) -> Self

Performs the / operation. Read more
Source§

impl<T> Div for Vec4<T>
where T: Div<Output = T>,

Source§

type Output = Vec4<T>

The resulting type after applying the / operator.
Source§

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

Performs the / operation. Read more
Source§

impl<'a, T> DivAssign<&'a T> for Vec4<T>
where T: DivAssign<T> + Copy,

Source§

fn div_assign(&mut self, s: &'a T)

Performs the /= operation. Read more
Source§

impl<T> DivAssign<T> for Vec4<T>
where T: DivAssign<T> + Copy,

Source§

fn div_assign(&mut self, s: T)

Performs the /= operation. Read more
Source§

impl<T> DivAssign for Vec4<T>
where T: DivAssign<T>,

Source§

fn div_assign(&mut self, other: Self)

Performs the /= operation. Read more
Source§

impl<T> From<[T; 4]> for Vec4<T>
where T: Copy,

Source§

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

Converts to this type from the input type.
Source§

impl<T> From<(T, T, T, T)> for Vec4<T>
where T: Copy,

Source§

fn from(v: (T, T, T, T)) -> Self

Converts to this type from the input type.
Source§

impl<T> From<Vec3<T>> for Vec4<T>
where T: Copy + One,

Source§

fn from(v: Vec3<T>) -> Self

Converts to this type from the input type.
Source§

impl<T> From<Vec4<T>> for Quat<T>
where T: Copy + Div<Output = T>,

Source§

fn from(v: Vec4<T>) -> Self

Converts to this type from the input type.
Source§

impl<T> From<Vec4<T>> for Vec3<T>
where T: Copy + Div<Output = T>,

Source§

fn from(v: Vec4<T>) -> Self

Converts to this type from the input type.
Source§

impl<T: Hash> Hash for Vec4<T>

Source§

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

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> Interpolation<T> for Vec4<T>
where T: Copy + One + Mul<Output = T> + Add<Output = T> + Sub<Output = T>,

Source§

fn lerp(self, b: Self, t: T) -> Self

Source§

impl<T> Math for Vec4<T>
where T: Copy + Math,

Source§

fn abs(self) -> Self

Source§

fn recip(self) -> Self

Source§

fn sqrt(self) -> Self

Source§

fn rsqrt(self) -> Self

Source§

fn sin(self) -> Self

Source§

fn cos(self) -> Self

Source§

fn tan(self) -> Self

Source§

fn sincos(self) -> (Vec4<T>, Vec4<T>)

Source§

fn acos(self) -> Self

Source§

fn asin(self) -> Self

Source§

fn atan(self) -> Self

Source§

fn exp(self) -> Self

Source§

fn exp2(self) -> Self

Source§

fn log(self, _rhs: Self) -> Self

Source§

fn log2(self) -> Self

Source§

fn log10(self) -> Self

Source§

fn to_radians(self) -> Self

Source§

fn to_degrees(self) -> Self

Source§

fn min(self, _rhs: Self) -> Self

Source§

fn max(self, _rhs: Self) -> Self

Source§

fn saturate(self) -> Self

Source§

fn snorm2unorm(self) -> Self

Source§

fn unorm2snorm(self) -> Self

Source§

fn clamp(self, minval: Self, maxval: Self) -> Self

Source§

impl<T> Mul<Mat4<T>> for Vec4<T>
where T: Copy + Add<Output = T> + Mul<Output = T>,

Source§

type Output = Vec4<T>

The resulting type after applying the * operator.
Source§

fn mul(self, m: Mat4<T>) -> Self

Performs the * operation. Read more
Source§

impl<T> Mul<T> for Vec4<T>
where T: Mul<Output = T> + Copy,

Source§

type Output = Vec4<T>

The resulting type after applying the * operator.
Source§

fn mul(self, s: T) -> Self

Performs the * operation. Read more
Source§

impl<T> Mul<Vec4<T>> for Mat4<T>
where T: Copy + Add<Output = T> + Mul<Output = T>,

Source§

type Output = Mat4<T>

The resulting type after applying the * operator.
Source§

fn mul(self, v: Vec4<T>) -> Self

Performs the * operation. Read more
Source§

impl<T> Mul for Vec4<T>
where T: Mul<Output = T>,

Source§

type Output = Vec4<T>

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl<'a, T> MulAssign<&'a T> for Vec4<T>
where T: MulAssign<T> + Copy,

Source§

fn mul_assign(&mut self, other: &'a T)

Performs the *= operation. Read more
Source§

impl<T> MulAssign<T> for Vec4<T>
where T: MulAssign<T> + Copy,

Source§

fn mul_assign(&mut self, s: T)

Performs the *= operation. Read more
Source§

impl<T> MulAssign for Vec4<T>
where T: MulAssign<T>,

Source§

fn mul_assign(&mut self, other: Self)

Performs the *= operation. Read more
Source§

impl<T> Neg for Vec4<T>
where T: Neg<Output = T>,

Source§

type Output = Vec4<T>

The resulting type after applying the - operator.
Source§

fn neg(self) -> Self

Performs the unary - operation. Read more
Source§

impl<T> One for Vec4<T>
where T: One,

Source§

fn one() -> Self

Source§

impl<T: PartialEq> PartialEq for Vec4<T>

Source§

fn eq(&self, other: &Vec4<T>) -> 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<T> Sub for Vec4<T>
where T: Sub<Output = T>,

Source§

type Output = Vec4<T>

The resulting type after applying the - operator.
Source§

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

Performs the - operation. Read more
Source§

impl<T> SubAssign for Vec4<T>
where T: SubAssign<T>,

Source§

fn sub_assign(&mut self, other: Self)

Performs the -= operation. Read more
Source§

impl<T> TypeSize<Vec4<T>> for Vec4<T>

Source§

impl<T> UnitW for Vec4<T>
where T: One + Zero,

Source§

fn unit_w() -> Self

Source§

impl<T> UnitX for Vec4<T>
where T: One + Zero,

Source§

fn unit_x() -> Self

Source§

impl<T> UnitY for Vec4<T>
where T: One + Zero,

Source§

fn unit_y() -> Self

Source§

impl<T> UnitZ for Vec4<T>
where T: One + Zero,

Source§

fn unit_z() -> Self

Source§

impl<T> Zero for Vec4<T>
where T: Zero,

Source§

fn zero() -> Self

Source§

impl<T: Copy> Copy for Vec4<T>

Source§

impl<T: Eq> Eq for Vec4<T>

Source§

impl<T> StructuralPartialEq for Vec4<T>

Auto Trait Implementations§

§

impl<T> Freeze for Vec4<T>
where T: Freeze,

§

impl<T> RefUnwindSafe for Vec4<T>
where T: RefUnwindSafe,

§

impl<T> Send for Vec4<T>
where T: Send,

§

impl<T> Sync for Vec4<T>
where T: Sync,

§

impl<T> Unpin for Vec4<T>
where T: Unpin,

§

impl<T> UnwindSafe for Vec4<T>
where T: 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> 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.