Debian Codegraph @

debian/missing-sources/glam-0.28.0/src/f32/sse2/vec3a.rs

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