Debian Codegraph @

debian/missing-sources/glam-0.23.0/src/f32/sse2/mat2.rs

raw symbols SCIP
1 // Generated from mat.rs.tera template. Edit the template, not the generated file.
2
3 use craterust-analyzer cargo glam 0.23.0 crate/::{swizzlesrust-analyzer cargo glam 0.23.0 swizzles/::*, DMat2rust-analyzer cargo glam 0.23.0 f64/dmat2/DMat2#, Mat3rust-analyzer cargo glam 0.23.0 f32/mat3/Mat3#, Mat3Arust-analyzer cargo glam 0.23.0 f32/sse2/mat3a/Mat3A#, Vec2rust-analyzer cargo glam 0.23.0 f32/vec2/Vec2#};
4 #[cfg(not(target_arch = "spirv"))]
5 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/;
6 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#};
7 use corerust-analyzer cargo core https://github.com/rust-lang/rust/library/core crate/::opsrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/::{Addrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Add#, AddAssignrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/AddAssign#, Mulrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Mul#, MulAssignrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/MulAssign#, Negrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Neg#, Subrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Sub#, SubAssignrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/SubAssign#};
8
9 #[cfg(target_arch = "x86")]
10 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::*;
11 #[cfg(target_arch = "x86_64")]
12 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/::*;
13
14 #[cfg(feature = "libm")]
15 #[allow(unused_imports)]
16 use num_traits::Float;
17
18 union UnionCastrust-analyzer cargo glam 0.23.0 f32/sse2/mat2/UnionCast# {
19 arust-analyzer cargo glam 0.23.0 f32/sse2/mat2/UnionCast#a.: [f32; 4],
20 vrust-analyzer cargo glam 0.23.0 f32/sse2/mat2/UnionCast#v.: Mat2rust-analyzer cargo glam 0.23.0 f32/sse2/mat2/Mat2#,
21 }
22
23 /// Creates a 2x2 matrix from column vectors.
24 #[inline(always)]
25 pub const fn mat2rust-analyzer cargo glam 0.23.0 f32/sse2/mat2/mat2().(x_axis: Vec2rust-analyzer cargo glam 0.23.0 f32/vec2/Vec2#, y_axis: Vec2rust-analyzer cargo glam 0.23.0 f32/vec2/Vec2#) -> Mat2rust-analyzer cargo glam 0.23.0 f32/sse2/mat2/Mat2# {
26 Mat2rust-analyzer cargo glam 0.23.0 f32/sse2/mat2/Mat2#::from_colsrust-analyzer cargo glam 0.23.0 f32/sse2/mat2/impl#[Mat2]from_cols().(x_axis, y_axis)
27 }
28
29 /// A 2x2 column major matrix.
30 #[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:)]
31 #[repr(transparent)]
32 pub struct Mat2rust-analyzer cargo glam 0.23.0 f32/sse2/mat2/Mat2#(pub(craterust-analyzer cargo glam 0.23.0 crate/) __m128rust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/__m128#);
33
34 impl Mat2rust-analyzer cargo glam 0.23.0 f32/sse2/mat2/Mat2# {
35 /// A 2x2 matrix with all elements set to `0.0`.
36 pub const ZEROrust-analyzer cargo glam 0.23.0 f32/sse2/mat2/impl#[Mat2]ZERO.: Selfrust-analyzer cargo glam 0.23.0 f32/sse2/mat2/impl#[Mat2] = Selfrust-analyzer cargo glam 0.23.0 f32/sse2/mat2/impl#[Mat2]::from_colsrust-analyzer cargo glam 0.23.0 f32/sse2/mat2/impl#[Mat2]from_cols().(Vec2rust-analyzer cargo glam 0.23.0 f32/vec2/Vec2#::ZEROrust-analyzer cargo glam 0.23.0 f32/vec2/impl#[Vec2]ZERO., Vec2rust-analyzer cargo glam 0.23.0 f32/vec2/Vec2#::ZEROrust-analyzer cargo glam 0.23.0 f32/vec2/impl#[Vec2]ZERO.);
37
38 /// A 2x2 identity matrix, where all diagonal elements are `1`, and all off-diagonal elements are `0`.
39 pub const IDENTITYrust-analyzer cargo glam 0.23.0 f32/sse2/mat2/impl#[Mat2]IDENTITY.: Selfrust-analyzer cargo glam 0.23.0 f32/sse2/mat2/impl#[Mat2] = Selfrust-analyzer cargo glam 0.23.0 f32/sse2/mat2/impl#[Mat2]::from_colsrust-analyzer cargo glam 0.23.0 f32/sse2/mat2/impl#[Mat2]from_cols().(Vec2rust-analyzer cargo glam 0.23.0 f32/vec2/Vec2#::Xrust-analyzer cargo glam 0.23.0 f32/vec2/impl#[Vec2]X., Vec2rust-analyzer cargo glam 0.23.0 f32/vec2/Vec2#::Yrust-analyzer cargo glam 0.23.0 f32/vec2/impl#[Vec2]Y.);
40
41 /// All NAN:s.
42 pub const NANrust-analyzer cargo glam 0.23.0 f32/sse2/mat2/impl#[Mat2]NAN.: Selfrust-analyzer cargo glam 0.23.0 f32/sse2/mat2/impl#[Mat2] = Selfrust-analyzer cargo glam 0.23.0 f32/sse2/mat2/impl#[Mat2]::from_colsrust-analyzer cargo glam 0.23.0 f32/sse2/mat2/impl#[Mat2]from_cols().(Vec2rust-analyzer cargo glam 0.23.0 f32/vec2/Vec2#::NANrust-analyzer cargo glam 0.23.0 f32/vec2/impl#[Vec2]NAN., Vec2rust-analyzer cargo glam 0.23.0 f32/vec2/Vec2#::NANrust-analyzer cargo glam 0.23.0 f32/vec2/impl#[Vec2]NAN.);
43
44 #[allow(clippy::too_many_arguments)]
45 #[inline(always)]
46 const fn newrust-analyzer cargo glam 0.23.0 f32/sse2/mat2/impl#[Mat2]new().(m00: f32, m01: f32, m10: f32, m11: f32) -> Selfrust-analyzer cargo glam 0.23.0 f32/sse2/mat2/impl#[Mat2] {
47 unsafe {
48 UnionCastrust-analyzer cargo glam 0.23.0 f32/sse2/mat2/UnionCast# {
49 arust-analyzer cargo glam 0.23.0 f32/sse2/mat2/UnionCast#a.: [m00, m01, m10, m11],
50 }
51 .vrust-analyzer cargo glam 0.23.0 f32/sse2/mat2/UnionCast#v.
52 }
53 }
54
55 /// Creates a 2x2 matrix from two column vectors.
56 #[inline(always)]
57 pub const fn from_colsrust-analyzer cargo glam 0.23.0 f32/sse2/mat2/impl#[Mat2]from_cols().(x_axis: Vec2rust-analyzer cargo glam 0.23.0 f32/vec2/Vec2#, y_axis: Vec2rust-analyzer cargo glam 0.23.0 f32/vec2/Vec2#) -> Selfrust-analyzer cargo glam 0.23.0 f32/sse2/mat2/impl#[Mat2] {
58 unsafe {
59 UnionCastrust-analyzer cargo glam 0.23.0 f32/sse2/mat2/UnionCast# {
60 arust-analyzer cargo glam 0.23.0 f32/sse2/mat2/UnionCast#a.: [x_axis.xrust-analyzer cargo glam 0.23.0 f32/vec2/Vec2#x., x_axis.yrust-analyzer cargo glam 0.23.0 f32/vec2/Vec2#y., y_axis.xrust-analyzer cargo glam 0.23.0 f32/vec2/Vec2#x., y_axis.yrust-analyzer cargo glam 0.23.0 f32/vec2/Vec2#y.],
61 }
62 .vrust-analyzer cargo glam 0.23.0 f32/sse2/mat2/UnionCast#v.
63 }
64 }
65
66 /// Creates a 2x2 matrix from a `[f32; 4]` array stored in column major order.
67 /// If your data is stored in row major you will need to `transpose` the returned
68 /// matrix.
69 #[inline]
70 pub const fn from_cols_arrayrust-analyzer cargo glam 0.23.0 f32/sse2/mat2/impl#[Mat2]from_cols_array().(m: &[f32; 4]) -> Selfrust-analyzer cargo glam 0.23.0 f32/sse2/mat2/impl#[Mat2] {
71 Selfrust-analyzer cargo glam 0.23.0 f32/sse2/mat2/impl#[Mat2]::newrust-analyzer cargo glam 0.23.0 f32/sse2/mat2/impl#[Mat2]new().(m[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()., m[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()., m[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()., m[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/index/Index#index().3]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/index/Index#index().)
72 }
73
74 /// Creates a `[f32; 4]` array storing data in column major order.
75 /// If you require data in row major order `transpose` the matrix first.
76 #[inline]
77 pub const fn to_cols_arrayrust-analyzer cargo glam 0.23.0 f32/sse2/mat2/impl#[Mat2]to_cols_array().(&self) -> [f32; 4] {
78 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.23.0 f32/sse2/mat2/impl#[Mat2] as *const [f32; 4]) }
79 }
80
81 /// Creates a 2x2 matrix from a `[[f32; 2]; 2]` 2D array stored in column major order.
82 /// If your data is in row major order you will need to `transpose` the returned
83 /// matrix.
84 #[inline]
85 pub const fn from_cols_array_2drust-analyzer cargo glam 0.23.0 f32/sse2/mat2/impl#[Mat2]from_cols_array_2d().(m: &[[f32; 2]; 2]) -> Selfrust-analyzer cargo glam 0.23.0 f32/sse2/mat2/impl#[Mat2] {
86 Selfrust-analyzer cargo glam 0.23.0 f32/sse2/mat2/impl#[Mat2]::from_colsrust-analyzer cargo glam 0.23.0 f32/sse2/mat2/impl#[Mat2]from_cols().(Vec2rust-analyzer cargo glam 0.23.0 f32/vec2/Vec2#::from_arrayrust-analyzer cargo glam 0.23.0 f32/vec2/impl#[Vec2]from_array().(m[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().), Vec2rust-analyzer cargo glam 0.23.0 f32/vec2/Vec2#::from_arrayrust-analyzer cargo glam 0.23.0 f32/vec2/impl#[Vec2]from_array().(m[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().))
87 }
88
89 /// Creates a `[[f32; 2]; 2]` 2D array storing data in column major order.
90 /// If you require data in row major order `transpose` the matrix first.
91 #[inline]
92 pub const fn to_cols_array_2drust-analyzer cargo glam 0.23.0 f32/sse2/mat2/impl#[Mat2]to_cols_array_2d().(&self) -> [[f32; 2]; 2] {
93 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.23.0 f32/sse2/mat2/impl#[Mat2] as *const [[f32; 2]; 2]) }
94 }
95
96 /// Creates a 2x2 matrix with its diagonal set to `diagonal` and all other entries set to 0.
97 #[doc(alias = "scale")]
98 #[inline]
99 pub const fn from_diagonalrust-analyzer cargo glam 0.23.0 f32/sse2/mat2/impl#[Mat2]from_diagonal().(diagonal: Vec2rust-analyzer cargo glam 0.23.0 f32/vec2/Vec2#) -> Selfrust-analyzer cargo glam 0.23.0 f32/sse2/mat2/impl#[Mat2] {
100 Selfrust-analyzer cargo glam 0.23.0 f32/sse2/mat2/impl#[Mat2]::newrust-analyzer cargo glam 0.23.0 f32/sse2/mat2/impl#[Mat2]new().(diagonal.xrust-analyzer cargo glam 0.23.0 f32/vec2/Vec2#x., 0.0, 0.0, diagonal.yrust-analyzer cargo glam 0.23.0 f32/vec2/Vec2#y.)
101 }
102
103 /// Creates a 2x2 matrix containing the combining non-uniform `scale` and rotation of
104 /// `angle` (in radians).
105 #[inline]
106 pub fn from_scale_anglerust-analyzer cargo glam 0.23.0 f32/sse2/mat2/impl#[Mat2]from_scale_angle().(scale: Vec2rust-analyzer cargo glam 0.23.0 f32/vec2/Vec2#, angle: f32) -> Selfrust-analyzer cargo glam 0.23.0 f32/sse2/mat2/impl#[Mat2] {
107 let (sin, cos) = angle.sin_cosrust-analyzer cargo std https://github.com/rust-lang/rust/library/std f32/impl#[f32]sin_cos().();
108 Selfrust-analyzer cargo glam 0.23.0 f32/sse2/mat2/impl#[Mat2]::newrust-analyzer cargo glam 0.23.0 f32/sse2/mat2/impl#[Mat2]new().(cos 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().scale.xrust-analyzer cargo glam 0.23.0 f32/vec2/Vec2#x., sin 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().scale.xrust-analyzer cargo glam 0.23.0 f32/vec2/Vec2#x., -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f32][Neg]neg().sin 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().scale.yrust-analyzer cargo glam 0.23.0 f32/vec2/Vec2#y., cos 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().scale.yrust-analyzer cargo glam 0.23.0 f32/vec2/Vec2#y.)
109 }
110
111 /// Creates a 2x2 matrix containing a rotation of `angle` (in radians).
112 #[inline]
113 pub fn from_anglerust-analyzer cargo glam 0.23.0 f32/sse2/mat2/impl#[Mat2]from_angle().(angle: f32) -> Selfrust-analyzer cargo glam 0.23.0 f32/sse2/mat2/impl#[Mat2] {
114 let (sin, cos) = angle.sin_cosrust-analyzer cargo std https://github.com/rust-lang/rust/library/std f32/impl#[f32]sin_cos().();
115 Selfrust-analyzer cargo glam 0.23.0 f32/sse2/mat2/impl#[Mat2]::newrust-analyzer cargo glam 0.23.0 f32/sse2/mat2/impl#[Mat2]new().(cos, sin, -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f32][Neg]neg().sin, cos)
116 }
117
118 /// Creates a 2x2 matrix from a 3x3 matrix, discarding the 2nd row and column.
119 #[inline]
120 pub fn from_mat3rust-analyzer cargo glam 0.23.0 f32/sse2/mat2/impl#[Mat2]from_mat3().(m: Mat3rust-analyzer cargo glam 0.23.0 f32/mat3/Mat3#) -> Selfrust-analyzer cargo glam 0.23.0 f32/sse2/mat2/impl#[Mat2] {
121 Selfrust-analyzer cargo glam 0.23.0 f32/sse2/mat2/impl#[Mat2]::from_colsrust-analyzer cargo glam 0.23.0 f32/sse2/mat2/impl#[Mat2]from_cols().(m.x_axisrust-analyzer cargo glam 0.23.0 f32/mat3/Mat3#x_axis..xyrust-analyzer cargo glam 0.23.0 swizzles/vec3_impl/impl#[Vec3][Vec3Swizzles]xy().(), m.y_axisrust-analyzer cargo glam 0.23.0 f32/mat3/Mat3#y_axis..xyrust-analyzer cargo glam 0.23.0 swizzles/vec3_impl/impl#[Vec3][Vec3Swizzles]xy().())
122 }
123
124 /// Creates a 2x2 matrix from a 3x3 matrix, discarding the 2nd row and column.
125 #[inline]
126 pub fn from_mat3arust-analyzer cargo glam 0.23.0 f32/sse2/mat2/impl#[Mat2]from_mat3a().(m: Mat3Arust-analyzer cargo glam 0.23.0 f32/sse2/mat3a/Mat3A#) -> Selfrust-analyzer cargo glam 0.23.0 f32/sse2/mat2/impl#[Mat2] {
127 Selfrust-analyzer cargo glam 0.23.0 f32/sse2/mat2/impl#[Mat2]::from_colsrust-analyzer cargo glam 0.23.0 f32/sse2/mat2/impl#[Mat2]from_cols().(m.x_axisrust-analyzer cargo glam 0.23.0 f32/sse2/mat3a/Mat3A#x_axis..xyrust-analyzer cargo glam 0.23.0 swizzles/sse2/vec3a_impl/impl#[Vec3A][Vec3Swizzles]xy().(), m.y_axisrust-analyzer cargo glam 0.23.0 f32/sse2/mat3a/Mat3A#y_axis..xyrust-analyzer cargo glam 0.23.0 swizzles/sse2/vec3a_impl/impl#[Vec3A][Vec3Swizzles]xy().())
128 }
129
130 /// Creates a 2x2 matrix from the first 4 values in `slice`.
131 ///
132 /// # Panics
133 ///
134 /// Panics if `slice` is less than 4 elements long.
135 #[inline]
136 pub const fn from_cols_slicerust-analyzer cargo glam 0.23.0 f32/sse2/mat2/impl#[Mat2]from_cols_slice().(slice: &[f32]) -> Selfrust-analyzer cargo glam 0.23.0 f32/sse2/mat2/impl#[Mat2] {
137 Selfrust-analyzer cargo glam 0.23.0 f32/sse2/mat2/impl#[Mat2]::newrust-analyzer cargo glam 0.23.0 f32/sse2/mat2/impl#[Mat2]new().(slice[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/index/Index#index().0]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/index/Index#index()., slice[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/index/Index#index().1]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/index/Index#index()., slice[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/index/Index#index().2]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/index/Index#index()., slice[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/index/Index#index().3]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/index/Index#index().)
138 }
139
140 /// Writes the columns of `self` to the first 4 elements in `slice`.
141 ///
142 /// # Panics
143 ///
144 /// Panics if `slice` is less than 4 elements long.
145 #[inline]
146 pub fn write_cols_to_slicerust-analyzer cargo glam 0.23.0 f32/sse2/mat2/impl#[Mat2]write_cols_to_slice().(self, slice: &mut [f32]) {
147 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.x_axisrust-analyzer cargo glam 0.23.0 deref/Cols2#x_axis..xrust-analyzer cargo glam 0.23.0 f32/vec2/Vec2#x.;
148 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.x_axisrust-analyzer cargo glam 0.23.0 deref/Cols2#x_axis..yrust-analyzer cargo glam 0.23.0 f32/vec2/Vec2#y.;
149 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.y_axisrust-analyzer cargo glam 0.23.0 deref/Cols2#y_axis..xrust-analyzer cargo glam 0.23.0 f32/vec2/Vec2#x.;
150 slice[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/index/IndexMut#index_mut().3]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/index/IndexMut#index_mut(). = self.y_axisrust-analyzer cargo glam 0.23.0 deref/Cols2#y_axis..yrust-analyzer cargo glam 0.23.0 f32/vec2/Vec2#y.;
151 }
152
153 /// Returns the matrix column for the given `index`.
154 ///
155 /// # Panics
156 ///
157 /// Panics if `index` is greater than 1.
158 #[inline]
159 pub fn colrust-analyzer cargo glam 0.23.0 f32/sse2/mat2/impl#[Mat2]col().(&self, index: usize) -> Vec2rust-analyzer cargo glam 0.23.0 f32/vec2/Vec2# {
160 match index {
161 0 => self.x_axisrust-analyzer cargo glam 0.23.0 deref/Cols2#x_axis.,
162 1 => self.y_axisrust-analyzer cargo glam 0.23.0 deref/Cols2#y_axis.,
163 _ => panicrust-analyzer cargo std https://github.com/rust-lang/rust/library/std macros/panic!!("index out of bounds"),
164 }
165 }
166
167 /// Returns a mutable reference to the matrix column for the given `index`.
168 ///
169 /// # Panics
170 ///
171 /// Panics if `index` is greater than 1.
172 #[inline]
173 pub fn col_mutrust-analyzer cargo glam 0.23.0 f32/sse2/mat2/impl#[Mat2]col_mut().(&mut self, index: usize) -> &mut Vec2rust-analyzer cargo glam 0.23.0 f32/vec2/Vec2# {
174 match index {
175 0 => &mut self.x_axisrust-analyzer cargo glam 0.23.0 deref/Cols2#x_axis.,
176 1 => &mut self.y_axisrust-analyzer cargo glam 0.23.0 deref/Cols2#y_axis.,
177 _ => panicrust-analyzer cargo std https://github.com/rust-lang/rust/library/std macros/panic!!("index out of bounds"),
178 }
179 }
180
181 /// Returns the matrix row for the given `index`.
182 ///
183 /// # Panics
184 ///
185 /// Panics if `index` is greater than 1.
186 #[inline]
187 pub fn rowrust-analyzer cargo glam 0.23.0 f32/sse2/mat2/impl#[Mat2]row().(&self, index: usize) -> Vec2rust-analyzer cargo glam 0.23.0 f32/vec2/Vec2# {
188 match index {
189 0 => Vec2rust-analyzer cargo glam 0.23.0 f32/vec2/Vec2#::newrust-analyzer cargo glam 0.23.0 f32/vec2/impl#[Vec2]new().(self.x_axisrust-analyzer cargo glam 0.23.0 deref/Cols2#x_axis..xrust-analyzer cargo glam 0.23.0 f32/vec2/Vec2#x., self.y_axisrust-analyzer cargo glam 0.23.0 deref/Cols2#y_axis..xrust-analyzer cargo glam 0.23.0 f32/vec2/Vec2#x.),
190 1 => Vec2rust-analyzer cargo glam 0.23.0 f32/vec2/Vec2#::newrust-analyzer cargo glam 0.23.0 f32/vec2/impl#[Vec2]new().(self.x_axisrust-analyzer cargo glam 0.23.0 deref/Cols2#x_axis..yrust-analyzer cargo glam 0.23.0 f32/vec2/Vec2#y., self.y_axisrust-analyzer cargo glam 0.23.0 deref/Cols2#y_axis..yrust-analyzer cargo glam 0.23.0 f32/vec2/Vec2#y.),
191 _ => panicrust-analyzer cargo std https://github.com/rust-lang/rust/library/std macros/panic!!("index out of bounds"),
192 }
193 }
194
195 /// Returns `true` if, and only if, all elements are finite.
196 /// If any element is either `NaN`, positive or negative infinity, this will return `false`.
197 #[inline]
198 pub fn is_finiterust-analyzer cargo glam 0.23.0 f32/sse2/mat2/impl#[Mat2]is_finite().(&self) -> bool {
199 self.x_axisrust-analyzer cargo glam 0.23.0 deref/Cols2#x_axis..is_finiterust-analyzer cargo glam 0.23.0 f32/vec2/impl#[Vec2]is_finite().() && self.y_axisrust-analyzer cargo glam 0.23.0 deref/Cols2#y_axis..is_finiterust-analyzer cargo glam 0.23.0 f32/vec2/impl#[Vec2]is_finite().()
200 }
201
202 /// Returns `true` if any elements are `NaN`.
203 #[inline]
204 pub fn is_nanrust-analyzer cargo glam 0.23.0 f32/sse2/mat2/impl#[Mat2]is_nan().(&self) -> bool {
205 self.x_axisrust-analyzer cargo glam 0.23.0 deref/Cols2#x_axis..is_nanrust-analyzer cargo glam 0.23.0 f32/vec2/impl#[Vec2]is_nan().() || self.y_axisrust-analyzer cargo glam 0.23.0 deref/Cols2#y_axis..is_nanrust-analyzer cargo glam 0.23.0 f32/vec2/impl#[Vec2]is_nan().()
206 }
207
208 /// Returns the transpose of `self`.
209 #[must_use]
210 #[inline]
211 pub fn transposerust-analyzer cargo glam 0.23.0 f32/sse2/mat2/impl#[Mat2]transpose().(&self) -> Selfrust-analyzer cargo glam 0.23.0 f32/sse2/mat2/impl#[Mat2] {
212 Selfrust-analyzer cargo glam 0.23.0 f32/sse2/mat2/impl#[Mat2](unsafe { _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.23.0 f32/sse2/mat2/Mat2#0., self.0rust-analyzer cargo glam 0.23.0 f32/sse2/mat2/Mat2#0., 0b11_01_10_00) })
213 }
214
215 /// Returns the determinant of `self`.
216 #[inline]
217 pub fn determinantrust-analyzer cargo glam 0.23.0 f32/sse2/mat2/impl#[Mat2]determinant().(&self) -> f32 {
218 unsafe {
219 let abcd = self.0rust-analyzer cargo glam 0.23.0 f32/sse2/mat2/Mat2#0.;
220 let dcba = _mm_shuffle_psrust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/sse/_mm_shuffle_ps().(abcd, abcd, 0b00_01_10_11);
221 let prod = _mm_mul_psrust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/sse/_mm_mul_ps().(abcd, dcba);
222 let det = _mm_sub_psrust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/sse/_mm_sub_ps().(prod, _mm_shuffle_psrust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/sse/_mm_shuffle_ps().(prod, prod, 0b01_01_01_01));
223 _mm_cvtss_f32rust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/sse/_mm_cvtss_f32().(det)
224 }
225 }
226
227 /// Returns the inverse of `self`.
228 ///
229 /// If the matrix is not invertible the returned matrix will be invalid.
230 ///
231 /// # Panics
232 ///
233 /// Will panic if the determinant of `self` is zero when `glam_assert` is enabled.
234 #[must_use]
235 #[inline]
236 pub fn inverserust-analyzer cargo glam 0.23.0 f32/sse2/mat2/impl#[Mat2]inverse().(&self) -> Selfrust-analyzer cargo glam 0.23.0 f32/sse2/mat2/impl#[Mat2] {
237 unsafe {
238 const SIGNrust-analyzer cargo glam 0.23.0 f32/sse2/mat2/SIGN.: __m128rust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/__m128# = craterust-analyzer cargo glam 0.23.0 crate/::sse2rust-analyzer cargo glam 0.23.0 sse2/::m128_from_f32x4rust-analyzer cargo glam 0.23.0 sse2/m128_from_f32x4().([1.0, -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][Neg]neg().1.0, 1.0]);
239 let abcd = self.0rust-analyzer cargo glam 0.23.0 f32/sse2/mat2/Mat2#0.;
240 let dcba = _mm_shuffle_psrust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/sse/_mm_shuffle_ps().(abcd, abcd, 0b00_01_10_11);
241 let prod = _mm_mul_psrust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/sse/_mm_mul_ps().(abcd, dcba);
242 let sub = _mm_sub_psrust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/sse/_mm_sub_ps().(prod, _mm_shuffle_psrust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/sse/_mm_shuffle_ps().(prod, prod, 0b01_01_01_01));
243 let det = _mm_shuffle_psrust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/sse/_mm_shuffle_ps().(sub, sub, 0b00_00_00_00);
244 let tmp = _mm_div_psrust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/sse/_mm_div_ps().(SIGNrust-analyzer cargo glam 0.23.0 f32/sse2/mat2/SIGN., det);
245 glam_assertrust-analyzer cargo glam 0.23.0 macros/glam_assert!!(Mat2(tmp).is_finite());
246 let dbca = _mm_shuffle_psrust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/sse/_mm_shuffle_ps().(abcd, abcd, 0b00_10_01_11);
247 Selfrust-analyzer cargo glam 0.23.0 f32/sse2/mat2/impl#[Mat2](_mm_mul_psrust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/sse/_mm_mul_ps().(dbca, tmp))
248 }
249 }
250
251 /// Transforms a 2D vector.
252 #[inline]
253 pub fn mul_vec2rust-analyzer cargo glam 0.23.0 f32/sse2/mat2/impl#[Mat2]mul_vec2().(&self, rhs: Vec2rust-analyzer cargo glam 0.23.0 f32/vec2/Vec2#) -> Vec2rust-analyzer cargo glam 0.23.0 f32/vec2/Vec2# {
254 unsafe {
255 use craterust-analyzer cargo glam 0.23.0 crate/::Align16rust-analyzer cargo glam 0.23.0 align16/Align16#;
256 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#;
257 let abcd = self.0rust-analyzer cargo glam 0.23.0 f32/sse2/mat2/Mat2#0.;
258 let xxyy = _mm_set_psrust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/sse/_mm_set_ps().(rhs.yrust-analyzer cargo glam 0.23.0 f32/vec2/Vec2#y., rhs.yrust-analyzer cargo glam 0.23.0 f32/vec2/Vec2#y., rhs.xrust-analyzer cargo glam 0.23.0 f32/vec2/Vec2#x., rhs.xrust-analyzer cargo glam 0.23.0 f32/vec2/Vec2#x.);
259 let axbxcydy = _mm_mul_psrust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/sse/_mm_mul_ps().(abcd, xxyy);
260 let cydyaxbx = _mm_shuffle_psrust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/sse/_mm_shuffle_ps().(axbxcydy, axbxcydy, 0b01_00_11_10);
261 let result = _mm_add_psrust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/sse/_mm_add_ps().(axbxcydy, cydyaxbx);
262 let mut out: MaybeUninitrust-analyzer cargo core https://github.com/rust-lang/rust/library/core mem/maybe_uninit/MaybeUninit#<Align16rust-analyzer cargo glam 0.23.0 align16/Align16#<Vec2rust-analyzer cargo glam 0.23.0 f32/vec2/Vec2#>> = 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().();
263 _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().(), result);
264 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.23.0 align16/Align16#0.
265 }
266 }
267
268 /// Multiplies two 2x2 matrices.
269 #[inline]
270 pub fn mul_mat2rust-analyzer cargo glam 0.23.0 f32/sse2/mat2/impl#[Mat2]mul_mat2().(&self, rhs: &Selfrust-analyzer cargo glam 0.23.0 f32/sse2/mat2/impl#[Mat2]) -> Selfrust-analyzer cargo glam 0.23.0 f32/sse2/mat2/impl#[Mat2] {
271 unsafe {
272 let abcd = self.0rust-analyzer cargo glam 0.23.0 f32/sse2/mat2/Mat2#0.;
273 let rhs = rhs.0rust-analyzer cargo glam 0.23.0 f32/sse2/mat2/Mat2#0.;
274 let xxyy0 = _mm_shuffle_psrust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/sse/_mm_shuffle_ps().(rhs, rhs, 0b01_01_00_00);
275 let xxyy1 = _mm_shuffle_psrust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/sse/_mm_shuffle_ps().(rhs, rhs, 0b11_11_10_10);
276 let axbxcydy0 = _mm_mul_psrust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/sse/_mm_mul_ps().(abcd, xxyy0);
277 let axbxcydy1 = _mm_mul_psrust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/sse/_mm_mul_ps().(abcd, xxyy1);
278 let cydyaxbx0 = _mm_shuffle_psrust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/sse/_mm_shuffle_ps().(axbxcydy0, axbxcydy0, 0b01_00_11_10);
279 let cydyaxbx1 = _mm_shuffle_psrust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/sse/_mm_shuffle_ps().(axbxcydy1, axbxcydy1, 0b01_00_11_10);
280 let result0 = _mm_add_psrust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/sse/_mm_add_ps().(axbxcydy0, cydyaxbx0);
281 let result1 = _mm_add_psrust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/sse/_mm_add_ps().(axbxcydy1, cydyaxbx1);
282 Selfrust-analyzer cargo glam 0.23.0 f32/sse2/mat2/impl#[Mat2](_mm_shuffle_psrust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/sse/_mm_shuffle_ps().(result0, result1, 0b01_00_01_00))
283 }
284 }
285
286 /// Adds two 2x2 matrices.
287 #[inline]
288 pub fn add_mat2rust-analyzer cargo glam 0.23.0 f32/sse2/mat2/impl#[Mat2]add_mat2().(&self, rhs: &Selfrust-analyzer cargo glam 0.23.0 f32/sse2/mat2/impl#[Mat2]) -> Selfrust-analyzer cargo glam 0.23.0 f32/sse2/mat2/impl#[Mat2] {
289 Selfrust-analyzer cargo glam 0.23.0 f32/sse2/mat2/impl#[Mat2](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.23.0 f32/sse2/mat2/Mat2#0., rhs.0rust-analyzer cargo glam 0.23.0 f32/sse2/mat2/Mat2#0.) })
290 }
291
292 /// Subtracts two 2x2 matrices.
293 #[inline]
294 pub fn sub_mat2rust-analyzer cargo glam 0.23.0 f32/sse2/mat2/impl#[Mat2]sub_mat2().(&self, rhs: &Selfrust-analyzer cargo glam 0.23.0 f32/sse2/mat2/impl#[Mat2]) -> Selfrust-analyzer cargo glam 0.23.0 f32/sse2/mat2/impl#[Mat2] {
295 Selfrust-analyzer cargo glam 0.23.0 f32/sse2/mat2/impl#[Mat2](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.23.0 f32/sse2/mat2/Mat2#0., rhs.0rust-analyzer cargo glam 0.23.0 f32/sse2/mat2/Mat2#0.) })
296 }
297
298 /// Multiplies a 2x2 matrix by a scalar.
299 #[inline]
300 pub fn mul_scalarrust-analyzer cargo glam 0.23.0 f32/sse2/mat2/impl#[Mat2]mul_scalar().(&self, rhs: f32) -> Selfrust-analyzer cargo glam 0.23.0 f32/sse2/mat2/impl#[Mat2] {
301 Selfrust-analyzer cargo glam 0.23.0 f32/sse2/mat2/impl#[Mat2](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.23.0 f32/sse2/mat2/Mat2#0., _mm_set_ps1rust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/sse/_mm_set_ps1().(rhs)) })
302 }
303
304 /// Returns true if the absolute difference of all elements between `self` and `rhs`
305 /// is less than or equal to `max_abs_diff`.
306 ///
307 /// This can be used to compare if two matrices contain similar elements. It works best
308 /// when comparing with a known value. The `max_abs_diff` that should be used used
309 /// depends on the values being compared against.
310 ///
311 /// For more see
312 /// [comparing floating point numbers](https://randomascii.wordpress.com/2012/02/25/comparing-floating-point-numbers-2012-edition/).
313 #[inline]
314 pub fn abs_diff_eqrust-analyzer cargo glam 0.23.0 f32/sse2/mat2/impl#[Mat2]abs_diff_eq().(&self, rhs: Selfrust-analyzer cargo glam 0.23.0 f32/sse2/mat2/impl#[Mat2], max_abs_diff: f32) -> bool {
315 self.x_axisrust-analyzer cargo glam 0.23.0 deref/Cols2#x_axis..abs_diff_eqrust-analyzer cargo glam 0.23.0 f32/vec2/impl#[Vec2]abs_diff_eq().(rhs.x_axisrust-analyzer cargo glam 0.23.0 deref/Cols2#x_axis., max_abs_diff)
316 && self.y_axisrust-analyzer cargo glam 0.23.0 deref/Cols2#y_axis..abs_diff_eqrust-analyzer cargo glam 0.23.0 f32/vec2/impl#[Vec2]abs_diff_eq().(rhs.y_axisrust-analyzer cargo glam 0.23.0 deref/Cols2#y_axis., max_abs_diff)
317 }
318
319 #[inline]
320 pub fn as_dmat2rust-analyzer cargo glam 0.23.0 f32/sse2/mat2/impl#[Mat2]as_dmat2().(&self) -> DMat2rust-analyzer cargo glam 0.23.0 f64/dmat2/DMat2# {
321 DMat2rust-analyzer cargo glam 0.23.0 f64/dmat2/DMat2#::from_colsrust-analyzer cargo glam 0.23.0 f64/dmat2/impl#[DMat2]from_cols().(self.x_axisrust-analyzer cargo glam 0.23.0 deref/Cols2#x_axis..as_dvec2rust-analyzer cargo glam 0.23.0 f32/vec2/impl#[Vec2]as_dvec2().(), self.y_axisrust-analyzer cargo glam 0.23.0 deref/Cols2#y_axis..as_dvec2rust-analyzer cargo glam 0.23.0 f32/vec2/impl#[Vec2]as_dvec2().())
322 }
323 }
324
325 impl Defaultrust-analyzer cargo core https://github.com/rust-lang/rust/library/core default/Default# for Mat2rust-analyzer cargo glam 0.23.0 f32/sse2/mat2/Mat2# {
326 #[inline]
327 fn defaultrust-analyzer cargo glam 0.23.0 f32/sse2/mat2/impl#[Mat2][Default]default().() -> Selfrust-analyzer cargo glam 0.23.0 f32/sse2/mat2/impl#[Mat2][Default] {
328 Selfrust-analyzer cargo glam 0.23.0 f32/sse2/mat2/impl#[Mat2][Default]::IDENTITYrust-analyzer cargo glam 0.23.0 f32/sse2/mat2/impl#[Mat2]IDENTITY.
329 }
330 }
331
332 impl Addrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Add#<Mat2rust-analyzer cargo glam 0.23.0 f32/sse2/mat2/Mat2#> for Mat2rust-analyzer cargo glam 0.23.0 f32/sse2/mat2/Mat2# {
333 type Outputrust-analyzer cargo glam 0.23.0 f32/sse2/mat2/impl#[Mat2][`Add<Self>`]Output# = Selfrust-analyzer cargo glam 0.23.0 f32/sse2/mat2/impl#[Mat2][`Add<Self>`];
334 #[inline]
335 fn addrust-analyzer cargo glam 0.23.0 f32/sse2/mat2/impl#[Mat2][`Add<Self>`]add().(self, rhs: Selfrust-analyzer cargo glam 0.23.0 f32/sse2/mat2/impl#[Mat2][`Add<Self>`]) -> Selfrust-analyzer cargo glam 0.23.0 f32/sse2/mat2/impl#[Mat2][`Add<Self>`]::Outputrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Add#Output# {
336 self.add_mat2rust-analyzer cargo glam 0.23.0 f32/sse2/mat2/impl#[Mat2]add_mat2().(&rhs)
337 }
338 }
339
340 impl AddAssignrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/AddAssign#<Mat2rust-analyzer cargo glam 0.23.0 f32/sse2/mat2/Mat2#> for Mat2rust-analyzer cargo glam 0.23.0 f32/sse2/mat2/Mat2# {
341 #[inline]
342 fn add_assignrust-analyzer cargo glam 0.23.0 f32/sse2/mat2/impl#[Mat2][`AddAssign<Self>`]add_assign().(&mut self, rhs: Selfrust-analyzer cargo glam 0.23.0 f32/sse2/mat2/impl#[Mat2][`AddAssign<Self>`]) {
343 *rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/deref/impl#[`&mut T`][Deref]deref().self = self.add_mat2rust-analyzer cargo glam 0.23.0 f32/sse2/mat2/impl#[Mat2]add_mat2().(&rhs);
344 }
345 }
346
347 impl Subrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Sub#<Mat2rust-analyzer cargo glam 0.23.0 f32/sse2/mat2/Mat2#> for Mat2rust-analyzer cargo glam 0.23.0 f32/sse2/mat2/Mat2# {
348 type Outputrust-analyzer cargo glam 0.23.0 f32/sse2/mat2/impl#[Mat2][`Sub<Self>`]Output# = Selfrust-analyzer cargo glam 0.23.0 f32/sse2/mat2/impl#[Mat2][`Sub<Self>`];
349 #[inline]
350 fn subrust-analyzer cargo glam 0.23.0 f32/sse2/mat2/impl#[Mat2][`Sub<Self>`]sub().(self, rhs: Selfrust-analyzer cargo glam 0.23.0 f32/sse2/mat2/impl#[Mat2][`Sub<Self>`]) -> Selfrust-analyzer cargo glam 0.23.0 f32/sse2/mat2/impl#[Mat2][`Sub<Self>`]::Outputrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Sub#Output# {
351 self.sub_mat2rust-analyzer cargo glam 0.23.0 f32/sse2/mat2/impl#[Mat2]sub_mat2().(&rhs)
352 }
353 }
354
355 impl SubAssignrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/SubAssign#<Mat2rust-analyzer cargo glam 0.23.0 f32/sse2/mat2/Mat2#> for Mat2rust-analyzer cargo glam 0.23.0 f32/sse2/mat2/Mat2# {
356 #[inline]
357 fn sub_assignrust-analyzer cargo glam 0.23.0 f32/sse2/mat2/impl#[Mat2][`SubAssign<Self>`]sub_assign().(&mut self, rhs: Selfrust-analyzer cargo glam 0.23.0 f32/sse2/mat2/impl#[Mat2][`SubAssign<Self>`]) {
358 *rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/deref/impl#[`&mut T`][Deref]deref().self = self.sub_mat2rust-analyzer cargo glam 0.23.0 f32/sse2/mat2/impl#[Mat2]sub_mat2().(&rhs);
359 }
360 }
361
362 impl Negrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Neg# for Mat2rust-analyzer cargo glam 0.23.0 f32/sse2/mat2/Mat2# {
363 type Outputrust-analyzer cargo glam 0.23.0 f32/sse2/mat2/impl#[Mat2][Neg]Output# = Selfrust-analyzer cargo glam 0.23.0 f32/sse2/mat2/impl#[Mat2][Neg];
364 #[inline]
365 fn negrust-analyzer cargo glam 0.23.0 f32/sse2/mat2/impl#[Mat2][Neg]neg().(self) -> Selfrust-analyzer cargo glam 0.23.0 f32/sse2/mat2/impl#[Mat2][Neg]::Outputrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Neg#Output# {
366 Selfrust-analyzer cargo glam 0.23.0 f32/sse2/mat2/impl#[Mat2][Neg](unsafe { _mm_xor_psrust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/sse/_mm_xor_ps().(self.0rust-analyzer cargo glam 0.23.0 f32/sse2/mat2/Mat2#0., _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)) })
367 }
368 }
369
370 impl Mulrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Mul#<Mat2rust-analyzer cargo glam 0.23.0 f32/sse2/mat2/Mat2#> for Mat2rust-analyzer cargo glam 0.23.0 f32/sse2/mat2/Mat2# {
371 type Outputrust-analyzer cargo glam 0.23.0 f32/sse2/mat2/impl#[Mat2][`Mul<Self>`]Output# = Selfrust-analyzer cargo glam 0.23.0 f32/sse2/mat2/impl#[Mat2][`Mul<Self>`];
372 #[inline]
373 fn mulrust-analyzer cargo glam 0.23.0 f32/sse2/mat2/impl#[Mat2][`Mul<Self>`]mul().(self, rhs: Selfrust-analyzer cargo glam 0.23.0 f32/sse2/mat2/impl#[Mat2][`Mul<Self>`]) -> Selfrust-analyzer cargo glam 0.23.0 f32/sse2/mat2/impl#[Mat2][`Mul<Self>`]::Outputrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Mul#Output# {
374 self.mul_mat2rust-analyzer cargo glam 0.23.0 f32/sse2/mat2/impl#[Mat2]mul_mat2().(&rhs)
375 }
376 }
377
378 impl MulAssignrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/MulAssign#<Mat2rust-analyzer cargo glam 0.23.0 f32/sse2/mat2/Mat2#> for Mat2rust-analyzer cargo glam 0.23.0 f32/sse2/mat2/Mat2# {
379 #[inline]
380 fn mul_assignrust-analyzer cargo glam 0.23.0 f32/sse2/mat2/impl#[Mat2][`MulAssign<Self>`]mul_assign().(&mut self, rhs: Selfrust-analyzer cargo glam 0.23.0 f32/sse2/mat2/impl#[Mat2][`MulAssign<Self>`]) {
381 *rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/deref/impl#[`&mut T`][Deref]deref().self = self.mul_mat2rust-analyzer cargo glam 0.23.0 f32/sse2/mat2/impl#[Mat2]mul_mat2().(&rhs);
382 }
383 }
384
385 impl Mulrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Mul#<Vec2rust-analyzer cargo glam 0.23.0 f32/vec2/Vec2#> for Mat2rust-analyzer cargo glam 0.23.0 f32/sse2/mat2/Mat2# {
386 type Outputrust-analyzer cargo glam 0.23.0 f32/sse2/mat2/impl#[Mat2][`Mul<Vec2>`]Output# = Vec2rust-analyzer cargo glam 0.23.0 f32/vec2/Vec2#;
387 #[inline]
388 fn mulrust-analyzer cargo glam 0.23.0 f32/sse2/mat2/impl#[Mat2][`Mul<Vec2>`]mul().(self, rhs: Vec2rust-analyzer cargo glam 0.23.0 f32/vec2/Vec2#) -> Selfrust-analyzer cargo glam 0.23.0 f32/sse2/mat2/impl#[Mat2][`Mul<Vec2>`]::Outputrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Mul#Output# {
389 self.mul_vec2rust-analyzer cargo glam 0.23.0 f32/sse2/mat2/impl#[Mat2]mul_vec2().(rhs)
390 }
391 }
392
393 impl Mulrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Mul#<Mat2rust-analyzer cargo glam 0.23.0 f32/sse2/mat2/Mat2#> for f32 {
394 type Outputrust-analyzer cargo glam 0.23.0 f32/sse2/mat2/impl#[f32][`Mul<Mat2>`]Output# = Mat2rust-analyzer cargo glam 0.23.0 f32/sse2/mat2/Mat2#;
395 #[inline]
396 fn mulrust-analyzer cargo glam 0.23.0 f32/sse2/mat2/impl#[f32][`Mul<Mat2>`]mul().(self, rhs: Mat2rust-analyzer cargo glam 0.23.0 f32/sse2/mat2/Mat2#) -> Selfrust-analyzer cargo glam 0.23.0 f32/sse2/mat2/impl#[f32][`Mul<Mat2>`]::Outputrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Mul#Output# {
397 rhs.mul_scalarrust-analyzer cargo glam 0.23.0 f32/sse2/mat2/impl#[Mat2]mul_scalar().(self)
398 }
399 }
400
401 impl Mulrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Mul#<f32> for Mat2rust-analyzer cargo glam 0.23.0 f32/sse2/mat2/Mat2# {
402 type Outputrust-analyzer cargo glam 0.23.0 f32/sse2/mat2/impl#[Mat2][`Mul<f32>`]Output# = Selfrust-analyzer cargo glam 0.23.0 f32/sse2/mat2/impl#[Mat2][`Mul<f32>`];
403 #[inline]
404 fn mulrust-analyzer cargo glam 0.23.0 f32/sse2/mat2/impl#[Mat2][`Mul<f32>`]mul().(self, rhs: f32) -> Selfrust-analyzer cargo glam 0.23.0 f32/sse2/mat2/impl#[Mat2][`Mul<f32>`]::Outputrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Mul#Output# {
405 self.mul_scalarrust-analyzer cargo glam 0.23.0 f32/sse2/mat2/impl#[Mat2]mul_scalar().(rhs)
406 }
407 }
408
409 impl MulAssignrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/MulAssign#<f32> for Mat2rust-analyzer cargo glam 0.23.0 f32/sse2/mat2/Mat2# {
410 #[inline]
411 fn mul_assignrust-analyzer cargo glam 0.23.0 f32/sse2/mat2/impl#[Mat2][`MulAssign<f32>`]mul_assign().(&mut self, rhs: f32) {
412 *rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/deref/impl#[`&mut T`][Deref]deref().self = self.mul_scalarrust-analyzer cargo glam 0.23.0 f32/sse2/mat2/impl#[Mat2]mul_scalar().(rhs);
413 }
414 }
415
416 impl Sumrust-analyzer cargo core https://github.com/rust-lang/rust/library/core iter/traits/accum/Sum#<Selfrust-analyzer cargo glam 0.23.0 f32/sse2/mat2/impl#[Mat2][`Sum<Self>`]> for Mat2rust-analyzer cargo glam 0.23.0 f32/sse2/mat2/Mat2# {
417 fn sumrust-analyzer cargo glam 0.23.0 f32/sse2/mat2/impl#[Mat2][`Sum<Self>`]sum().<I>(iter: I) -> Selfrust-analyzer cargo glam 0.23.0 f32/sse2/mat2/impl#[Mat2][`Sum<Self>`]
418 where
419 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.23.0 f32/sse2/mat2/impl#[Mat2][`Sum<Self>`]>,
420 {
421 iter.foldrust-analyzer cargo core https://github.com/rust-lang/rust/library/core iter/traits/iterator/Iterator#fold().(Selfrust-analyzer cargo glam 0.23.0 f32/sse2/mat2/impl#[Mat2][`Sum<Self>`]::ZEROrust-analyzer cargo glam 0.23.0 f32/sse2/mat2/impl#[Mat2]ZERO., Selfrust-analyzer cargo glam 0.23.0 f32/sse2/mat2/impl#[Mat2][`Sum<Self>`]::addrust-analyzer cargo glam 0.23.0 f32/sse2/mat2/impl#[Mat2][`Add<Self>`]add().)
422 }
423 }
424
425 impl<'a> Sumrust-analyzer cargo core https://github.com/rust-lang/rust/library/core iter/traits/accum/Sum#<&'a Selfrust-analyzer cargo glam 0.23.0 f32/sse2/mat2/impl#[Mat2][`Sum<&'a Mat2>`]> for Mat2rust-analyzer cargo glam 0.23.0 f32/sse2/mat2/Mat2# {
426 fn sumrust-analyzer cargo glam 0.23.0 f32/sse2/mat2/impl#[Mat2][`Sum<&'a Mat2>`]sum().<I>(iter: I) -> Selfrust-analyzer cargo glam 0.23.0 f32/sse2/mat2/impl#[Mat2][`Sum<&'a Mat2>`]
427 where
428 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.23.0 f32/sse2/mat2/impl#[Mat2][`Sum<&'a Mat2>`]>,
429 {
430 iter.foldrust-analyzer cargo core https://github.com/rust-lang/rust/library/core iter/traits/iterator/Iterator#fold().(Selfrust-analyzer cargo glam 0.23.0 f32/sse2/mat2/impl#[Mat2][`Sum<&'a Mat2>`]::ZEROrust-analyzer cargo glam 0.23.0 f32/sse2/mat2/impl#[Mat2]ZERO., |a, &b| Selfrust-analyzer cargo glam 0.23.0 f32/sse2/mat2/impl#[Mat2][`Sum<&'a Mat2>`]::addrust-analyzer cargo glam 0.23.0 f32/sse2/mat2/impl#[Mat2][`Add<Self>`]add().(a, b))
431 }
432 }
433
434 impl Productrust-analyzer cargo core https://github.com/rust-lang/rust/library/core iter/traits/accum/Product# for Mat2rust-analyzer cargo glam 0.23.0 f32/sse2/mat2/Mat2# {
435 fn productrust-analyzer cargo glam 0.23.0 f32/sse2/mat2/impl#[Mat2][`Product<Self>`]product().<I>(iter: I) -> Selfrust-analyzer cargo glam 0.23.0 f32/sse2/mat2/impl#[Mat2][`Product<Self>`]
436 where
437 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.23.0 f32/sse2/mat2/impl#[Mat2][`Product<Self>`]>,
438 {
439 iter.foldrust-analyzer cargo core https://github.com/rust-lang/rust/library/core iter/traits/iterator/Iterator#fold().(Selfrust-analyzer cargo glam 0.23.0 f32/sse2/mat2/impl#[Mat2][`Product<Self>`]::IDENTITYrust-analyzer cargo glam 0.23.0 f32/sse2/mat2/impl#[Mat2]IDENTITY., Selfrust-analyzer cargo glam 0.23.0 f32/sse2/mat2/impl#[Mat2][`Product<Self>`]::mulrust-analyzer cargo glam 0.23.0 f32/sse2/mat2/impl#[Mat2][`Mul<Self>`]mul().)
440 }
441 }
442
443 impl<'a> Productrust-analyzer cargo core https://github.com/rust-lang/rust/library/core iter/traits/accum/Product#<&'a Selfrust-analyzer cargo glam 0.23.0 f32/sse2/mat2/impl#[Mat2][`Product<&'a Mat2>`]> for Mat2rust-analyzer cargo glam 0.23.0 f32/sse2/mat2/Mat2# {
444 fn productrust-analyzer cargo glam 0.23.0 f32/sse2/mat2/impl#[Mat2][`Product<&'a Mat2>`]product().<I>(iter: I) -> Selfrust-analyzer cargo glam 0.23.0 f32/sse2/mat2/impl#[Mat2][`Product<&'a Mat2>`]
445 where
446 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.23.0 f32/sse2/mat2/impl#[Mat2][`Product<&'a Mat2>`]>,
447 {
448 iter.foldrust-analyzer cargo core https://github.com/rust-lang/rust/library/core iter/traits/iterator/Iterator#fold().(Selfrust-analyzer cargo glam 0.23.0 f32/sse2/mat2/impl#[Mat2][`Product<&'a Mat2>`]::IDENTITYrust-analyzer cargo glam 0.23.0 f32/sse2/mat2/impl#[Mat2]IDENTITY., |a, &b| Selfrust-analyzer cargo glam 0.23.0 f32/sse2/mat2/impl#[Mat2][`Product<&'a Mat2>`]::mulrust-analyzer cargo glam 0.23.0 f32/sse2/mat2/impl#[Mat2][`Mul<Self>`]mul().(a, b))
449 }
450 }
451
452 impl PartialEqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/PartialEq# for Mat2rust-analyzer cargo glam 0.23.0 f32/sse2/mat2/Mat2# {
453 #[inline]
454 fn eqrust-analyzer cargo glam 0.23.0 f32/sse2/mat2/impl#[Mat2][`PartialEq<Self>`]eq().(&self, rhs: &Selfrust-analyzer cargo glam 0.23.0 f32/sse2/mat2/impl#[Mat2][`PartialEq<Self>`]) -> bool {
455 self.x_axisrust-analyzer cargo glam 0.23.0 deref/Cols2#x_axis..eqrust-analyzer cargo glam 0.23.0 f32/vec2/impl#[Vec2][`PartialEq<Self>`]eq().(&rhs.x_axisrust-analyzer cargo glam 0.23.0 deref/Cols2#x_axis.) && self.y_axisrust-analyzer cargo glam 0.23.0 deref/Cols2#y_axis..eqrust-analyzer cargo glam 0.23.0 f32/vec2/impl#[Vec2][`PartialEq<Self>`]eq().(&rhs.y_axisrust-analyzer cargo glam 0.23.0 deref/Cols2#y_axis.)
456 }
457 }
458
459 #[cfg(not(target_arch = "spirv"))]
460 impl AsRefrust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/AsRef#<[f32; 4]> for Mat2rust-analyzer cargo glam 0.23.0 f32/sse2/mat2/Mat2# {
461 #[inline]
462 fn as_refrust-analyzer cargo glam 0.23.0 f32/sse2/mat2/impl#[Mat2][`AsRef<[f32; 4]>`]as_ref().(&self) -> &[f32; 4] {
463 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.23.0 f32/sse2/mat2/impl#[Mat2][`AsRef<[f32; 4]>`] as *const [f32; 4]) }
464 }
465 }
466
467 #[cfg(not(target_arch = "spirv"))]
468 impl AsMutrust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/AsMut#<[f32; 4]> for Mat2rust-analyzer cargo glam 0.23.0 f32/sse2/mat2/Mat2# {
469 #[inline]
470 fn as_mutrust-analyzer cargo glam 0.23.0 f32/sse2/mat2/impl#[Mat2][`AsMut<[f32; 4]>`]as_mut().(&mut self) -> &mut [f32; 4] {
471 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.23.0 f32/sse2/mat2/impl#[Mat2][`AsMut<[f32; 4]>`] as *mut [f32; 4]) }
472 }
473 }
474
475 impl corerust-analyzer cargo core https://github.com/rust-lang/rust/library/core crate/::opsrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/::Derefrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/deref/Deref# for Mat2rust-analyzer cargo glam 0.23.0 f32/sse2/mat2/Mat2# {
476 type Targetrust-analyzer cargo glam 0.23.0 f32/sse2/mat2/impl#[Mat2][Deref]Target# = craterust-analyzer cargo glam 0.23.0 crate/::derefrust-analyzer cargo glam 0.23.0 deref/::Cols2rust-analyzer cargo glam 0.23.0 deref/Cols2#<Vec2rust-analyzer cargo glam 0.23.0 f32/vec2/Vec2#>;
477 #[inline]
478 fn derefrust-analyzer cargo glam 0.23.0 f32/sse2/mat2/impl#[Mat2][Deref]deref().(&self) -> &Selfrust-analyzer cargo glam 0.23.0 f32/sse2/mat2/impl#[Mat2][Deref]::Targetrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/deref/Deref#Target# {
479 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.23.0 f32/sse2/mat2/impl#[Mat2][Deref] as *const Selfrust-analyzer cargo glam 0.23.0 f32/sse2/mat2/impl#[Mat2][Deref]::Targetrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/deref/Deref#Target#) }
480 }
481 }
482
483 impl corerust-analyzer cargo core https://github.com/rust-lang/rust/library/core crate/::opsrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/::DerefMutrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/deref/DerefMut# for Mat2rust-analyzer cargo glam 0.23.0 f32/sse2/mat2/Mat2# {
484 #[inline]
485 fn deref_mutrust-analyzer cargo glam 0.23.0 f32/sse2/mat2/impl#[Mat2][DerefMut]deref_mut().(&mut self) -> &mut Selfrust-analyzer cargo glam 0.23.0 f32/sse2/mat2/impl#[Mat2][DerefMut]::Targetrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/deref/Deref#Target# {
486 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.23.0 f32/sse2/mat2/impl#[Mat2][DerefMut] as *mut Selfrust-analyzer cargo glam 0.23.0 f32/sse2/mat2/impl#[Mat2][DerefMut]::Targetrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/deref/Deref#Target#) }
487 }
488 }
489
490 #[cfg(not(target_arch = "spirv"))]
491 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 Mat2rust-analyzer cargo glam 0.23.0 f32/sse2/mat2/Mat2# {
492 fn fmtrust-analyzer cargo glam 0.23.0 f32/sse2/mat2/impl#[Mat2][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# {
493 fmt.debug_structrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/impl#[`Formatter<'a>`]debug_struct().(stringifyrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/stringify!!(Mat2))
494 .fieldrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/builders/impl#[`DebugStruct<'a, 'b>`]field().("x_axis", &self.x_axisrust-analyzer cargo glam 0.23.0 deref/Cols2#x_axis.)
495 .fieldrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/builders/impl#[`DebugStruct<'a, 'b>`]field().("y_axis", &self.y_axisrust-analyzer cargo glam 0.23.0 deref/Cols2#y_axis.)
496 .finishrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/builders/impl#[`DebugStruct<'a, 'b>`]finish().()
497 }
498 }
499
500 #[cfg(not(target_arch = "spirv"))]
501 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 Mat2rust-analyzer cargo glam 0.23.0 f32/sse2/mat2/Mat2# {
502 fn fmtrust-analyzer cargo glam 0.23.0 f32/sse2/mat2/impl#[Mat2][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# {
503 writerust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/write!!(f, "[{}, {}]", self.x_axisrust-analyzer cargo glam 0.23.0 deref/Cols2#x_axis., self.y_axisrust-analyzer cargo glam 0.23.0 deref/Cols2#y_axis.)
504 }
505 }