Debian Codegraph @

debian/missing-sources/glam-0.28.0/src/f64/dvec4.rs

raw symbols SCIP
1 // Generated from vec.rs.tera template. Edit the template, not the generated file.
2
3 #[cfg(not(feature = "scalar-math"))]
4 use craterust-analyzer cargo glam 0.28.0 crate/::BVec4Arust-analyzer cargo glam 0.28.0 bool/sse2/bvec4a/BVec4A#;
5 use craterust-analyzer cargo glam 0.28.0 crate/::{f64rust-analyzer cargo glam 0.28.0 f64/::mathrust-analyzer cargo glam 0.28.0 f64/math/, BVec4rust-analyzer cargo glam 0.28.0 bool/bvec4/BVec4#, DVec2rust-analyzer cargo glam 0.28.0 f64/dvec2/DVec2#, DVec3rust-analyzer cargo glam 0.28.0 f64/dvec3/DVec3#, IVec4rust-analyzer cargo glam 0.28.0 i32/ivec4/IVec4#, UVec4rust-analyzer cargo glam 0.28.0 u32/uvec4/UVec4#, Vec4rust-analyzer cargo glam 0.28.0 f32/sse2/vec4/Vec4#};
6
7 #[cfg(not(target_arch = "spirv"))]
8 use corerust-analyzer cargo core https://github.com/rust-lang/rust/library/core crate/::fmtrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/;
9 use corerust-analyzer cargo core https://github.com/rust-lang/rust/library/core crate/::iterrust-analyzer cargo core https://github.com/rust-lang/rust/library/core iter/::{Productrust-analyzer cargo core https://github.com/rust-lang/rust/library/core iter/traits/accum/Product#, Sumrust-analyzer cargo core https://github.com/rust-lang/rust/library/core iter/traits/accum/Sum#};
10 use corerust-analyzer cargo core https://github.com/rust-lang/rust/library/core crate/::{f32rust-analyzer cargo core https://github.com/rust-lang/rust/library/core f32/, opsrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/::*};
11
12 /// Creates a 4-dimensional vector.
13 #[inline(always)]
14 #[must_use]
15 pub const fn dvec4rust-analyzer cargo glam 0.28.0 f64/dvec4/dvec4().(x: f64, y: f64, z: f64, w: f64) -> DVec4rust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4# {
16 DVec4rust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#::newrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4]new().(x, y, z, w)
17 }
18
19 /// A 4-dimensional vector.
20 #[deriverust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/derive:(Clonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core clone/Clone:, Copyrust-analyzer cargo core https://github.com/rust-lang/rust/library/core marker/Copy:, PartialEqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/PartialEq:)]
21 #[cfg_attr(feature = "cuda", repr(align(16)))]
22 #[cfg_attr(not(target_arch = "spirv"), repr(C))]
23 #[cfg_attr(target_arch = "spirv", repr(simd))]
24 pub struct DVec4rust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4# {
25 pub xrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#x.: f64,
26 pub yrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#y.: f64,
27 pub zrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#z.: f64,
28 pub wrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#w.: f64,
29 }
30
31 impl DVec4rust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4# {
32 /// All zeroes.
33 pub const ZEROrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4]ZERO.: Selfrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4] = Selfrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4]::splatrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4]splat().(0.0);
34
35 /// All ones.
36 pub const ONErust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4]ONE.: Selfrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4] = Selfrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4]::splatrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4]splat().(1.0);
37
38 /// All negative ones.
39 pub const NEG_ONErust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4]NEG_ONE.: Selfrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4] = Selfrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4]::splatrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4]splat().(-rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][Neg]neg().1.0);
40
41 /// All `f64::MIN`.
42 pub const MINrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4]MIN.: Selfrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4] = Selfrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4]::splatrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4]splat().(f64::MINrust-analyzer cargo core https://github.com/rust-lang/rust/library/core f64/impl#[f64]MIN.);
43
44 /// All `f64::MAX`.
45 pub const MAXrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4]MAX.: Selfrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4] = Selfrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4]::splatrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4]splat().(f64::MAXrust-analyzer cargo core https://github.com/rust-lang/rust/library/core f64/impl#[f64]MAX.);
46
47 /// All `f64::NAN`.
48 pub const NANrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4]NAN.: Selfrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4] = Selfrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4]::splatrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4]splat().(f64::NANrust-analyzer cargo core https://github.com/rust-lang/rust/library/core f64/impl#[f64]NAN.);
49
50 /// All `f64::INFINITY`.
51 pub const INFINITYrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4]INFINITY.: Selfrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4] = Selfrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4]::splatrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4]splat().(f64::INFINITYrust-analyzer cargo core https://github.com/rust-lang/rust/library/core f64/impl#[f64]INFINITY.);
52
53 /// All `f64::NEG_INFINITY`.
54 pub const NEG_INFINITYrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4]NEG_INFINITY.: Selfrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4] = Selfrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4]::splatrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4]splat().(f64::NEG_INFINITYrust-analyzer cargo core https://github.com/rust-lang/rust/library/core f64/impl#[f64]NEG_INFINITY.);
55
56 /// A unit vector pointing along the positive X axis.
57 pub const Xrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4]X.: Selfrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4] = Selfrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4]::newrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4]new().(1.0, 0.0, 0.0, 0.0);
58
59 /// A unit vector pointing along the positive Y axis.
60 pub const Yrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4]Y.: Selfrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4] = Selfrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4]::newrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4]new().(0.0, 1.0, 0.0, 0.0);
61
62 /// A unit vector pointing along the positive Z axis.
63 pub const Zrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4]Z.: Selfrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4] = Selfrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4]::newrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4]new().(0.0, 0.0, 1.0, 0.0);
64
65 /// A unit vector pointing along the positive W axis.
66 pub const Wrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4]W.: Selfrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4] = Selfrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4]::newrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4]new().(0.0, 0.0, 0.0, 1.0);
67
68 /// A unit vector pointing along the negative X axis.
69 pub const NEG_Xrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4]NEG_X.: Selfrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4] = Selfrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4]::newrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4]new().(-rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][Neg]neg().1.0, 0.0, 0.0, 0.0);
70
71 /// A unit vector pointing along the negative Y axis.
72 pub const NEG_Yrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4]NEG_Y.: Selfrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4] = Selfrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4]::newrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4]new().(0.0, -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][Neg]neg().1.0, 0.0, 0.0);
73
74 /// A unit vector pointing along the negative Z axis.
75 pub const NEG_Zrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4]NEG_Z.: Selfrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4] = Selfrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4]::newrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4]new().(0.0, 0.0, -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][Neg]neg().1.0, 0.0);
76
77 /// A unit vector pointing along the negative W axis.
78 pub const NEG_Wrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4]NEG_W.: Selfrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4] = Selfrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4]::newrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4]new().(0.0, 0.0, 0.0, -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][Neg]neg().1.0);
79
80 /// The unit axes.
81 pub const AXESrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4]AXES.: [Selfrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4]; 4] = [Selfrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4]::Xrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4]X., Selfrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4]::Yrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4]Y., Selfrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4]::Zrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4]Z., Selfrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4]::Wrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4]W.];
82
83 /// Creates a new vector.
84 #[inline(always)]
85 #[must_use]
86 pub const fn newrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4]new().(x: f64, y: f64, z: f64, w: f64) -> Selfrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4] {
87 Selfrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4] { xrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#x., yrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#y., zrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#z., wrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#w. }
88 }
89
90 /// Creates a vector with all elements set to `v`.
91 #[inline]
92 #[must_use]
93 pub const fn splatrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4]splat().(v: f64) -> Selfrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4] {
94 Selfrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4] {
95 xrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#x.: v,
96
97 yrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#y.: v,
98
99 zrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#z.: v,
100
101 wrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#w.: v,
102 }
103 }
104
105 /// Creates a vector from the elements in `if_true` and `if_false`, selecting which to use
106 /// for each element of `self`.
107 ///
108 /// A true element in the mask uses the corresponding element from `if_true`, and false
109 /// uses the element from `if_false`.
110 #[inline]
111 #[must_use]
112 pub fn selectrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4]select().(mask: BVec4rust-analyzer cargo glam 0.28.0 bool/bvec4/BVec4#, if_true: Selfrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4], if_false: Selfrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4]) -> Selfrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4] {
113 Selfrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4] {
114 xrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#x.: if mask.testrust-analyzer cargo glam 0.28.0 bool/bvec4/impl#[BVec4]test().(0) { if_true.xrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#x. } else { if_false.xrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#x. },
115 yrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#y.: if mask.testrust-analyzer cargo glam 0.28.0 bool/bvec4/impl#[BVec4]test().(1) { if_true.yrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#y. } else { if_false.yrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#y. },
116 zrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#z.: if mask.testrust-analyzer cargo glam 0.28.0 bool/bvec4/impl#[BVec4]test().(2) { if_true.zrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#z. } else { if_false.zrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#z. },
117 wrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#w.: if mask.testrust-analyzer cargo glam 0.28.0 bool/bvec4/impl#[BVec4]test().(3) { if_true.wrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#w. } else { if_false.wrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#w. },
118 }
119 }
120
121 /// Creates a new vector from an array.
122 #[inline]
123 #[must_use]
124 pub const fn from_arrayrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4]from_array().(a: [f64; 4]) -> Selfrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4] {
125 Selfrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4]::newrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4]new().(a[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index().0]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index()., a[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index().1]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index()., a[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index().2]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index()., a[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index().3]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index().)
126 }
127
128 /// `[x, y, z, w]`
129 #[inline]
130 #[must_use]
131 pub const fn to_arrayrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4]to_array().(&self) -> [f64; 4] {
132 [self.xrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#x., self.yrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#y., self.zrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#z., self.wrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#w.]
133 }
134
135 /// Creates a vector from the first 4 values in `slice`.
136 ///
137 /// # Panics
138 ///
139 /// Panics if `slice` is less than 4 elements long.
140 #[inline]
141 #[must_use]
142 pub const fn from_slicerust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4]from_slice().(slice: &[f64]) -> Selfrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4] {
143 Selfrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4]::newrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4]new().(slice[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/index/Index#index().0]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/index/Index#index()., slice[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/index/Index#index().1]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/index/Index#index()., slice[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/index/Index#index().2]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/index/Index#index()., slice[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/index/Index#index().3]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/index/Index#index().)
144 }
145
146 /// Writes the elements of `self` to the first 4 elements in `slice`.
147 ///
148 /// # Panics
149 ///
150 /// Panics if `slice` is less than 4 elements long.
151 #[inline]
152 pub fn write_to_slicerust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4]write_to_slice().(self, slice: &mut [f64]) {
153 slice[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/index/IndexMut#index_mut().0]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/index/IndexMut#index_mut(). = self.xrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#x.;
154 slice[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/index/IndexMut#index_mut().1]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/index/IndexMut#index_mut(). = self.yrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#y.;
155 slice[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/index/IndexMut#index_mut().2]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/index/IndexMut#index_mut(). = self.zrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#z.;
156 slice[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/index/IndexMut#index_mut().3]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/index/IndexMut#index_mut(). = self.wrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#w.;
157 }
158
159 /// Creates a 3D vector from the `x`, `y` and `z` elements of `self`, discarding `w`.
160 ///
161 /// Truncation to [`DVec3`] may also be performed by using [`self.xyz()`][crate::swizzles::Vec4Swizzles::xyz()].
162 #[inline]
163 #[must_use]
164 pub fn truncaterust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4]truncate().(self) -> DVec3rust-analyzer cargo glam 0.28.0 f64/dvec3/DVec3# {
165 use craterust-analyzer cargo glam 0.28.0 crate/::swizzlesrust-analyzer cargo glam 0.28.0 swizzles/::Vec4Swizzlesrust-analyzer cargo glam 0.28.0 swizzles/vec_traits/Vec4Swizzles#;
166 self.xyzrust-analyzer cargo glam 0.28.0 swizzles/dvec4_impl/impl#[DVec4][Vec4Swizzles]xyz().()
167 }
168
169 /// Creates a 4D vector from `self` with the given value of `x`.
170 #[inline]
171 #[must_use]
172 pub fn with_xrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4]with_x().(mut self, x: f64) -> Selfrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4] {
173 self.xrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#x. = x;
174 self
175 }
176
177 /// Creates a 4D vector from `self` with the given value of `y`.
178 #[inline]
179 #[must_use]
180 pub fn with_yrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4]with_y().(mut self, y: f64) -> Selfrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4] {
181 self.yrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#y. = y;
182 self
183 }
184
185 /// Creates a 4D vector from `self` with the given value of `z`.
186 #[inline]
187 #[must_use]
188 pub fn with_zrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4]with_z().(mut self, z: f64) -> Selfrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4] {
189 self.zrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#z. = z;
190 self
191 }
192
193 /// Creates a 4D vector from `self` with the given value of `w`.
194 #[inline]
195 #[must_use]
196 pub fn with_wrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4]with_w().(mut self, w: f64) -> Selfrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4] {
197 self.wrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#w. = w;
198 self
199 }
200
201 /// Computes the dot product of `self` and `rhs`.
202 #[inline]
203 #[must_use]
204 pub fn dotrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4]dot().(self, rhs: Selfrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4]) -> f64 {
205 (self.xrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#x. rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().rhs.xrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#x.) rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Add<Self>`]add().+rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Add<Self>`]add(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Add<Self>`]add().(self.yrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#y. rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().rhs.yrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#y.) rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Add<Self>`]add().+rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Add<Self>`]add(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Add<Self>`]add().(self.zrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#z. rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().rhs.zrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#z.) rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Add<Self>`]add().+rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Add<Self>`]add(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Add<Self>`]add().(self.wrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#w. rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().rhs.wrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#w.)
206 }
207
208 /// Returns a vector where every component is the dot product of `self` and `rhs`.
209 #[inline]
210 #[must_use]
211 pub fn dot_into_vecrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4]dot_into_vec().(self, rhs: Selfrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4]) -> Selfrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4] {
212 Selfrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4]::splatrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4]splat().(self.dotrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4]dot().(rhs))
213 }
214
215 /// Returns a vector containing the minimum values for each element of `self` and `rhs`.
216 ///
217 /// In other words this computes `[self.x.min(rhs.x), self.y.min(rhs.y), ..]`.
218 #[inline]
219 #[must_use]
220 pub fn minrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4]min().(self, rhs: Selfrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4]) -> Selfrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4] {
221 Selfrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4] {
222 xrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#x.: self.xrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#x..minrust-analyzer cargo core https://github.com/rust-lang/rust/library/core f64/impl#[f64]min().(rhs.xrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#x.),
223 yrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#y.: self.yrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#y..minrust-analyzer cargo core https://github.com/rust-lang/rust/library/core f64/impl#[f64]min().(rhs.yrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#y.),
224 zrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#z.: self.zrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#z..minrust-analyzer cargo core https://github.com/rust-lang/rust/library/core f64/impl#[f64]min().(rhs.zrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#z.),
225 wrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#w.: self.wrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#w..minrust-analyzer cargo core https://github.com/rust-lang/rust/library/core f64/impl#[f64]min().(rhs.wrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#w.),
226 }
227 }
228
229 /// Returns a vector containing the maximum values for each element of `self` and `rhs`.
230 ///
231 /// In other words this computes `[self.x.max(rhs.x), self.y.max(rhs.y), ..]`.
232 #[inline]
233 #[must_use]
234 pub fn maxrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4]max().(self, rhs: Selfrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4]) -> Selfrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4] {
235 Selfrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4] {
236 xrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#x.: self.xrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#x..maxrust-analyzer cargo core https://github.com/rust-lang/rust/library/core f64/impl#[f64]max().(rhs.xrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#x.),
237 yrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#y.: self.yrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#y..maxrust-analyzer cargo core https://github.com/rust-lang/rust/library/core f64/impl#[f64]max().(rhs.yrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#y.),
238 zrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#z.: self.zrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#z..maxrust-analyzer cargo core https://github.com/rust-lang/rust/library/core f64/impl#[f64]max().(rhs.zrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#z.),
239 wrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#w.: self.wrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#w..maxrust-analyzer cargo core https://github.com/rust-lang/rust/library/core f64/impl#[f64]max().(rhs.wrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#w.),
240 }
241 }
242
243 /// Component-wise clamping of values, similar to [`f64::clamp`].
244 ///
245 /// Each element in `min` must be less-or-equal to the corresponding element in `max`.
246 ///
247 /// # Panics
248 ///
249 /// Will panic if `min` is greater than `max` when `glam_assert` is enabled.
250 #[inline]
251 #[must_use]
252 pub fn clamprust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4]clamp().(self, min: Selfrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4], max: Selfrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4]) -> Selfrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4] {
253 glam_assertrust-analyzer cargo glam 0.28.0 macros/glam_assert!!(min.cmple(max).all(), "clamp: expected min <= max");
254 self.maxrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4]max().(min).minrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4]min().(max)
255 }
256
257 /// Returns the horizontal minimum of `self`.
258 ///
259 /// In other words this computes `min(x, y, ..)`.
260 #[inline]
261 #[must_use]
262 pub fn min_elementrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4]min_element().(self) -> f64 {
263 self.xrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#x..minrust-analyzer cargo core https://github.com/rust-lang/rust/library/core f64/impl#[f64]min().(self.yrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#y..minrust-analyzer cargo core https://github.com/rust-lang/rust/library/core f64/impl#[f64]min().(self.zrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#z..minrust-analyzer cargo core https://github.com/rust-lang/rust/library/core f64/impl#[f64]min().(self.wrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#w.)))
264 }
265
266 /// Returns the horizontal maximum of `self`.
267 ///
268 /// In other words this computes `max(x, y, ..)`.
269 #[inline]
270 #[must_use]
271 pub fn max_elementrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4]max_element().(self) -> f64 {
272 self.xrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#x..maxrust-analyzer cargo core https://github.com/rust-lang/rust/library/core f64/impl#[f64]max().(self.yrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#y..maxrust-analyzer cargo core https://github.com/rust-lang/rust/library/core f64/impl#[f64]max().(self.zrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#z..maxrust-analyzer cargo core https://github.com/rust-lang/rust/library/core f64/impl#[f64]max().(self.wrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#w.)))
273 }
274
275 /// Returns the sum of all elements of `self`.
276 ///
277 /// In other words, this computes `self.x + self.y + ..`.
278 #[inline]
279 #[must_use]
280 pub fn element_sumrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4]element_sum().(self) -> f64 {
281 self.xrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#x. rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Add<Self>`]add().+rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Add<Self>`]add(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Add<Self>`]add().self.yrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#y. rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Add<Self>`]add().+rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Add<Self>`]add(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Add<Self>`]add().self.zrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#z. rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Add<Self>`]add().+rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Add<Self>`]add(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Add<Self>`]add().self.wrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#w.
282 }
283
284 /// Returns the product of all elements of `self`.
285 ///
286 /// In other words, this computes `self.x * self.y * ..`.
287 #[inline]
288 #[must_use]
289 pub fn element_productrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4]element_product().(self) -> f64 {
290 self.xrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#x. rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().self.yrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#y. rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().self.zrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#z. rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().self.wrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#w.
291 }
292
293 /// Returns a vector mask containing the result of a `==` comparison for each element of
294 /// `self` and `rhs`.
295 ///
296 /// In other words, this computes `[self.x == rhs.x, self.y == rhs.y, ..]` for all
297 /// elements.
298 #[inline]
299 #[must_use]
300 pub fn cmpeqrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4]cmpeq().(self, rhs: Selfrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4]) -> BVec4rust-analyzer cargo glam 0.28.0 bool/bvec4/BVec4# {
301 BVec4rust-analyzer cargo glam 0.28.0 bool/bvec4/BVec4#::newrust-analyzer cargo glam 0.28.0 bool/bvec4/impl#[BVec4]new().(
302 self.xrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#x..eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[f64][`PartialEq<Self>`]eq().(&rhs.xrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#x.),
303 self.yrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#y..eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[f64][`PartialEq<Self>`]eq().(&rhs.yrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#y.),
304 self.zrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#z..eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[f64][`PartialEq<Self>`]eq().(&rhs.zrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#z.),
305 self.wrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#w..eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[f64][`PartialEq<Self>`]eq().(&rhs.wrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#w.),
306 )
307 }
308
309 /// Returns a vector mask containing the result of a `!=` comparison for each element of
310 /// `self` and `rhs`.
311 ///
312 /// In other words this computes `[self.x != rhs.x, self.y != rhs.y, ..]` for all
313 /// elements.
314 #[inline]
315 #[must_use]
316 pub fn cmpnerust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4]cmpne().(self, rhs: Selfrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4]) -> BVec4rust-analyzer cargo glam 0.28.0 bool/bvec4/BVec4# {
317 BVec4rust-analyzer cargo glam 0.28.0 bool/bvec4/BVec4#::newrust-analyzer cargo glam 0.28.0 bool/bvec4/impl#[BVec4]new().(
318 self.xrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#x..nerust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[f64][`PartialEq<Self>`]ne().(&rhs.xrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#x.),
319 self.yrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#y..nerust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[f64][`PartialEq<Self>`]ne().(&rhs.yrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#y.),
320 self.zrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#z..nerust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[f64][`PartialEq<Self>`]ne().(&rhs.zrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#z.),
321 self.wrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#w..nerust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[f64][`PartialEq<Self>`]ne().(&rhs.wrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#w.),
322 )
323 }
324
325 /// Returns a vector mask containing the result of a `>=` comparison for each element of
326 /// `self` and `rhs`.
327 ///
328 /// In other words this computes `[self.x >= rhs.x, self.y >= rhs.y, ..]` for all
329 /// elements.
330 #[inline]
331 #[must_use]
332 pub fn cmpgerust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4]cmpge().(self, rhs: Selfrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4]) -> BVec4rust-analyzer cargo glam 0.28.0 bool/bvec4/BVec4# {
333 BVec4rust-analyzer cargo glam 0.28.0 bool/bvec4/BVec4#::newrust-analyzer cargo glam 0.28.0 bool/bvec4/impl#[BVec4]new().(
334 self.xrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#x..gerust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[f64][`PartialOrd<Self>`]ge().(&rhs.xrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#x.),
335 self.yrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#y..gerust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[f64][`PartialOrd<Self>`]ge().(&rhs.yrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#y.),
336 self.zrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#z..gerust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[f64][`PartialOrd<Self>`]ge().(&rhs.zrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#z.),
337 self.wrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#w..gerust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[f64][`PartialOrd<Self>`]ge().(&rhs.wrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#w.),
338 )
339 }
340
341 /// Returns a vector mask containing the result of a `>` comparison for each element of
342 /// `self` and `rhs`.
343 ///
344 /// In other words this computes `[self.x > rhs.x, self.y > rhs.y, ..]` for all
345 /// elements.
346 #[inline]
347 #[must_use]
348 pub fn cmpgtrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4]cmpgt().(self, rhs: Selfrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4]) -> BVec4rust-analyzer cargo glam 0.28.0 bool/bvec4/BVec4# {
349 BVec4rust-analyzer cargo glam 0.28.0 bool/bvec4/BVec4#::newrust-analyzer cargo glam 0.28.0 bool/bvec4/impl#[BVec4]new().(
350 self.xrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#x..gtrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[f64][`PartialOrd<Self>`]gt().(&rhs.xrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#x.),
351 self.yrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#y..gtrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[f64][`PartialOrd<Self>`]gt().(&rhs.yrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#y.),
352 self.zrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#z..gtrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[f64][`PartialOrd<Self>`]gt().(&rhs.zrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#z.),
353 self.wrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#w..gtrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[f64][`PartialOrd<Self>`]gt().(&rhs.wrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#w.),
354 )
355 }
356
357 /// Returns a vector mask containing the result of a `<=` comparison for each element of
358 /// `self` and `rhs`.
359 ///
360 /// In other words this computes `[self.x <= rhs.x, self.y <= rhs.y, ..]` for all
361 /// elements.
362 #[inline]
363 #[must_use]
364 pub fn cmplerust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4]cmple().(self, rhs: Selfrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4]) -> BVec4rust-analyzer cargo glam 0.28.0 bool/bvec4/BVec4# {
365 BVec4rust-analyzer cargo glam 0.28.0 bool/bvec4/BVec4#::newrust-analyzer cargo glam 0.28.0 bool/bvec4/impl#[BVec4]new().(
366 self.xrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#x..lerust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[f64][`PartialOrd<Self>`]le().(&rhs.xrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#x.),
367 self.yrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#y..lerust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[f64][`PartialOrd<Self>`]le().(&rhs.yrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#y.),
368 self.zrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#z..lerust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[f64][`PartialOrd<Self>`]le().(&rhs.zrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#z.),
369 self.wrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#w..lerust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[f64][`PartialOrd<Self>`]le().(&rhs.wrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#w.),
370 )
371 }
372
373 /// Returns a vector mask containing the result of a `<` comparison for each element of
374 /// `self` and `rhs`.
375 ///
376 /// In other words this computes `[self.x < rhs.x, self.y < rhs.y, ..]` for all
377 /// elements.
378 #[inline]
379 #[must_use]
380 pub fn cmpltrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4]cmplt().(self, rhs: Selfrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4]) -> BVec4rust-analyzer cargo glam 0.28.0 bool/bvec4/BVec4# {
381 BVec4rust-analyzer cargo glam 0.28.0 bool/bvec4/BVec4#::newrust-analyzer cargo glam 0.28.0 bool/bvec4/impl#[BVec4]new().(
382 self.xrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#x..ltrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[f64][`PartialOrd<Self>`]lt().(&rhs.xrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#x.),
383 self.yrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#y..ltrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[f64][`PartialOrd<Self>`]lt().(&rhs.yrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#y.),
384 self.zrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#z..ltrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[f64][`PartialOrd<Self>`]lt().(&rhs.zrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#z.),
385 self.wrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#w..ltrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[f64][`PartialOrd<Self>`]lt().(&rhs.wrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#w.),
386 )
387 }
388
389 /// Returns a vector containing the absolute value of each element of `self`.
390 #[inline]
391 #[must_use]
392 pub fn absrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4]abs().(self) -> Selfrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4] {
393 Selfrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4] {
394 xrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#x.: mathrust-analyzer cargo glam 0.28.0 f64/math/::absrust-analyzer cargo glam 0.28.0 f64/math/std_math/abs().(self.xrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#x.),
395 yrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#y.: mathrust-analyzer cargo glam 0.28.0 f64/math/::absrust-analyzer cargo glam 0.28.0 f64/math/std_math/abs().(self.yrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#y.),
396 zrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#z.: mathrust-analyzer cargo glam 0.28.0 f64/math/::absrust-analyzer cargo glam 0.28.0 f64/math/std_math/abs().(self.zrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#z.),
397 wrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#w.: mathrust-analyzer cargo glam 0.28.0 f64/math/::absrust-analyzer cargo glam 0.28.0 f64/math/std_math/abs().(self.wrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#w.),
398 }
399 }
400
401 /// Returns a vector with elements representing the sign of `self`.
402 ///
403 /// - `1.0` if the number is positive, `+0.0` or `INFINITY`
404 /// - `-1.0` if the number is negative, `-0.0` or `NEG_INFINITY`
405 /// - `NAN` if the number is `NAN`
406 #[inline]
407 #[must_use]
408 pub fn signumrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4]signum().(self) -> Selfrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4] {
409 Selfrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4] {
410 xrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#x.: mathrust-analyzer cargo glam 0.28.0 f64/math/::signumrust-analyzer cargo glam 0.28.0 f64/math/std_math/signum().(self.xrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#x.),
411 yrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#y.: mathrust-analyzer cargo glam 0.28.0 f64/math/::signumrust-analyzer cargo glam 0.28.0 f64/math/std_math/signum().(self.yrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#y.),
412 zrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#z.: mathrust-analyzer cargo glam 0.28.0 f64/math/::signumrust-analyzer cargo glam 0.28.0 f64/math/std_math/signum().(self.zrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#z.),
413 wrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#w.: mathrust-analyzer cargo glam 0.28.0 f64/math/::signumrust-analyzer cargo glam 0.28.0 f64/math/std_math/signum().(self.wrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#w.),
414 }
415 }
416
417 /// Returns a vector with signs of `rhs` and the magnitudes of `self`.
418 #[inline]
419 #[must_use]
420 pub fn copysignrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4]copysign().(self, rhs: Selfrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4]) -> Selfrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4] {
421 Selfrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4] {
422 xrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#x.: mathrust-analyzer cargo glam 0.28.0 f64/math/::copysignrust-analyzer cargo glam 0.28.0 f64/math/std_math/copysign().(self.xrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#x., rhs.xrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#x.),
423 yrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#y.: mathrust-analyzer cargo glam 0.28.0 f64/math/::copysignrust-analyzer cargo glam 0.28.0 f64/math/std_math/copysign().(self.yrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#y., rhs.yrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#y.),
424 zrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#z.: mathrust-analyzer cargo glam 0.28.0 f64/math/::copysignrust-analyzer cargo glam 0.28.0 f64/math/std_math/copysign().(self.zrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#z., rhs.zrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#z.),
425 wrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#w.: mathrust-analyzer cargo glam 0.28.0 f64/math/::copysignrust-analyzer cargo glam 0.28.0 f64/math/std_math/copysign().(self.wrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#w., rhs.wrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#w.),
426 }
427 }
428
429 /// Returns a bitmask with the lowest 4 bits set to the sign bits from the elements of `self`.
430 ///
431 /// A negative element results in a `1` bit and a positive element in a `0` bit. Element `x` goes
432 /// into the first lowest bit, element `y` into the second, etc.
433 #[inline]
434 #[must_use]
435 pub fn is_negative_bitmaskrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4]is_negative_bitmask().(self) -> u32 {
436 (self.xrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#x..is_sign_negativerust-analyzer cargo core https://github.com/rust-lang/rust/library/core f64/impl#[f64]is_sign_negative().() as u32)
437 |rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u32][`BitOr<Self>`]bitor(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u32][`BitOr<Self>`]bitor().(self.yrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#y..is_sign_negativerust-analyzer cargo core https://github.com/rust-lang/rust/library/core f64/impl#[f64]is_sign_negative().() as u32) rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u32][`Shl<i32>`]shl().<<rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u32][`Shl<i32>`]shl(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u32][`Shl<i32>`]shl().1
438 |rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u32][`BitOr<Self>`]bitor(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u32][`BitOr<Self>`]bitor().(self.zrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#z..is_sign_negativerust-analyzer cargo core https://github.com/rust-lang/rust/library/core f64/impl#[f64]is_sign_negative().() as u32) rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u32][`Shl<i32>`]shl().<<rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u32][`Shl<i32>`]shl(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u32][`Shl<i32>`]shl().2
439 |rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u32][`BitOr<Self>`]bitor(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u32][`BitOr<Self>`]bitor().(self.wrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#w..is_sign_negativerust-analyzer cargo core https://github.com/rust-lang/rust/library/core f64/impl#[f64]is_sign_negative().() as u32) rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u32][`Shl<i32>`]shl().<<rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u32][`Shl<i32>`]shl(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u32][`Shl<i32>`]shl().3
440 }
441
442 /// Returns `true` if, and only if, all elements are finite. If any element is either
443 /// `NaN`, positive or negative infinity, this will return `false`.
444 #[inline]
445 #[must_use]
446 pub fn is_finiterust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4]is_finite().(self) -> bool {
447 self.xrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#x..is_finiterust-analyzer cargo core https://github.com/rust-lang/rust/library/core f64/impl#[f64]is_finite().() && self.yrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#y..is_finiterust-analyzer cargo core https://github.com/rust-lang/rust/library/core f64/impl#[f64]is_finite().() && self.zrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#z..is_finiterust-analyzer cargo core https://github.com/rust-lang/rust/library/core f64/impl#[f64]is_finite().() && self.wrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#w..is_finiterust-analyzer cargo core https://github.com/rust-lang/rust/library/core f64/impl#[f64]is_finite().()
448 }
449
450 /// Returns `true` if any elements are `NaN`.
451 #[inline]
452 #[must_use]
453 pub fn is_nanrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4]is_nan().(self) -> bool {
454 self.xrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#x..is_nanrust-analyzer cargo core https://github.com/rust-lang/rust/library/core f64/impl#[f64]is_nan().() || self.yrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#y..is_nanrust-analyzer cargo core https://github.com/rust-lang/rust/library/core f64/impl#[f64]is_nan().() || self.zrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#z..is_nanrust-analyzer cargo core https://github.com/rust-lang/rust/library/core f64/impl#[f64]is_nan().() || self.wrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#w..is_nanrust-analyzer cargo core https://github.com/rust-lang/rust/library/core f64/impl#[f64]is_nan().()
455 }
456
457 /// Performs `is_nan` on each element of self, returning a vector mask of the results.
458 ///
459 /// In other words, this computes `[x.is_nan(), y.is_nan(), z.is_nan(), w.is_nan()]`.
460 #[inline]
461 #[must_use]
462 pub fn is_nan_maskrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4]is_nan_mask().(self) -> BVec4rust-analyzer cargo glam 0.28.0 bool/bvec4/BVec4# {
463 BVec4rust-analyzer cargo glam 0.28.0 bool/bvec4/BVec4#::newrust-analyzer cargo glam 0.28.0 bool/bvec4/impl#[BVec4]new().(
464 self.xrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#x..is_nanrust-analyzer cargo core https://github.com/rust-lang/rust/library/core f64/impl#[f64]is_nan().(),
465 self.yrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#y..is_nanrust-analyzer cargo core https://github.com/rust-lang/rust/library/core f64/impl#[f64]is_nan().(),
466 self.zrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#z..is_nanrust-analyzer cargo core https://github.com/rust-lang/rust/library/core f64/impl#[f64]is_nan().(),
467 self.wrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#w..is_nanrust-analyzer cargo core https://github.com/rust-lang/rust/library/core f64/impl#[f64]is_nan().(),
468 )
469 }
470
471 /// Computes the length of `self`.
472 #[doc(alias = "magnitude")]
473 #[inline]
474 #[must_use]
475 pub fn lengthrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4]length().(self) -> f64 {
476 mathrust-analyzer cargo glam 0.28.0 f64/math/::sqrtrust-analyzer cargo glam 0.28.0 f64/math/std_math/sqrt().(self.dotrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4]dot().(self))
477 }
478
479 /// Computes the squared length of `self`.
480 ///
481 /// This is faster than `length()` as it avoids a square root operation.
482 #[doc(alias = "magnitude2")]
483 #[inline]
484 #[must_use]
485 pub fn length_squaredrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4]length_squared().(self) -> f64 {
486 self.dotrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4]dot().(self)
487 }
488
489 /// Computes `1.0 / length()`.
490 ///
491 /// For valid results, `self` must _not_ be of length zero.
492 #[inline]
493 #[must_use]
494 pub fn length_reciprust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4]length_recip().(self) -> f64 {
495 self.lengthrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4]length().().reciprust-analyzer cargo core https://github.com/rust-lang/rust/library/core f64/impl#[f64]recip().()
496 }
497
498 /// Computes the Euclidean distance between two points in space.
499 #[inline]
500 #[must_use]
501 pub fn distancerust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4]distance().(self, rhs: Selfrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4]) -> f64 {
502 (self rust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4][`Sub<Self>`]sub().-rust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4][`Sub<Self>`]sub(). rust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4][`Sub<Self>`]sub().rhs).lengthrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4]length().()
503 }
504
505 /// Compute the squared euclidean distance between two points in space.
506 #[inline]
507 #[must_use]
508 pub fn distance_squaredrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4]distance_squared().(self, rhs: Selfrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4]) -> f64 {
509 (self rust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4][`Sub<Self>`]sub().-rust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4][`Sub<Self>`]sub(). rust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4][`Sub<Self>`]sub().rhs).length_squaredrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4]length_squared().()
510 }
511
512 /// Returns the element-wise quotient of [Euclidean division] of `self` by `rhs`.
513 #[inline]
514 #[must_use]
515 pub fn div_euclidrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4]div_euclid().(self, rhs: Selfrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4]) -> Selfrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4] {
516 Selfrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4]::newrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4]new().(
517 mathrust-analyzer cargo glam 0.28.0 f64/math/::div_euclidrust-analyzer cargo glam 0.28.0 f64/math/std_math/div_euclid().(self.xrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#x., rhs.xrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#x.),
518 mathrust-analyzer cargo glam 0.28.0 f64/math/::div_euclidrust-analyzer cargo glam 0.28.0 f64/math/std_math/div_euclid().(self.yrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#y., rhs.yrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#y.),
519 mathrust-analyzer cargo glam 0.28.0 f64/math/::div_euclidrust-analyzer cargo glam 0.28.0 f64/math/std_math/div_euclid().(self.zrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#z., rhs.zrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#z.),
520 mathrust-analyzer cargo glam 0.28.0 f64/math/::div_euclidrust-analyzer cargo glam 0.28.0 f64/math/std_math/div_euclid().(self.wrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#w., rhs.wrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#w.),
521 )
522 }
523
524 /// Returns the element-wise remainder of [Euclidean division] of `self` by `rhs`.
525 ///
526 /// [Euclidean division]: f64::rem_euclid
527 #[inline]
528 #[must_use]
529 pub fn rem_euclidrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4]rem_euclid().(self, rhs: Selfrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4]) -> Selfrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4] {
530 Selfrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4]::newrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4]new().(
531 mathrust-analyzer cargo glam 0.28.0 f64/math/::rem_euclidrust-analyzer cargo glam 0.28.0 f64/math/std_math/rem_euclid().(self.xrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#x., rhs.xrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#x.),
532 mathrust-analyzer cargo glam 0.28.0 f64/math/::rem_euclidrust-analyzer cargo glam 0.28.0 f64/math/std_math/rem_euclid().(self.yrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#y., rhs.yrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#y.),
533 mathrust-analyzer cargo glam 0.28.0 f64/math/::rem_euclidrust-analyzer cargo glam 0.28.0 f64/math/std_math/rem_euclid().(self.zrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#z., rhs.zrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#z.),
534 mathrust-analyzer cargo glam 0.28.0 f64/math/::rem_euclidrust-analyzer cargo glam 0.28.0 f64/math/std_math/rem_euclid().(self.wrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#w., rhs.wrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#w.),
535 )
536 }
537
538 /// Returns `self` normalized to length 1.0.
539 ///
540 /// For valid results, `self` must _not_ be of length zero, nor very close to zero.
541 ///
542 /// See also [`Self::try_normalize()`] and [`Self::normalize_or_zero()`].
543 ///
544 /// Panics
545 ///
546 /// Will panic if `self` is zero length when `glam_assert` is enabled.
547 #[inline]
548 #[must_use]
549 pub fn normalizerust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4]normalize().(self) -> Selfrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4] {
550 #[allow(clippy::let_and_return)]
551 let normalized = self.mulrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4][`Mul<f64>`]mul().(self.length_reciprust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4]length_recip().());
552 glam_assertrust-analyzer cargo glam 0.28.0 macros/glam_assert!!(normalized.is_finite());
553 normalized
554 }
555
556 /// Returns `self` normalized to length 1.0 if possible, else returns `None`.
557 ///
558 /// In particular, if the input is zero (or very close to zero), or non-finite,
559 /// the result of this operation will be `None`.
560 ///
561 /// See also [`Self::normalize_or_zero()`].
562 #[inline]
563 #[must_use]
564 pub fn try_normalizerust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4]try_normalize().(self) -> Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<Selfrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4]> {
565 let rcp = self.length_reciprust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4]length_recip().();
566 if rcp.is_finiterust-analyzer cargo core https://github.com/rust-lang/rust/library/core f64/impl#[f64]is_finite().() && rcp rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[f64][`PartialOrd<Self>`]gt().>rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[f64][`PartialOrd<Self>`]gt(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[f64][`PartialOrd<Self>`]gt().0.0 {
567 Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(self rust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4][`Mul<f64>`]mul().*rust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4][`Mul<f64>`]mul(). rust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4][`Mul<f64>`]mul().rcp)
568 } else {
569 Nonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#None#
570 }
571 }
572
573 /// Returns `self` normalized to length 1.0 if possible, else returns a
574 /// fallback value.
575 ///
576 /// In particular, if the input is zero (or very close to zero), or non-finite,
577 /// the result of this operation will be the fallback value.
578 ///
579 /// See also [`Self::try_normalize()`].
580 #[inline]
581 #[must_use]
582 pub fn normalize_orrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4]normalize_or().(self, fallback: Selfrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4]) -> Selfrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4] {
583 let rcp = self.length_reciprust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4]length_recip().();
584 if rcp.is_finiterust-analyzer cargo core https://github.com/rust-lang/rust/library/core f64/impl#[f64]is_finite().() && rcp rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[f64][`PartialOrd<Self>`]gt().>rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[f64][`PartialOrd<Self>`]gt(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[f64][`PartialOrd<Self>`]gt().0.0 {
585 self rust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4][`Mul<f64>`]mul().*rust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4][`Mul<f64>`]mul(). rust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4][`Mul<f64>`]mul().rcp
586 } else {
587 fallback
588 }
589 }
590
591 /// Returns `self` normalized to length 1.0 if possible, else returns zero.
592 ///
593 /// In particular, if the input is zero (or very close to zero), or non-finite,
594 /// the result of this operation will be zero.
595 ///
596 /// See also [`Self::try_normalize()`].
597 #[inline]
598 #[must_use]
599 pub fn normalize_or_zerorust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4]normalize_or_zero().(self) -> Selfrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4] {
600 self.normalize_orrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4]normalize_or().(Selfrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4]::ZEROrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4]ZERO.)
601 }
602
603 /// Returns whether `self` is length `1.0` or not.
604 ///
605 /// Uses a precision threshold of approximately `1e-4`.
606 #[inline]
607 #[must_use]
608 pub fn is_normalizedrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4]is_normalized().(self) -> bool {
609 mathrust-analyzer cargo glam 0.28.0 f64/math/::absrust-analyzer cargo glam 0.28.0 f64/math/std_math/abs().(self.length_squaredrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4]length_squared().() rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Sub<Self>`]sub().-rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Sub<Self>`]sub(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Sub<Self>`]sub().1.0) rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[f64][`PartialOrd<Self>`]le().<=rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[f64][`PartialOrd<Self>`]le(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[f64][`PartialOrd<Self>`]le().2e-4
610 }
611
612 /// Returns the vector projection of `self` onto `rhs`.
613 ///
614 /// `rhs` must be of non-zero length.
615 ///
616 /// # Panics
617 ///
618 /// Will panic if `rhs` is zero length when `glam_assert` is enabled.
619 #[inline]
620 #[must_use]
621 pub fn project_ontorust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4]project_onto().(self, rhs: Selfrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4]) -> Selfrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4] {
622 let other_len_sq_rcp = rhs.dotrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4]dot().(rhs).reciprust-analyzer cargo core https://github.com/rust-lang/rust/library/core f64/impl#[f64]recip().();
623 glam_assertrust-analyzer cargo glam 0.28.0 macros/glam_assert!!(other_len_sq_rcp.is_finite());
624 rhs rust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4][`Mul<f64>`]mul().*rust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4][`Mul<f64>`]mul(). rust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4][`Mul<f64>`]mul().self.dotrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4]dot().(rhs) rust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4][`Mul<f64>`]mul().*rust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4][`Mul<f64>`]mul(). rust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4][`Mul<f64>`]mul().other_len_sq_rcp
625 }
626
627 /// Returns the vector rejection of `self` from `rhs`.
628 ///
629 /// The vector rejection is the vector perpendicular to the projection of `self` onto
630 /// `rhs`, in rhs words the result of `self - self.project_onto(rhs)`.
631 ///
632 /// `rhs` must be of non-zero length.
633 ///
634 /// # Panics
635 ///
636 /// Will panic if `rhs` has a length of zero when `glam_assert` is enabled.
637 #[inline]
638 #[must_use]
639 pub fn reject_fromrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4]reject_from().(self, rhs: Selfrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4]) -> Selfrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4] {
640 self rust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4][`Sub<Self>`]sub().-rust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4][`Sub<Self>`]sub(). rust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4][`Sub<Self>`]sub().self.project_ontorust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4]project_onto().(rhs)
641 }
642
643 /// Returns the vector projection of `self` onto `rhs`.
644 ///
645 /// `rhs` must be normalized.
646 ///
647 /// # Panics
648 ///
649 /// Will panic if `rhs` is not normalized when `glam_assert` is enabled.
650 #[inline]
651 #[must_use]
652 pub fn project_onto_normalizedrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4]project_onto_normalized().(self, rhs: Selfrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4]) -> Selfrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4] {
653 glam_assertrust-analyzer cargo glam 0.28.0 macros/glam_assert!!(rhs.is_normalized());
654 rhs rust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4][`Mul<f64>`]mul().*rust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4][`Mul<f64>`]mul(). rust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4][`Mul<f64>`]mul().self.dotrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4]dot().(rhs)
655 }
656
657 /// Returns the vector rejection of `self` from `rhs`.
658 ///
659 /// The vector rejection is the vector perpendicular to the projection of `self` onto
660 /// `rhs`, in rhs words the result of `self - self.project_onto(rhs)`.
661 ///
662 /// `rhs` must be normalized.
663 ///
664 /// # Panics
665 ///
666 /// Will panic if `rhs` is not normalized when `glam_assert` is enabled.
667 #[inline]
668 #[must_use]
669 pub fn reject_from_normalizedrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4]reject_from_normalized().(self, rhs: Selfrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4]) -> Selfrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4] {
670 self rust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4][`Sub<Self>`]sub().-rust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4][`Sub<Self>`]sub(). rust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4][`Sub<Self>`]sub().self.project_onto_normalizedrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4]project_onto_normalized().(rhs)
671 }
672
673 /// Returns a vector containing the nearest integer to a number for each element of `self`.
674 /// Round half-way cases away from 0.0.
675 #[inline]
676 #[must_use]
677 pub fn roundrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4]round().(self) -> Selfrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4] {
678 Selfrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4] {
679 xrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#x.: mathrust-analyzer cargo glam 0.28.0 f64/math/::roundrust-analyzer cargo glam 0.28.0 f64/math/std_math/round().(self.xrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#x.),
680 yrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#y.: mathrust-analyzer cargo glam 0.28.0 f64/math/::roundrust-analyzer cargo glam 0.28.0 f64/math/std_math/round().(self.yrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#y.),
681 zrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#z.: mathrust-analyzer cargo glam 0.28.0 f64/math/::roundrust-analyzer cargo glam 0.28.0 f64/math/std_math/round().(self.zrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#z.),
682 wrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#w.: mathrust-analyzer cargo glam 0.28.0 f64/math/::roundrust-analyzer cargo glam 0.28.0 f64/math/std_math/round().(self.wrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#w.),
683 }
684 }
685
686 /// Returns a vector containing the largest integer less than or equal to a number for each
687 /// element of `self`.
688 #[inline]
689 #[must_use]
690 pub fn floorrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4]floor().(self) -> Selfrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4] {
691 Selfrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4] {
692 xrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#x.: mathrust-analyzer cargo glam 0.28.0 f64/math/::floorrust-analyzer cargo glam 0.28.0 f64/math/std_math/floor().(self.xrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#x.),
693 yrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#y.: mathrust-analyzer cargo glam 0.28.0 f64/math/::floorrust-analyzer cargo glam 0.28.0 f64/math/std_math/floor().(self.yrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#y.),
694 zrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#z.: mathrust-analyzer cargo glam 0.28.0 f64/math/::floorrust-analyzer cargo glam 0.28.0 f64/math/std_math/floor().(self.zrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#z.),
695 wrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#w.: mathrust-analyzer cargo glam 0.28.0 f64/math/::floorrust-analyzer cargo glam 0.28.0 f64/math/std_math/floor().(self.wrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#w.),
696 }
697 }
698
699 /// Returns a vector containing the smallest integer greater than or equal to a number for
700 /// each element of `self`.
701 #[inline]
702 #[must_use]
703 pub fn ceilrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4]ceil().(self) -> Selfrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4] {
704 Selfrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4] {
705 xrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#x.: mathrust-analyzer cargo glam 0.28.0 f64/math/::ceilrust-analyzer cargo glam 0.28.0 f64/math/std_math/ceil().(self.xrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#x.),
706 yrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#y.: mathrust-analyzer cargo glam 0.28.0 f64/math/::ceilrust-analyzer cargo glam 0.28.0 f64/math/std_math/ceil().(self.yrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#y.),
707 zrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#z.: mathrust-analyzer cargo glam 0.28.0 f64/math/::ceilrust-analyzer cargo glam 0.28.0 f64/math/std_math/ceil().(self.zrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#z.),
708 wrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#w.: mathrust-analyzer cargo glam 0.28.0 f64/math/::ceilrust-analyzer cargo glam 0.28.0 f64/math/std_math/ceil().(self.wrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#w.),
709 }
710 }
711
712 /// Returns a vector containing the integer part each element of `self`. This means numbers are
713 /// always truncated towards zero.
714 #[inline]
715 #[must_use]
716 pub fn truncrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4]trunc().(self) -> Selfrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4] {
717 Selfrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4] {
718 xrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#x.: mathrust-analyzer cargo glam 0.28.0 f64/math/::truncrust-analyzer cargo glam 0.28.0 f64/math/std_math/trunc().(self.xrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#x.),
719 yrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#y.: mathrust-analyzer cargo glam 0.28.0 f64/math/::truncrust-analyzer cargo glam 0.28.0 f64/math/std_math/trunc().(self.yrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#y.),
720 zrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#z.: mathrust-analyzer cargo glam 0.28.0 f64/math/::truncrust-analyzer cargo glam 0.28.0 f64/math/std_math/trunc().(self.zrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#z.),
721 wrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#w.: mathrust-analyzer cargo glam 0.28.0 f64/math/::truncrust-analyzer cargo glam 0.28.0 f64/math/std_math/trunc().(self.wrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#w.),
722 }
723 }
724
725 /// Returns a vector containing the fractional part of the vector as `self - self.trunc()`.
726 ///
727 /// Note that this differs from the GLSL implementation of `fract` which returns
728 /// `self - self.floor()`.
729 ///
730 /// Note that this is fast but not precise for large numbers.
731 #[inline]
732 #[must_use]
733 pub fn fractrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4]fract().(self) -> Selfrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4] {
734 self rust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4][`Sub<Self>`]sub().-rust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4][`Sub<Self>`]sub(). rust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4][`Sub<Self>`]sub().self.truncrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4]trunc().()
735 }
736
737 /// Returns a vector containing the fractional part of the vector as `self - self.floor()`.
738 ///
739 /// Note that this differs from the Rust implementation of `fract` which returns
740 /// `self - self.trunc()`.
741 ///
742 /// Note that this is fast but not precise for large numbers.
743 #[inline]
744 #[must_use]
745 pub fn fract_glrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4]fract_gl().(self) -> Selfrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4] {
746 self rust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4][`Sub<Self>`]sub().-rust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4][`Sub<Self>`]sub(). rust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4][`Sub<Self>`]sub().self.floorrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4]floor().()
747 }
748
749 /// Returns a vector containing `e^self` (the exponential function) for each element of
750 /// `self`.
751 #[inline]
752 #[must_use]
753 pub fn exprust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4]exp().(self) -> Selfrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4] {
754 Selfrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4]::newrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4]new().(
755 mathrust-analyzer cargo glam 0.28.0 f64/math/::exprust-analyzer cargo glam 0.28.0 f64/math/std_math/exp().(self.xrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#x.),
756 mathrust-analyzer cargo glam 0.28.0 f64/math/::exprust-analyzer cargo glam 0.28.0 f64/math/std_math/exp().(self.yrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#y.),
757 mathrust-analyzer cargo glam 0.28.0 f64/math/::exprust-analyzer cargo glam 0.28.0 f64/math/std_math/exp().(self.zrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#z.),
758 mathrust-analyzer cargo glam 0.28.0 f64/math/::exprust-analyzer cargo glam 0.28.0 f64/math/std_math/exp().(self.wrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#w.),
759 )
760 }
761
762 /// Returns a vector containing each element of `self` raised to the power of `n`.
763 #[inline]
764 #[must_use]
765 pub fn powfrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4]powf().(self, n: f64) -> Selfrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4] {
766 Selfrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4]::newrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4]new().(
767 mathrust-analyzer cargo glam 0.28.0 f64/math/::powfrust-analyzer cargo glam 0.28.0 f64/math/std_math/powf().(self.xrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#x., n),
768 mathrust-analyzer cargo glam 0.28.0 f64/math/::powfrust-analyzer cargo glam 0.28.0 f64/math/std_math/powf().(self.yrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#y., n),
769 mathrust-analyzer cargo glam 0.28.0 f64/math/::powfrust-analyzer cargo glam 0.28.0 f64/math/std_math/powf().(self.zrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#z., n),
770 mathrust-analyzer cargo glam 0.28.0 f64/math/::powfrust-analyzer cargo glam 0.28.0 f64/math/std_math/powf().(self.wrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#w., n),
771 )
772 }
773
774 /// Returns a vector containing the reciprocal `1.0/n` of each element of `self`.
775 #[inline]
776 #[must_use]
777 pub fn reciprust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4]recip().(self) -> Selfrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4] {
778 Selfrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4] {
779 xrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#x.: 1.0 rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Div<Self>`]div()./rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Div<Self>`]div(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Div<Self>`]div().self.xrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#x.,
780 yrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#y.: 1.0 rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Div<Self>`]div()./rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Div<Self>`]div(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Div<Self>`]div().self.yrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#y.,
781 zrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#z.: 1.0 rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Div<Self>`]div()./rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Div<Self>`]div(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Div<Self>`]div().self.zrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#z.,
782 wrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#w.: 1.0 rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Div<Self>`]div()./rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Div<Self>`]div(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Div<Self>`]div().self.wrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#w.,
783 }
784 }
785
786 /// Performs a linear interpolation between `self` and `rhs` based on the value `s`.
787 ///
788 /// When `s` is `0.0`, the result will be equal to `self`. When `s` is `1.0`, the result
789 /// will be equal to `rhs`. When `s` is outside of range `[0, 1]`, the result is linearly
790 /// extrapolated.
791 #[doc(alias = "mix")]
792 #[inline]
793 #[must_use]
794 pub fn lerprust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4]lerp().(self, rhs: Selfrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4], s: f64) -> Selfrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4] {
795 self rust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4][`Add<Self>`]add().+rust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4][`Add<Self>`]add(). rust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4][`Add<Self>`]add().((rhs rust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4][`Sub<Self>`]sub().-rust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4][`Sub<Self>`]sub(). rust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4][`Sub<Self>`]sub().self) rust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4][`Mul<f64>`]mul().*rust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4][`Mul<f64>`]mul(). rust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4][`Mul<f64>`]mul().s)
796 }
797
798 /// Moves towards `rhs` based on the value `d`.
799 ///
800 /// When `d` is `0.0`, the result will be equal to `self`. When `d` is equal to
801 /// `self.distance(rhs)`, the result will be equal to `rhs`. Will not go past `rhs`.
802 #[inline]
803 #[must_use]
804 pub fn move_towardsrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4]move_towards().(&self, rhs: Selfrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4], d: f64) -> Selfrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4] {
805 let a = rhs rust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4][`Sub<Self>`]sub().-rust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4][`Sub<Self>`]sub(). rust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4][`Sub<Self>`]sub().*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/deref/impl#[`&T`][Deref]deref().self;
806 let len = a.lengthrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4]length().();
807 if len rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[f64][`PartialOrd<Self>`]le().<=rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[f64][`PartialOrd<Self>`]le(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[f64][`PartialOrd<Self>`]le().d || len rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[f64][`PartialOrd<Self>`]le().<=rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[f64][`PartialOrd<Self>`]le(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[f64][`PartialOrd<Self>`]le().1e-4 {
808 return rhs;
809 }
810 *rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/deref/impl#[`&T`][Deref]deref().self rust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4][`Add<Self>`]add().+rust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4][`Add<Self>`]add(). rust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4][`Add<Self>`]add().a rust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4][`Div<f64>`]div()./rust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4][`Div<f64>`]div(). rust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4][`Div<f64>`]div().len rust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4][`Mul<f64>`]mul().*rust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4][`Mul<f64>`]mul(). rust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4][`Mul<f64>`]mul().d
811 }
812
813 /// Calculates the midpoint between `self` and `rhs`.
814 ///
815 /// The midpoint is the average of, or halfway point between, two vectors.
816 /// `a.midpoint(b)` should yield the same result as `a.lerp(b, 0.5)`
817 /// while being slightly cheaper to compute.
818 #[inline]
819 pub fn midpointrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4]midpoint().(self, rhs: Selfrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4]) -> Selfrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4] {
820 (self rust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4][`Add<Self>`]add().+rust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4][`Add<Self>`]add(). rust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4][`Add<Self>`]add().rhs) rust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4][`Mul<f64>`]mul().*rust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4][`Mul<f64>`]mul(). rust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4][`Mul<f64>`]mul().0.5
821 }
822
823 /// Returns true if the absolute difference of all elements between `self` and `rhs` is
824 /// less than or equal to `max_abs_diff`.
825 ///
826 /// This can be used to compare if two vectors contain similar elements. It works best when
827 /// comparing with a known value. The `max_abs_diff` that should be used used depends on
828 /// the values being compared against.
829 ///
830 /// For more see
831 /// [comparing floating point numbers](https://randomascii.wordpress.com/2012/02/25/comparing-floating-point-numbers-2012-edition/).
832 #[inline]
833 #[must_use]
834 pub fn abs_diff_eqrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4]abs_diff_eq().(self, rhs: Selfrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4], max_abs_diff: f64) -> bool {
835 self.subrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4][`Sub<Self>`]sub().(rhs).absrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4]abs().().cmplerust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4]cmple().(Selfrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4]::splatrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4]splat().(max_abs_diff)).allrust-analyzer cargo glam 0.28.0 bool/bvec4/impl#[BVec4]all().()
836 }
837
838 /// Returns a vector with a length no less than `min` and no more than `max`.
839 ///
840 /// # Panics
841 ///
842 /// Will panic if `min` is greater than `max`, or if either `min` or `max` is negative, when `glam_assert` is enabled.
843 #[inline]
844 #[must_use]
845 pub fn clamp_lengthrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4]clamp_length().(self, min: f64, max: f64) -> Selfrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4] {
846 glam_assertrust-analyzer cargo glam 0.28.0 macros/glam_assert!!(0.0 <= min);
847 glam_assertrust-analyzer cargo glam 0.28.0 macros/glam_assert!!(min <= max);
848 let length_sq = self.length_squaredrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4]length_squared().();
849 if length_sq rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[f64][`PartialOrd<Self>`]lt().<rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[f64][`PartialOrd<Self>`]lt(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[f64][`PartialOrd<Self>`]lt().min rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().min {
850 min rust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[f64][`Mul<DVec4>`]mul().*rust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[f64][`Mul<DVec4>`]mul(). rust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[f64][`Mul<DVec4>`]mul().(self rust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4][`Div<f64>`]div()./rust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4][`Div<f64>`]div(). rust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4][`Div<f64>`]div().mathrust-analyzer cargo glam 0.28.0 f64/math/::sqrtrust-analyzer cargo glam 0.28.0 f64/math/std_math/sqrt().(length_sq))
851 } else if length_sq rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[f64][`PartialOrd<Self>`]gt().>rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[f64][`PartialOrd<Self>`]gt(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[f64][`PartialOrd<Self>`]gt().max rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().max {
852 max rust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[f64][`Mul<DVec4>`]mul().*rust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[f64][`Mul<DVec4>`]mul(). rust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[f64][`Mul<DVec4>`]mul().(self rust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4][`Div<f64>`]div()./rust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4][`Div<f64>`]div(). rust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4][`Div<f64>`]div().mathrust-analyzer cargo glam 0.28.0 f64/math/::sqrtrust-analyzer cargo glam 0.28.0 f64/math/std_math/sqrt().(length_sq))
853 } else {
854 self
855 }
856 }
857
858 /// Returns a vector with a length no more than `max`.
859 ///
860 /// # Panics
861 ///
862 /// Will panic if `max` is negative when `glam_assert` is enabled.
863 #[inline]
864 #[must_use]
865 pub fn clamp_length_maxrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4]clamp_length_max().(self, max: f64) -> Selfrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4] {
866 glam_assertrust-analyzer cargo glam 0.28.0 macros/glam_assert!!(0.0 <= max);
867 let length_sq = self.length_squaredrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4]length_squared().();
868 if length_sq rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[f64][`PartialOrd<Self>`]gt().>rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[f64][`PartialOrd<Self>`]gt(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[f64][`PartialOrd<Self>`]gt().max rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().max {
869 max rust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[f64][`Mul<DVec4>`]mul().*rust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[f64][`Mul<DVec4>`]mul(). rust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[f64][`Mul<DVec4>`]mul().(self rust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4][`Div<f64>`]div()./rust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4][`Div<f64>`]div(). rust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4][`Div<f64>`]div().mathrust-analyzer cargo glam 0.28.0 f64/math/::sqrtrust-analyzer cargo glam 0.28.0 f64/math/std_math/sqrt().(length_sq))
870 } else {
871 self
872 }
873 }
874
875 /// Returns a vector with a length no less than `min`.
876 ///
877 /// # Panics
878 ///
879 /// Will panic if `min` is negative when `glam_assert` is enabled.
880 #[inline]
881 #[must_use]
882 pub fn clamp_length_minrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4]clamp_length_min().(self, min: f64) -> Selfrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4] {
883 glam_assertrust-analyzer cargo glam 0.28.0 macros/glam_assert!!(0.0 <= min);
884 let length_sq = self.length_squaredrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4]length_squared().();
885 if length_sq rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[f64][`PartialOrd<Self>`]lt().<rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[f64][`PartialOrd<Self>`]lt(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[f64][`PartialOrd<Self>`]lt().min rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().min {
886 min rust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[f64][`Mul<DVec4>`]mul().*rust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[f64][`Mul<DVec4>`]mul(). rust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[f64][`Mul<DVec4>`]mul().(self rust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4][`Div<f64>`]div()./rust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4][`Div<f64>`]div(). rust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4][`Div<f64>`]div().mathrust-analyzer cargo glam 0.28.0 f64/math/::sqrtrust-analyzer cargo glam 0.28.0 f64/math/std_math/sqrt().(length_sq))
887 } else {
888 self
889 }
890 }
891
892 /// Fused multiply-add. Computes `(self * a) + b` element-wise with only one rounding
893 /// error, yielding a more accurate result than an unfused multiply-add.
894 ///
895 /// Using `mul_add` *may* be more performant than an unfused multiply-add if the target
896 /// architecture has a dedicated fma CPU instruction. However, this is not always true,
897 /// and will be heavily dependant on designing algorithms with specific target hardware in
898 /// mind.
899 #[inline]
900 #[must_use]
901 pub fn mul_addrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4]mul_add().(self, a: Selfrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4], b: Selfrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4]) -> Selfrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4] {
902 Selfrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4]::newrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4]new().(
903 mathrust-analyzer cargo glam 0.28.0 f64/math/::mul_addrust-analyzer cargo glam 0.28.0 f64/math/std_math/mul_add().(self.xrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#x., a.xrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#x., b.xrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#x.),
904 mathrust-analyzer cargo glam 0.28.0 f64/math/::mul_addrust-analyzer cargo glam 0.28.0 f64/math/std_math/mul_add().(self.yrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#y., a.yrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#y., b.yrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#y.),
905 mathrust-analyzer cargo glam 0.28.0 f64/math/::mul_addrust-analyzer cargo glam 0.28.0 f64/math/std_math/mul_add().(self.zrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#z., a.zrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#z., b.zrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#z.),
906 mathrust-analyzer cargo glam 0.28.0 f64/math/::mul_addrust-analyzer cargo glam 0.28.0 f64/math/std_math/mul_add().(self.wrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#w., a.wrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#w., b.wrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#w.),
907 )
908 }
909
910 /// Casts all elements of `self` to `f32`.
911 #[inline]
912 #[must_use]
913 pub fn as_vec4rust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4]as_vec4().(&self) -> craterust-analyzer cargo glam 0.28.0 crate/::Vec4rust-analyzer cargo glam 0.28.0 f32/sse2/vec4/Vec4# {
914 craterust-analyzer cargo glam 0.28.0 crate/::Vec4rust-analyzer cargo glam 0.28.0 f32/sse2/vec4/Vec4#::newrust-analyzer cargo glam 0.28.0 f32/sse2/vec4/impl#[Vec4]new().(self.xrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#x. as f32, self.yrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#y. as f32, self.zrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#z. as f32, self.wrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#w. as f32)
915 }
916
917 /// Casts all elements of `self` to `i16`.
918 #[inline]
919 #[must_use]
920 pub fn as_i16vec4rust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4]as_i16vec4().(&self) -> craterust-analyzer cargo glam 0.28.0 crate/::I16Vec4rust-analyzer cargo glam 0.28.0 i16/i16vec4/I16Vec4# {
921 craterust-analyzer cargo glam 0.28.0 crate/::I16Vec4rust-analyzer cargo glam 0.28.0 i16/i16vec4/I16Vec4#::newrust-analyzer cargo glam 0.28.0 i16/i16vec4/impl#[I16Vec4]new().(self.xrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#x. as i16, self.yrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#y. as i16, self.zrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#z. as i16, self.wrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#w. as i16)
922 }
923
924 /// Casts all elements of `self` to `u16`.
925 #[inline]
926 #[must_use]
927 pub fn as_u16vec4rust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4]as_u16vec4().(&self) -> craterust-analyzer cargo glam 0.28.0 crate/::U16Vec4rust-analyzer cargo glam 0.28.0 u16/u16vec4/U16Vec4# {
928 craterust-analyzer cargo glam 0.28.0 crate/::U16Vec4rust-analyzer cargo glam 0.28.0 u16/u16vec4/U16Vec4#::newrust-analyzer cargo glam 0.28.0 u16/u16vec4/impl#[U16Vec4]new().(self.xrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#x. as u16, self.yrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#y. as u16, self.zrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#z. as u16, self.wrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#w. as u16)
929 }
930
931 /// Casts all elements of `self` to `i32`.
932 #[inline]
933 #[must_use]
934 pub fn as_ivec4rust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4]as_ivec4().(&self) -> craterust-analyzer cargo glam 0.28.0 crate/::IVec4rust-analyzer cargo glam 0.28.0 i32/ivec4/IVec4# {
935 craterust-analyzer cargo glam 0.28.0 crate/::IVec4rust-analyzer cargo glam 0.28.0 i32/ivec4/IVec4#::newrust-analyzer cargo glam 0.28.0 i32/ivec4/impl#[IVec4]new().(self.xrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#x. as i32, self.yrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#y. as i32, self.zrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#z. as i32, self.wrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#w. as i32)
936 }
937
938 /// Casts all elements of `self` to `u32`.
939 #[inline]
940 #[must_use]
941 pub fn as_uvec4rust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4]as_uvec4().(&self) -> craterust-analyzer cargo glam 0.28.0 crate/::UVec4rust-analyzer cargo glam 0.28.0 u32/uvec4/UVec4# {
942 craterust-analyzer cargo glam 0.28.0 crate/::UVec4rust-analyzer cargo glam 0.28.0 u32/uvec4/UVec4#::newrust-analyzer cargo glam 0.28.0 u32/uvec4/impl#[UVec4]new().(self.xrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#x. as u32, self.yrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#y. as u32, self.zrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#z. as u32, self.wrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#w. as u32)
943 }
944
945 /// Casts all elements of `self` to `i64`.
946 #[inline]
947 #[must_use]
948 pub fn as_i64vec4rust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4]as_i64vec4().(&self) -> craterust-analyzer cargo glam 0.28.0 crate/::I64Vec4rust-analyzer cargo glam 0.28.0 i64/i64vec4/I64Vec4# {
949 craterust-analyzer cargo glam 0.28.0 crate/::I64Vec4rust-analyzer cargo glam 0.28.0 i64/i64vec4/I64Vec4#::newrust-analyzer cargo glam 0.28.0 i64/i64vec4/impl#[I64Vec4]new().(self.xrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#x. as i64, self.yrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#y. as i64, self.zrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#z. as i64, self.wrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#w. as i64)
950 }
951
952 /// Casts all elements of `self` to `u64`.
953 #[inline]
954 #[must_use]
955 pub fn as_u64vec4rust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4]as_u64vec4().(&self) -> craterust-analyzer cargo glam 0.28.0 crate/::U64Vec4rust-analyzer cargo glam 0.28.0 u64/u64vec4/U64Vec4# {
956 craterust-analyzer cargo glam 0.28.0 crate/::U64Vec4rust-analyzer cargo glam 0.28.0 u64/u64vec4/U64Vec4#::newrust-analyzer cargo glam 0.28.0 u64/u64vec4/impl#[U64Vec4]new().(self.xrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#x. as u64, self.yrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#y. as u64, self.zrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#z. as u64, self.wrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#w. as u64)
957 }
958 }
959
960 impl Defaultrust-analyzer cargo core https://github.com/rust-lang/rust/library/core default/Default# for DVec4rust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4# {
961 #[inline(always)]
962 fn defaultrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4][Default]default().() -> Selfrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4][Default] {
963 Selfrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4][Default]::ZEROrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4]ZERO.
964 }
965 }
966
967 impl Divrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Div#<DVec4rust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#> for DVec4rust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4# {
968 type Outputrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4][`Div<Self>`]Output# = Selfrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4][`Div<Self>`];
969 #[inline]
970 fn divrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4][`Div<Self>`]div().(self, rhs: Selfrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4][`Div<Self>`]) -> Selfrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4][`Div<Self>`] {
971 Selfrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4][`Div<Self>`] {
972 xrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#x.: self.xrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#x..divrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Div<Self>`]div().(rhs.xrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#x.),
973 yrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#y.: self.yrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#y..divrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Div<Self>`]div().(rhs.yrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#y.),
974 zrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#z.: self.zrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#z..divrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Div<Self>`]div().(rhs.zrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#z.),
975 wrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#w.: self.wrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#w..divrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Div<Self>`]div().(rhs.wrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#w.),
976 }
977 }
978 }
979
980 impl DivAssignrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/DivAssign#<DVec4rust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#> for DVec4rust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4# {
981 #[inline]
982 fn div_assignrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4][`DivAssign<Self>`]div_assign().(&mut self, rhs: Selfrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4][`DivAssign<Self>`]) {
983 self.xrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#x..div_assignrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`DivAssign<Self>`]div_assign().(rhs.xrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#x.);
984 self.yrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#y..div_assignrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`DivAssign<Self>`]div_assign().(rhs.yrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#y.);
985 self.zrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#z..div_assignrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`DivAssign<Self>`]div_assign().(rhs.zrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#z.);
986 self.wrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#w..div_assignrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`DivAssign<Self>`]div_assign().(rhs.wrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#w.);
987 }
988 }
989
990 impl Divrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Div#<f64> for DVec4rust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4# {
991 type Outputrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4][`Div<f64>`]Output# = Selfrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4][`Div<f64>`];
992 #[inline]
993 fn divrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4][`Div<f64>`]div().(self, rhs: f64) -> Selfrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4][`Div<f64>`] {
994 Selfrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4][`Div<f64>`] {
995 xrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#x.: self.xrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#x..divrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Div<Self>`]div().(rhs),
996 yrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#y.: self.yrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#y..divrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Div<Self>`]div().(rhs),
997 zrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#z.: self.zrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#z..divrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Div<Self>`]div().(rhs),
998 wrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#w.: self.wrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#w..divrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Div<Self>`]div().(rhs),
999 }
1000 }
1001 }
1002
1003 impl DivAssignrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/DivAssign#<f64> for DVec4rust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4# {
1004 #[inline]
1005 fn div_assignrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4][`DivAssign<f64>`]div_assign().(&mut self, rhs: f64) {
1006 self.xrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#x..div_assignrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`DivAssign<Self>`]div_assign().(rhs);
1007 self.yrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#y..div_assignrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`DivAssign<Self>`]div_assign().(rhs);
1008 self.zrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#z..div_assignrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`DivAssign<Self>`]div_assign().(rhs);
1009 self.wrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#w..div_assignrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`DivAssign<Self>`]div_assign().(rhs);
1010 }
1011 }
1012
1013 impl Divrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Div#<DVec4rust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#> for f64 {
1014 type Outputrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[f64][`Div<DVec4>`]Output# = DVec4rust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#;
1015 #[inline]
1016 fn divrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[f64][`Div<DVec4>`]div().(self, rhs: DVec4rust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#) -> DVec4rust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4# {
1017 DVec4rust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4# {
1018 xrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#x.: self.divrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Div<Self>`]div().(rhs.xrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#x.),
1019 yrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#y.: self.divrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Div<Self>`]div().(rhs.yrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#y.),
1020 zrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#z.: self.divrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Div<Self>`]div().(rhs.zrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#z.),
1021 wrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#w.: self.divrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Div<Self>`]div().(rhs.wrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#w.),
1022 }
1023 }
1024 }
1025
1026 impl Mulrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Mul#<DVec4rust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#> for DVec4rust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4# {
1027 type Outputrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4][`Mul<Self>`]Output# = Selfrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4][`Mul<Self>`];
1028 #[inline]
1029 fn mulrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4][`Mul<Self>`]mul().(self, rhs: Selfrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4][`Mul<Self>`]) -> Selfrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4][`Mul<Self>`] {
1030 Selfrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4][`Mul<Self>`] {
1031 xrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#x.: self.xrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#x..mulrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().(rhs.xrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#x.),
1032 yrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#y.: self.yrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#y..mulrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().(rhs.yrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#y.),
1033 zrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#z.: self.zrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#z..mulrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().(rhs.zrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#z.),
1034 wrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#w.: self.wrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#w..mulrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().(rhs.wrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#w.),
1035 }
1036 }
1037 }
1038
1039 impl MulAssignrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/MulAssign#<DVec4rust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#> for DVec4rust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4# {
1040 #[inline]
1041 fn mul_assignrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4][`MulAssign<Self>`]mul_assign().(&mut self, rhs: Selfrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4][`MulAssign<Self>`]) {
1042 self.xrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#x..mul_assignrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`MulAssign<Self>`]mul_assign().(rhs.xrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#x.);
1043 self.yrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#y..mul_assignrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`MulAssign<Self>`]mul_assign().(rhs.yrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#y.);
1044 self.zrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#z..mul_assignrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`MulAssign<Self>`]mul_assign().(rhs.zrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#z.);
1045 self.wrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#w..mul_assignrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`MulAssign<Self>`]mul_assign().(rhs.wrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#w.);
1046 }
1047 }
1048
1049 impl Mulrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Mul#<f64> for DVec4rust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4# {
1050 type Outputrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4][`Mul<f64>`]Output# = Selfrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4][`Mul<f64>`];
1051 #[inline]
1052 fn mulrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4][`Mul<f64>`]mul().(self, rhs: f64) -> Selfrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4][`Mul<f64>`] {
1053 Selfrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4][`Mul<f64>`] {
1054 xrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#x.: self.xrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#x..mulrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().(rhs),
1055 yrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#y.: self.yrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#y..mulrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().(rhs),
1056 zrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#z.: self.zrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#z..mulrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().(rhs),
1057 wrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#w.: self.wrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#w..mulrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().(rhs),
1058 }
1059 }
1060 }
1061
1062 impl MulAssignrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/MulAssign#<f64> for DVec4rust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4# {
1063 #[inline]
1064 fn mul_assignrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4][`MulAssign<f64>`]mul_assign().(&mut self, rhs: f64) {
1065 self.xrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#x..mul_assignrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`MulAssign<Self>`]mul_assign().(rhs);
1066 self.yrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#y..mul_assignrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`MulAssign<Self>`]mul_assign().(rhs);
1067 self.zrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#z..mul_assignrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`MulAssign<Self>`]mul_assign().(rhs);
1068 self.wrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#w..mul_assignrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`MulAssign<Self>`]mul_assign().(rhs);
1069 }
1070 }
1071
1072 impl Mulrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Mul#<DVec4rust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#> for f64 {
1073 type Outputrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[f64][`Mul<DVec4>`]Output# = DVec4rust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#;
1074 #[inline]
1075 fn mulrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[f64][`Mul<DVec4>`]mul().(self, rhs: DVec4rust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#) -> DVec4rust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4# {
1076 DVec4rust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4# {
1077 xrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#x.: self.mulrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().(rhs.xrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#x.),
1078 yrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#y.: self.mulrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().(rhs.yrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#y.),
1079 zrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#z.: self.mulrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().(rhs.zrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#z.),
1080 wrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#w.: self.mulrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().(rhs.wrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#w.),
1081 }
1082 }
1083 }
1084
1085 impl Addrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Add#<DVec4rust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#> for DVec4rust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4# {
1086 type Outputrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4][`Add<Self>`]Output# = Selfrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4][`Add<Self>`];
1087 #[inline]
1088 fn addrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4][`Add<Self>`]add().(self, rhs: Selfrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4][`Add<Self>`]) -> Selfrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4][`Add<Self>`] {
1089 Selfrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4][`Add<Self>`] {
1090 xrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#x.: self.xrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#x..addrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Add<Self>`]add().(rhs.xrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#x.),
1091 yrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#y.: self.yrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#y..addrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Add<Self>`]add().(rhs.yrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#y.),
1092 zrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#z.: self.zrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#z..addrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Add<Self>`]add().(rhs.zrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#z.),
1093 wrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#w.: self.wrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#w..addrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Add<Self>`]add().(rhs.wrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#w.),
1094 }
1095 }
1096 }
1097
1098 impl AddAssignrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/AddAssign#<DVec4rust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#> for DVec4rust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4# {
1099 #[inline]
1100 fn add_assignrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4][`AddAssign<Self>`]add_assign().(&mut self, rhs: Selfrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4][`AddAssign<Self>`]) {
1101 self.xrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#x..add_assignrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`AddAssign<Self>`]add_assign().(rhs.xrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#x.);
1102 self.yrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#y..add_assignrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`AddAssign<Self>`]add_assign().(rhs.yrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#y.);
1103 self.zrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#z..add_assignrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`AddAssign<Self>`]add_assign().(rhs.zrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#z.);
1104 self.wrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#w..add_assignrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`AddAssign<Self>`]add_assign().(rhs.wrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#w.);
1105 }
1106 }
1107
1108 impl Addrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Add#<f64> for DVec4rust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4# {
1109 type Outputrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4][`Add<f64>`]Output# = Selfrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4][`Add<f64>`];
1110 #[inline]
1111 fn addrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4][`Add<f64>`]add().(self, rhs: f64) -> Selfrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4][`Add<f64>`] {
1112 Selfrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4][`Add<f64>`] {
1113 xrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#x.: self.xrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#x..addrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Add<Self>`]add().(rhs),
1114 yrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#y.: self.yrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#y..addrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Add<Self>`]add().(rhs),
1115 zrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#z.: self.zrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#z..addrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Add<Self>`]add().(rhs),
1116 wrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#w.: self.wrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#w..addrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Add<Self>`]add().(rhs),
1117 }
1118 }
1119 }
1120
1121 impl AddAssignrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/AddAssign#<f64> for DVec4rust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4# {
1122 #[inline]
1123 fn add_assignrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4][`AddAssign<f64>`]add_assign().(&mut self, rhs: f64) {
1124 self.xrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#x..add_assignrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`AddAssign<Self>`]add_assign().(rhs);
1125 self.yrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#y..add_assignrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`AddAssign<Self>`]add_assign().(rhs);
1126 self.zrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#z..add_assignrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`AddAssign<Self>`]add_assign().(rhs);
1127 self.wrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#w..add_assignrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`AddAssign<Self>`]add_assign().(rhs);
1128 }
1129 }
1130
1131 impl Addrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Add#<DVec4rust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#> for f64 {
1132 type Outputrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[f64][`Add<DVec4>`]Output# = DVec4rust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#;
1133 #[inline]
1134 fn addrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[f64][`Add<DVec4>`]add().(self, rhs: DVec4rust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#) -> DVec4rust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4# {
1135 DVec4rust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4# {
1136 xrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#x.: self.addrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Add<Self>`]add().(rhs.xrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#x.),
1137 yrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#y.: self.addrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Add<Self>`]add().(rhs.yrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#y.),
1138 zrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#z.: self.addrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Add<Self>`]add().(rhs.zrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#z.),
1139 wrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#w.: self.addrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Add<Self>`]add().(rhs.wrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#w.),
1140 }
1141 }
1142 }
1143
1144 impl Subrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Sub#<DVec4rust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#> for DVec4rust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4# {
1145 type Outputrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4][`Sub<Self>`]Output# = Selfrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4][`Sub<Self>`];
1146 #[inline]
1147 fn subrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4][`Sub<Self>`]sub().(self, rhs: Selfrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4][`Sub<Self>`]) -> Selfrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4][`Sub<Self>`] {
1148 Selfrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4][`Sub<Self>`] {
1149 xrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#x.: self.xrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#x..subrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Sub<Self>`]sub().(rhs.xrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#x.),
1150 yrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#y.: self.yrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#y..subrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Sub<Self>`]sub().(rhs.yrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#y.),
1151 zrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#z.: self.zrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#z..subrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Sub<Self>`]sub().(rhs.zrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#z.),
1152 wrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#w.: self.wrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#w..subrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Sub<Self>`]sub().(rhs.wrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#w.),
1153 }
1154 }
1155 }
1156
1157 impl SubAssignrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/SubAssign#<DVec4rust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#> for DVec4rust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4# {
1158 #[inline]
1159 fn sub_assignrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4][`SubAssign<Self>`]sub_assign().(&mut self, rhs: DVec4rust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#) {
1160 self.xrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#x..sub_assignrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`SubAssign<Self>`]sub_assign().(rhs.xrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#x.);
1161 self.yrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#y..sub_assignrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`SubAssign<Self>`]sub_assign().(rhs.yrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#y.);
1162 self.zrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#z..sub_assignrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`SubAssign<Self>`]sub_assign().(rhs.zrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#z.);
1163 self.wrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#w..sub_assignrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`SubAssign<Self>`]sub_assign().(rhs.wrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#w.);
1164 }
1165 }
1166
1167 impl Subrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Sub#<f64> for DVec4rust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4# {
1168 type Outputrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4][`Sub<f64>`]Output# = Selfrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4][`Sub<f64>`];
1169 #[inline]
1170 fn subrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4][`Sub<f64>`]sub().(self, rhs: f64) -> Selfrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4][`Sub<f64>`] {
1171 Selfrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4][`Sub<f64>`] {
1172 xrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#x.: self.xrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#x..subrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Sub<Self>`]sub().(rhs),
1173 yrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#y.: self.yrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#y..subrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Sub<Self>`]sub().(rhs),
1174 zrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#z.: self.zrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#z..subrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Sub<Self>`]sub().(rhs),
1175 wrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#w.: self.wrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#w..subrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Sub<Self>`]sub().(rhs),
1176 }
1177 }
1178 }
1179
1180 impl SubAssignrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/SubAssign#<f64> for DVec4rust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4# {
1181 #[inline]
1182 fn sub_assignrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4][`SubAssign<f64>`]sub_assign().(&mut self, rhs: f64) {
1183 self.xrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#x..sub_assignrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`SubAssign<Self>`]sub_assign().(rhs);
1184 self.yrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#y..sub_assignrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`SubAssign<Self>`]sub_assign().(rhs);
1185 self.zrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#z..sub_assignrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`SubAssign<Self>`]sub_assign().(rhs);
1186 self.wrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#w..sub_assignrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`SubAssign<Self>`]sub_assign().(rhs);
1187 }
1188 }
1189
1190 impl Subrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Sub#<DVec4rust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#> for f64 {
1191 type Outputrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[f64][`Sub<DVec4>`]Output# = DVec4rust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#;
1192 #[inline]
1193 fn subrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[f64][`Sub<DVec4>`]sub().(self, rhs: DVec4rust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#) -> DVec4rust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4# {
1194 DVec4rust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4# {
1195 xrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#x.: self.subrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Sub<Self>`]sub().(rhs.xrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#x.),
1196 yrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#y.: self.subrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Sub<Self>`]sub().(rhs.yrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#y.),
1197 zrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#z.: self.subrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Sub<Self>`]sub().(rhs.zrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#z.),
1198 wrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#w.: self.subrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Sub<Self>`]sub().(rhs.wrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#w.),
1199 }
1200 }
1201 }
1202
1203 impl Remrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Rem#<DVec4rust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#> for DVec4rust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4# {
1204 type Outputrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4][`Rem<Self>`]Output# = Selfrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4][`Rem<Self>`];
1205 #[inline]
1206 fn remrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4][`Rem<Self>`]rem().(self, rhs: Selfrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4][`Rem<Self>`]) -> Selfrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4][`Rem<Self>`] {
1207 Selfrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4][`Rem<Self>`] {
1208 xrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#x.: self.xrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#x..remrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Rem<Self>`]rem().(rhs.xrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#x.),
1209 yrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#y.: self.yrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#y..remrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Rem<Self>`]rem().(rhs.yrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#y.),
1210 zrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#z.: self.zrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#z..remrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Rem<Self>`]rem().(rhs.zrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#z.),
1211 wrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#w.: self.wrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#w..remrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Rem<Self>`]rem().(rhs.wrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#w.),
1212 }
1213 }
1214 }
1215
1216 impl RemAssignrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/RemAssign#<DVec4rust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#> for DVec4rust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4# {
1217 #[inline]
1218 fn rem_assignrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4][`RemAssign<Self>`]rem_assign().(&mut self, rhs: Selfrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4][`RemAssign<Self>`]) {
1219 self.xrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#x..rem_assignrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`RemAssign<Self>`]rem_assign().(rhs.xrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#x.);
1220 self.yrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#y..rem_assignrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`RemAssign<Self>`]rem_assign().(rhs.yrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#y.);
1221 self.zrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#z..rem_assignrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`RemAssign<Self>`]rem_assign().(rhs.zrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#z.);
1222 self.wrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#w..rem_assignrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`RemAssign<Self>`]rem_assign().(rhs.wrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#w.);
1223 }
1224 }
1225
1226 impl Remrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Rem#<f64> for DVec4rust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4# {
1227 type Outputrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4][`Rem<f64>`]Output# = Selfrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4][`Rem<f64>`];
1228 #[inline]
1229 fn remrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4][`Rem<f64>`]rem().(self, rhs: f64) -> Selfrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4][`Rem<f64>`] {
1230 Selfrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4][`Rem<f64>`] {
1231 xrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#x.: self.xrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#x..remrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Rem<Self>`]rem().(rhs),
1232 yrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#y.: self.yrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#y..remrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Rem<Self>`]rem().(rhs),
1233 zrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#z.: self.zrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#z..remrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Rem<Self>`]rem().(rhs),
1234 wrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#w.: self.wrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#w..remrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Rem<Self>`]rem().(rhs),
1235 }
1236 }
1237 }
1238
1239 impl RemAssignrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/RemAssign#<f64> for DVec4rust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4# {
1240 #[inline]
1241 fn rem_assignrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4][`RemAssign<f64>`]rem_assign().(&mut self, rhs: f64) {
1242 self.xrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#x..rem_assignrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`RemAssign<Self>`]rem_assign().(rhs);
1243 self.yrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#y..rem_assignrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`RemAssign<Self>`]rem_assign().(rhs);
1244 self.zrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#z..rem_assignrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`RemAssign<Self>`]rem_assign().(rhs);
1245 self.wrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#w..rem_assignrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`RemAssign<Self>`]rem_assign().(rhs);
1246 }
1247 }
1248
1249 impl Remrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Rem#<DVec4rust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#> for f64 {
1250 type Outputrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[f64][`Rem<DVec4>`]Output# = DVec4rust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#;
1251 #[inline]
1252 fn remrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[f64][`Rem<DVec4>`]rem().(self, rhs: DVec4rust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#) -> DVec4rust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4# {
1253 DVec4rust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4# {
1254 xrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#x.: self.remrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Rem<Self>`]rem().(rhs.xrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#x.),
1255 yrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#y.: self.remrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Rem<Self>`]rem().(rhs.yrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#y.),
1256 zrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#z.: self.remrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Rem<Self>`]rem().(rhs.zrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#z.),
1257 wrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#w.: self.remrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Rem<Self>`]rem().(rhs.wrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#w.),
1258 }
1259 }
1260 }
1261
1262 #[cfg(not(target_arch = "spirv"))]
1263 impl AsRefrust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/AsRef#<[f64; 4]> for DVec4rust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4# {
1264 #[inline]
1265 fn as_refrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4][`AsRef<[f64; 4]>`]as_ref().(&self) -> &[f64; 4] {
1266 unsafe { &*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/deref/Deref#deref().(self as *const DVec4rust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4# as *const [f64; 4]) }
1267 }
1268 }
1269
1270 #[cfg(not(target_arch = "spirv"))]
1271 impl AsMutrust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/AsMut#<[f64; 4]> for DVec4rust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4# {
1272 #[inline]
1273 fn as_mutrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4][`AsMut<[f64; 4]>`]as_mut().(&mut self) -> &mut [f64; 4] {
1274 unsafe { &mut *rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/deref/Deref#deref().(self as *mut DVec4rust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4# as *mut [f64; 4]) }
1275 }
1276 }
1277
1278 impl Sumrust-analyzer cargo core https://github.com/rust-lang/rust/library/core iter/traits/accum/Sum# for DVec4rust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4# {
1279 #[inline]
1280 fn sumrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4][`Sum<Self>`]sum().<I>(iter: I) -> Selfrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4][`Sum<Self>`]
1281 where
1282 I: Iteratorrust-analyzer cargo core https://github.com/rust-lang/rust/library/core iter/traits/iterator/Iterator#<Itemrust-analyzer cargo core https://github.com/rust-lang/rust/library/core iter/traits/iterator/Iterator#Item# = Selfrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4][`Sum<Self>`]>,
1283 {
1284 iter.foldrust-analyzer cargo core https://github.com/rust-lang/rust/library/core iter/traits/iterator/Iterator#fold().(Selfrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4][`Sum<Self>`]::ZEROrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4]ZERO., Selfrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4][`Sum<Self>`]::addrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4][`Add<Self>`]add().)
1285 }
1286 }
1287
1288 impl<'a> Sumrust-analyzer cargo core https://github.com/rust-lang/rust/library/core iter/traits/accum/Sum#<&'a Selfrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4][`Sum<&'a DVec4>`]> for DVec4rust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4# {
1289 #[inline]
1290 fn sumrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4][`Sum<&'a DVec4>`]sum().<I>(iter: I) -> Selfrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4][`Sum<&'a DVec4>`]
1291 where
1292 I: Iteratorrust-analyzer cargo core https://github.com/rust-lang/rust/library/core iter/traits/iterator/Iterator#<Itemrust-analyzer cargo core https://github.com/rust-lang/rust/library/core iter/traits/iterator/Iterator#Item# = &'a Selfrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4][`Sum<&'a DVec4>`]>,
1293 {
1294 iter.foldrust-analyzer cargo core https://github.com/rust-lang/rust/library/core iter/traits/iterator/Iterator#fold().(Selfrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4][`Sum<&'a DVec4>`]::ZEROrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4]ZERO., |a, &b| Selfrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4][`Sum<&'a DVec4>`]::addrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4][`Add<Self>`]add().(a, b))
1295 }
1296 }
1297
1298 impl Productrust-analyzer cargo core https://github.com/rust-lang/rust/library/core iter/traits/accum/Product# for DVec4rust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4# {
1299 #[inline]
1300 fn productrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4][`Product<Self>`]product().<I>(iter: I) -> Selfrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4][`Product<Self>`]
1301 where
1302 I: Iteratorrust-analyzer cargo core https://github.com/rust-lang/rust/library/core iter/traits/iterator/Iterator#<Itemrust-analyzer cargo core https://github.com/rust-lang/rust/library/core iter/traits/iterator/Iterator#Item# = Selfrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4][`Product<Self>`]>,
1303 {
1304 iter.foldrust-analyzer cargo core https://github.com/rust-lang/rust/library/core iter/traits/iterator/Iterator#fold().(Selfrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4][`Product<Self>`]::ONErust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4]ONE., Selfrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4][`Product<Self>`]::mulrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4][`Mul<Self>`]mul().)
1305 }
1306 }
1307
1308 impl<'a> Productrust-analyzer cargo core https://github.com/rust-lang/rust/library/core iter/traits/accum/Product#<&'a Selfrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4][`Product<&'a DVec4>`]> for DVec4rust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4# {
1309 #[inline]
1310 fn productrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4][`Product<&'a DVec4>`]product().<I>(iter: I) -> Selfrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4][`Product<&'a DVec4>`]
1311 where
1312 I: Iteratorrust-analyzer cargo core https://github.com/rust-lang/rust/library/core iter/traits/iterator/Iterator#<Itemrust-analyzer cargo core https://github.com/rust-lang/rust/library/core iter/traits/iterator/Iterator#Item# = &'a Selfrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4][`Product<&'a DVec4>`]>,
1313 {
1314 iter.foldrust-analyzer cargo core https://github.com/rust-lang/rust/library/core iter/traits/iterator/Iterator#fold().(Selfrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4][`Product<&'a DVec4>`]::ONErust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4]ONE., |a, &b| Selfrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4][`Product<&'a DVec4>`]::mulrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4][`Mul<Self>`]mul().(a, b))
1315 }
1316 }
1317
1318 impl Negrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Neg# for DVec4rust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4# {
1319 type Outputrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4][Neg]Output# = Selfrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4][Neg];
1320 #[inline]
1321 fn negrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4][Neg]neg().(self) -> Selfrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4][Neg] {
1322 Selfrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4][Neg] {
1323 xrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#x.: self.xrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#x..negrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][Neg]neg().(),
1324 yrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#y.: self.yrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#y..negrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][Neg]neg().(),
1325 zrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#z.: self.zrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#z..negrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][Neg]neg().(),
1326 wrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#w.: self.wrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#w..negrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][Neg]neg().(),
1327 }
1328 }
1329 }
1330
1331 impl Indexrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/index/Index#<usize> for DVec4rust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4# {
1332 type Outputrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4][`Index<usize>`]Output# = f64;
1333 #[inline]
1334 fn indexrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4][`Index<usize>`]index().(&self, index: usize) -> &Selfrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4][`Index<usize>`]::Outputrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/index/Index#Output# {
1335 match index {
1336 0 => &self.xrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#x.,
1337 1 => &self.yrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#y.,
1338 2 => &self.zrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#z.,
1339 3 => &self.wrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#w.,
1340 _ => panicrust-analyzer cargo std https://github.com/rust-lang/rust/library/std macros/panic!!("index out of bounds"),
1341 }
1342 }
1343 }
1344
1345 impl IndexMutrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/index/IndexMut#<usize> for DVec4rust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4# {
1346 #[inline]
1347 fn index_mutrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4][`IndexMut<usize>`]index_mut().(&mut self, index: usize) -> &mut Selfrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4][`IndexMut<usize>`]::Outputrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/index/Index#Output# {
1348 match index {
1349 0 => &mut self.xrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#x.,
1350 1 => &mut self.yrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#y.,
1351 2 => &mut self.zrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#z.,
1352 3 => &mut self.wrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#w.,
1353 _ => panicrust-analyzer cargo std https://github.com/rust-lang/rust/library/std macros/panic!!("index out of bounds"),
1354 }
1355 }
1356 }
1357
1358 #[cfg(not(target_arch = "spirv"))]
1359 impl fmtrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/::Displayrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/Display# for DVec4rust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4# {
1360 fn fmtrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4][Display]fmt().(&self, f: &mut fmtrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/::Formatterrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/Formatter#<'_>) -> fmtrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/::Resultrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/Result# {
1361 if let Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(p) = f.precisionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/impl#[`Formatter<'a>`]precision().() {
1362 writerust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/write!!(
1363 f,
1364 "[{:.*}, {:.*}, {:.*}, {:.*}]",
1365 p, self.xrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#x., p, self.yrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#y., p, self.zrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#z., p, self.wrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#w.
1366 )
1367 } else {
1368 writerust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/write!!(f, "[{}, {}, {}, {}]", self.xrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#x., self.yrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#y., self.zrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#z., self.wrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#w.)
1369 }
1370 }
1371 }
1372
1373 #[cfg(not(target_arch = "spirv"))]
1374 impl fmtrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/::Debugrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/Debug# for DVec4rust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4# {
1375 fn fmtrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4][Debug]fmt().(&self, fmt: &mut fmtrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/::Formatterrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/Formatter#<'_>) -> fmtrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/::Resultrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/Result# {
1376 fmt.debug_tuplerust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/impl#[`Formatter<'a>`]debug_tuple().(stringifyrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/stringify!!(DVec4))
1377 .fieldrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/builders/impl#[`DebugTuple<'a, 'b>`]field().(&self.xrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#x.)
1378 .fieldrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/builders/impl#[`DebugTuple<'a, 'b>`]field().(&self.yrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#y.)
1379 .fieldrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/builders/impl#[`DebugTuple<'a, 'b>`]field().(&self.zrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#z.)
1380 .fieldrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/builders/impl#[`DebugTuple<'a, 'b>`]field().(&self.wrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#w.)
1381 .finishrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/builders/impl#[`DebugTuple<'a, 'b>`]finish().()
1382 }
1383 }
1384
1385 impl Fromrust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/From#<[f64; 4]> for DVec4rust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4# {
1386 #[inline]
1387 fn fromrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4][`From<[f64; 4]>`]from().(a: [f64; 4]) -> Selfrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4][`From<[f64; 4]>`] {
1388 Selfrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4][`From<[f64; 4]>`]::newrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4]new().(a[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index().0]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index()., a[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index().1]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index()., a[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index().2]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index()., a[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index().3]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index().)
1389 }
1390 }
1391
1392 impl Fromrust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/From#<DVec4rust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#> for [f64; 4] {
1393 #[inline]
1394 fn fromrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[`[f64; 4]`][`From<DVec4>`]from().(v: DVec4rust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#) -> Selfrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[`[f64; 4]`][`From<DVec4>`] {
1395 [v.xrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#x., v.yrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#y., v.zrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#z., v.wrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#w.]
1396 }
1397 }
1398
1399 impl Fromrust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/From#<(f64, f64, f64, f64)> for DVec4rust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4# {
1400 #[inline]
1401 fn fromrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4][`From<(f64, f64, f64, f64)>`]from().(t: (f64, f64, f64, f64)) -> Selfrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4][`From<(f64, f64, f64, f64)>`] {
1402 Selfrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4][`From<(f64, f64, f64, f64)>`]::newrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4]new().(t.0, t.1, t.2, t.3)
1403 }
1404 }
1405
1406 impl Fromrust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/From#<DVec4rust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#> for (f64, f64, f64, f64) {
1407 #[inline]
1408 fn fromrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[`(f64, f64, f64, f64)`][`From<DVec4>`]from().(v: DVec4rust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#) -> Selfrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[`(f64, f64, f64, f64)`][`From<DVec4>`] {
1409 (v.xrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#x., v.yrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#y., v.zrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#z., v.wrust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4#w.)
1410 }
1411 }
1412
1413 impl Fromrust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/From#<(DVec3rust-analyzer cargo glam 0.28.0 f64/dvec3/DVec3#, f64)> for DVec4rust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4# {
1414 #[inline]
1415 fn fromrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4][`From<(DVec3, f64)>`]from().((v, w): (DVec3rust-analyzer cargo glam 0.28.0 f64/dvec3/DVec3#, f64)) -> Selfrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4][`From<(DVec3, f64)>`] {
1416 Selfrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4][`From<(DVec3, f64)>`]::newrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4]new().(v.xrust-analyzer cargo glam 0.28.0 f64/dvec3/DVec3#x., v.yrust-analyzer cargo glam 0.28.0 f64/dvec3/DVec3#y., v.zrust-analyzer cargo glam 0.28.0 f64/dvec3/DVec3#z., w)
1417 }
1418 }
1419
1420 impl Fromrust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/From#<(f64, DVec3rust-analyzer cargo glam 0.28.0 f64/dvec3/DVec3#)> for DVec4rust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4# {
1421 #[inline]
1422 fn fromrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4][`From<(f64, DVec3)>`]from().((x, v): (f64, DVec3rust-analyzer cargo glam 0.28.0 f64/dvec3/DVec3#)) -> Selfrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4][`From<(f64, DVec3)>`] {
1423 Selfrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4][`From<(f64, DVec3)>`]::newrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4]new().(x, v.xrust-analyzer cargo glam 0.28.0 f64/dvec3/DVec3#x., v.yrust-analyzer cargo glam 0.28.0 f64/dvec3/DVec3#y., v.zrust-analyzer cargo glam 0.28.0 f64/dvec3/DVec3#z.)
1424 }
1425 }
1426
1427 impl Fromrust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/From#<(DVec2rust-analyzer cargo glam 0.28.0 f64/dvec2/DVec2#, f64, f64)> for DVec4rust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4# {
1428 #[inline]
1429 fn fromrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4][`From<(DVec2, f64, f64)>`]from().((v, z, w): (DVec2rust-analyzer cargo glam 0.28.0 f64/dvec2/DVec2#, f64, f64)) -> Selfrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4][`From<(DVec2, f64, f64)>`] {
1430 Selfrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4][`From<(DVec2, f64, f64)>`]::newrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4]new().(v.xrust-analyzer cargo glam 0.28.0 f64/dvec2/DVec2#x., v.yrust-analyzer cargo glam 0.28.0 f64/dvec2/DVec2#y., z, w)
1431 }
1432 }
1433
1434 impl Fromrust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/From#<(DVec2rust-analyzer cargo glam 0.28.0 f64/dvec2/DVec2#, DVec2rust-analyzer cargo glam 0.28.0 f64/dvec2/DVec2#)> for DVec4rust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4# {
1435 #[inline]
1436 fn fromrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4][`From<(DVec2, DVec2)>`]from().((v, u): (DVec2rust-analyzer cargo glam 0.28.0 f64/dvec2/DVec2#, DVec2rust-analyzer cargo glam 0.28.0 f64/dvec2/DVec2#)) -> Selfrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4][`From<(DVec2, DVec2)>`] {
1437 Selfrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4][`From<(DVec2, DVec2)>`]::newrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4]new().(v.xrust-analyzer cargo glam 0.28.0 f64/dvec2/DVec2#x., v.yrust-analyzer cargo glam 0.28.0 f64/dvec2/DVec2#y., u.xrust-analyzer cargo glam 0.28.0 f64/dvec2/DVec2#x., u.yrust-analyzer cargo glam 0.28.0 f64/dvec2/DVec2#y.)
1438 }
1439 }
1440
1441 impl Fromrust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/From#<Vec4rust-analyzer cargo glam 0.28.0 f32/sse2/vec4/Vec4#> for DVec4rust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4# {
1442 #[inline]
1443 fn fromrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4][`From<Vec4>`]from().(v: Vec4rust-analyzer cargo glam 0.28.0 f32/sse2/vec4/Vec4#) -> Selfrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4][`From<Vec4>`] {
1444 Selfrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4][`From<Vec4>`]::newrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4]new().(
1445 f64::fromrust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/num/impl#[f64][`From<f32>`]from().(v.xrust-analyzer cargo glam 0.28.0 deref/Vec4#x.),
1446 f64::fromrust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/num/impl#[f64][`From<f32>`]from().(v.yrust-analyzer cargo glam 0.28.0 deref/Vec4#y.),
1447 f64::fromrust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/num/impl#[f64][`From<f32>`]from().(v.zrust-analyzer cargo glam 0.28.0 deref/Vec4#z.),
1448 f64::fromrust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/num/impl#[f64][`From<f32>`]from().(v.wrust-analyzer cargo glam 0.28.0 deref/Vec4#w.),
1449 )
1450 }
1451 }
1452
1453 impl Fromrust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/From#<IVec4rust-analyzer cargo glam 0.28.0 i32/ivec4/IVec4#> for DVec4rust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4# {
1454 #[inline]
1455 fn fromrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4][`From<IVec4>`]from().(v: IVec4rust-analyzer cargo glam 0.28.0 i32/ivec4/IVec4#) -> Selfrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4][`From<IVec4>`] {
1456 Selfrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4][`From<IVec4>`]::newrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4]new().(
1457 f64::fromrust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/num/impl#[f64][`From<i32>`]from().(v.xrust-analyzer cargo glam 0.28.0 i32/ivec4/IVec4#x.),
1458 f64::fromrust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/num/impl#[f64][`From<i32>`]from().(v.yrust-analyzer cargo glam 0.28.0 i32/ivec4/IVec4#y.),
1459 f64::fromrust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/num/impl#[f64][`From<i32>`]from().(v.zrust-analyzer cargo glam 0.28.0 i32/ivec4/IVec4#z.),
1460 f64::fromrust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/num/impl#[f64][`From<i32>`]from().(v.wrust-analyzer cargo glam 0.28.0 i32/ivec4/IVec4#w.),
1461 )
1462 }
1463 }
1464
1465 impl Fromrust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/From#<UVec4rust-analyzer cargo glam 0.28.0 u32/uvec4/UVec4#> for DVec4rust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4# {
1466 #[inline]
1467 fn fromrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4][`From<UVec4>`]from().(v: UVec4rust-analyzer cargo glam 0.28.0 u32/uvec4/UVec4#) -> Selfrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4][`From<UVec4>`] {
1468 Selfrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4][`From<UVec4>`]::newrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4]new().(
1469 f64::fromrust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/num/impl#[f64][`From<u32>`]from().(v.xrust-analyzer cargo glam 0.28.0 u32/uvec4/UVec4#x.),
1470 f64::fromrust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/num/impl#[f64][`From<u32>`]from().(v.yrust-analyzer cargo glam 0.28.0 u32/uvec4/UVec4#y.),
1471 f64::fromrust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/num/impl#[f64][`From<u32>`]from().(v.zrust-analyzer cargo glam 0.28.0 u32/uvec4/UVec4#z.),
1472 f64::fromrust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/num/impl#[f64][`From<u32>`]from().(v.wrust-analyzer cargo glam 0.28.0 u32/uvec4/UVec4#w.),
1473 )
1474 }
1475 }
1476
1477 impl Fromrust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/From#<BVec4rust-analyzer cargo glam 0.28.0 bool/bvec4/BVec4#> for DVec4rust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4# {
1478 #[inline]
1479 fn fromrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4][`From<BVec4>`]from().(v: BVec4rust-analyzer cargo glam 0.28.0 bool/bvec4/BVec4#) -> Selfrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4][`From<BVec4>`] {
1480 Selfrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4][`From<BVec4>`]::newrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4]new().(
1481 f64::fromrust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/num/impl#[f64][`From<bool>`]from().(v.xrust-analyzer cargo glam 0.28.0 bool/bvec4/BVec4#x.),
1482 f64::fromrust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/num/impl#[f64][`From<bool>`]from().(v.yrust-analyzer cargo glam 0.28.0 bool/bvec4/BVec4#y.),
1483 f64::fromrust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/num/impl#[f64][`From<bool>`]from().(v.zrust-analyzer cargo glam 0.28.0 bool/bvec4/BVec4#z.),
1484 f64::fromrust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/num/impl#[f64][`From<bool>`]from().(v.wrust-analyzer cargo glam 0.28.0 bool/bvec4/BVec4#w.),
1485 )
1486 }
1487 }
1488
1489 #[cfg(not(feature = "scalar-math"))]
1490
1491 impl Fromrust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/From#<BVec4Arust-analyzer cargo glam 0.28.0 bool/sse2/bvec4a/BVec4A#> for DVec4rust-analyzer cargo glam 0.28.0 f64/dvec4/DVec4# {
1492 #[inline]
1493 fn fromrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4][`From<BVec4A>`]from().(v: BVec4Arust-analyzer cargo glam 0.28.0 bool/sse2/bvec4a/BVec4A#) -> Selfrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4][`From<BVec4A>`] {
1494 let bool_array: [bool; 4] = v.intorust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/impl#[T][`Into<U>`]into().();
1495 Selfrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4][`From<BVec4A>`]::newrust-analyzer cargo glam 0.28.0 f64/dvec4/impl#[DVec4]new().(
1496 f64::fromrust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/num/impl#[f64][`From<bool>`]from().(bool_array[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index().0]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index().),
1497 f64::fromrust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/num/impl#[f64][`From<bool>`]from().(bool_array[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index().1]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index().),
1498 f64::fromrust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/num/impl#[f64][`From<bool>`]from().(bool_array[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index().2]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index().),
1499 f64::fromrust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/num/impl#[f64][`From<bool>`]from().(bool_array[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index().3]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index().),
1500 )
1501 }
1502 }