Debian Codegraph @

debian/missing-sources/glam-0.24.2/src/f32/sse2/mat3a.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.24.2 crate/::{f32rust-analyzer cargo glam 0.24.2 f32/::mathrust-analyzer cargo glam 0.24.2 f32/math/, swizzlesrust-analyzer cargo glam 0.24.2 swizzles/::*, DMat3rust-analyzer cargo glam 0.24.2 f64/dmat3/DMat3#, EulerRotrust-analyzer cargo glam 0.24.2 euler/EulerRot#, Mat2rust-analyzer cargo glam 0.24.2 f32/sse2/mat2/Mat2#, Mat3rust-analyzer cargo glam 0.24.2 f32/mat3/Mat3#, Mat4rust-analyzer cargo glam 0.24.2 f32/sse2/mat4/Mat4#, Quatrust-analyzer cargo glam 0.24.2 f32/sse2/quat/Quat#, Vec2rust-analyzer cargo glam 0.24.2 f32/vec2/Vec2#, Vec3rust-analyzer cargo glam 0.24.2 f32/vec3/Vec3#, Vec3Arust-analyzer cargo glam 0.24.2 f32/sse2/vec3a/Vec3A#};
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 /// Creates a 3x3 matrix from three column vectors.
15 #[inline(always)]
16 pub const fn mat3arust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/mat3a().(x_axis: Vec3Arust-analyzer cargo glam 0.24.2 f32/sse2/vec3a/Vec3A#, y_axis: Vec3Arust-analyzer cargo glam 0.24.2 f32/sse2/vec3a/Vec3A#, z_axis: Vec3Arust-analyzer cargo glam 0.24.2 f32/sse2/vec3a/Vec3A#) -> Mat3Arust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/Mat3A# {
17 Mat3Arust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/Mat3A#::from_colsrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/impl#[Mat3A]from_cols().(x_axis, y_axis, z_axis)
18 }
19
20 /// A 3x3 column major matrix.
21 ///
22 /// This 3x3 matrix type features convenience methods for creating and using linear and
23 /// affine transformations. If you are primarily dealing with 2D affine transformations the
24 /// [`Affine2`](crate::Affine2) type is much faster and more space efficient than
25 /// using a 3x3 matrix.
26 ///
27 /// Linear transformations including 3D rotation and scale can be created using methods
28 /// such as [`Self::from_diagonal()`], [`Self::from_quat()`], [`Self::from_axis_angle()`],
29 /// [`Self::from_rotation_x()`], [`Self::from_rotation_y()`], or
30 /// [`Self::from_rotation_z()`].
31 ///
32 /// The resulting matrices can be use to transform 3D vectors using regular vector
33 /// multiplication.
34 ///
35 /// Affine transformations including 2D translation, rotation and scale can be created
36 /// using methods such as [`Self::from_translation()`], [`Self::from_angle()`],
37 /// [`Self::from_scale()`] and [`Self::from_scale_angle_translation()`].
38 ///
39 /// The [`Self::transform_point2()`] and [`Self::transform_vector2()`] convenience methods
40 /// are provided for performing affine transforms on 2D vectors and points. These multiply
41 /// 2D inputs as 3D vectors with an implicit `z` value of `1` for points and `0` for
42 /// vectors respectively. These methods assume that `Self` contains a valid affine
43 /// transform.
44 #[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:)]
45 #[repr(C)]
46 pub struct Mat3Arust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/Mat3A# {
47 pub x_axisrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/Mat3A#x_axis.: Vec3Arust-analyzer cargo glam 0.24.2 f32/sse2/vec3a/Vec3A#,
48 pub y_axisrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/Mat3A#y_axis.: Vec3Arust-analyzer cargo glam 0.24.2 f32/sse2/vec3a/Vec3A#,
49 pub z_axisrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/Mat3A#z_axis.: Vec3Arust-analyzer cargo glam 0.24.2 f32/sse2/vec3a/Vec3A#,
50 }
51
52 impl Mat3Arust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/Mat3A# {
53 /// A 3x3 matrix with all elements set to `0.0`.
54 pub const ZEROrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/impl#[Mat3A]ZERO.: Selfrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/impl#[Mat3A] = Selfrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/impl#[Mat3A]::from_colsrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/impl#[Mat3A]from_cols().(Vec3Arust-analyzer cargo glam 0.24.2 f32/sse2/vec3a/Vec3A#::ZEROrust-analyzer cargo glam 0.24.2 f32/sse2/vec3a/impl#[Vec3A]ZERO., Vec3Arust-analyzer cargo glam 0.24.2 f32/sse2/vec3a/Vec3A#::ZEROrust-analyzer cargo glam 0.24.2 f32/sse2/vec3a/impl#[Vec3A]ZERO., Vec3Arust-analyzer cargo glam 0.24.2 f32/sse2/vec3a/Vec3A#::ZEROrust-analyzer cargo glam 0.24.2 f32/sse2/vec3a/impl#[Vec3A]ZERO.);
55
56 /// A 3x3 identity matrix, where all diagonal elements are `1`, and all off-diagonal elements are `0`.
57 pub const IDENTITYrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/impl#[Mat3A]IDENTITY.: Selfrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/impl#[Mat3A] = Selfrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/impl#[Mat3A]::from_colsrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/impl#[Mat3A]from_cols().(Vec3Arust-analyzer cargo glam 0.24.2 f32/sse2/vec3a/Vec3A#::Xrust-analyzer cargo glam 0.24.2 f32/sse2/vec3a/impl#[Vec3A]X., Vec3Arust-analyzer cargo glam 0.24.2 f32/sse2/vec3a/Vec3A#::Yrust-analyzer cargo glam 0.24.2 f32/sse2/vec3a/impl#[Vec3A]Y., Vec3Arust-analyzer cargo glam 0.24.2 f32/sse2/vec3a/Vec3A#::Zrust-analyzer cargo glam 0.24.2 f32/sse2/vec3a/impl#[Vec3A]Z.);
58
59 /// All NAN:s.
60 pub const NANrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/impl#[Mat3A]NAN.: Selfrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/impl#[Mat3A] = Selfrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/impl#[Mat3A]::from_colsrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/impl#[Mat3A]from_cols().(Vec3Arust-analyzer cargo glam 0.24.2 f32/sse2/vec3a/Vec3A#::NANrust-analyzer cargo glam 0.24.2 f32/sse2/vec3a/impl#[Vec3A]NAN., Vec3Arust-analyzer cargo glam 0.24.2 f32/sse2/vec3a/Vec3A#::NANrust-analyzer cargo glam 0.24.2 f32/sse2/vec3a/impl#[Vec3A]NAN., Vec3Arust-analyzer cargo glam 0.24.2 f32/sse2/vec3a/Vec3A#::NANrust-analyzer cargo glam 0.24.2 f32/sse2/vec3a/impl#[Vec3A]NAN.);
61
62 #[allow(clippy::too_many_arguments)]
63 #[inline(always)]
64 const fn newrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/impl#[Mat3A]new().(
65 m00: f32,
66 m01: f32,
67 m02: f32,
68 m10: f32,
69 m11: f32,
70 m12: f32,
71 m20: f32,
72 m21: f32,
73 m22: f32,
74 ) -> Selfrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/impl#[Mat3A] {
75 Selfrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/impl#[Mat3A] {
76 x_axisrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/Mat3A#x_axis.: Vec3Arust-analyzer cargo glam 0.24.2 f32/sse2/vec3a/Vec3A#::newrust-analyzer cargo glam 0.24.2 f32/sse2/vec3a/impl#[Vec3A]new().(m00, m01, m02),
77 y_axisrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/Mat3A#y_axis.: Vec3Arust-analyzer cargo glam 0.24.2 f32/sse2/vec3a/Vec3A#::newrust-analyzer cargo glam 0.24.2 f32/sse2/vec3a/impl#[Vec3A]new().(m10, m11, m12),
78 z_axisrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/Mat3A#z_axis.: Vec3Arust-analyzer cargo glam 0.24.2 f32/sse2/vec3a/Vec3A#::newrust-analyzer cargo glam 0.24.2 f32/sse2/vec3a/impl#[Vec3A]new().(m20, m21, m22),
79 }
80 }
81
82 /// Creates a 3x3 matrix from three column vectors.
83 #[inline(always)]
84 pub const fn from_colsrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/impl#[Mat3A]from_cols().(x_axis: Vec3Arust-analyzer cargo glam 0.24.2 f32/sse2/vec3a/Vec3A#, y_axis: Vec3Arust-analyzer cargo glam 0.24.2 f32/sse2/vec3a/Vec3A#, z_axis: Vec3Arust-analyzer cargo glam 0.24.2 f32/sse2/vec3a/Vec3A#) -> Selfrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/impl#[Mat3A] {
85 Selfrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/impl#[Mat3A] {
86 x_axisrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/Mat3A#x_axis.,
87 y_axisrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/Mat3A#y_axis.,
88 z_axisrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/Mat3A#z_axis.,
89 }
90 }
91
92 /// Creates a 3x3 matrix from a `[f32; 9]` array stored in column major order.
93 /// If your data is stored in row major you will need to `transpose` the returned
94 /// matrix.
95 #[inline]
96 pub const fn from_cols_arrayrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/impl#[Mat3A]from_cols_array().(m: &[f32; 9]) -> Selfrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/impl#[Mat3A] {
97 Selfrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/impl#[Mat3A]::newrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/impl#[Mat3A]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()., m[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/index/Index#index().4]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().5]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().6]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().7]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().8]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/index/Index#index().)
98 }
99
100 /// Creates a `[f32; 9]` array storing data in column major order.
101 /// If you require data in row major order `transpose` the matrix first.
102 #[inline]
103 pub const fn to_cols_arrayrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/impl#[Mat3A]to_cols_array().(&self) -> [f32; 9] {
104 let [x_axis_x, x_axis_y, x_axis_z] = self.x_axisrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/Mat3A#x_axis..to_arrayrust-analyzer cargo glam 0.24.2 f32/sse2/vec3a/impl#[Vec3A]to_array().();
105 let [y_axis_x, y_axis_y, y_axis_z] = self.y_axisrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/Mat3A#y_axis..to_arrayrust-analyzer cargo glam 0.24.2 f32/sse2/vec3a/impl#[Vec3A]to_array().();
106 let [z_axis_x, z_axis_y, z_axis_z] = self.z_axisrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/Mat3A#z_axis..to_arrayrust-analyzer cargo glam 0.24.2 f32/sse2/vec3a/impl#[Vec3A]to_array().();
107
108 [
109 x_axis_x, x_axis_y, x_axis_z, y_axis_x, y_axis_y, y_axis_z, z_axis_x, z_axis_y,
110 z_axis_z,
111 ]
112 }
113
114 /// Creates a 3x3 matrix from a `[[f32; 3]; 3]` 3D array stored in column major order.
115 /// If your data is in row major order you will need to `transpose` the returned
116 /// matrix.
117 #[inline]
118 pub const fn from_cols_array_2drust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/impl#[Mat3A]from_cols_array_2d().(m: &[[f32; 3]; 3]) -> Selfrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/impl#[Mat3A] {
119 Selfrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/impl#[Mat3A]::from_colsrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/impl#[Mat3A]from_cols().(
120 Vec3Arust-analyzer cargo glam 0.24.2 f32/sse2/vec3a/Vec3A#::from_arrayrust-analyzer cargo glam 0.24.2 f32/sse2/vec3a/impl#[Vec3A]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().),
121 Vec3Arust-analyzer cargo glam 0.24.2 f32/sse2/vec3a/Vec3A#::from_arrayrust-analyzer cargo glam 0.24.2 f32/sse2/vec3a/impl#[Vec3A]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().),
122 Vec3Arust-analyzer cargo glam 0.24.2 f32/sse2/vec3a/Vec3A#::from_arrayrust-analyzer cargo glam 0.24.2 f32/sse2/vec3a/impl#[Vec3A]from_array().(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().),
123 )
124 }
125
126 /// Creates a `[[f32; 3]; 3]` 3D array storing data in column major order.
127 /// If you require data in row major order `transpose` the matrix first.
128 #[inline]
129 pub const fn to_cols_array_2drust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/impl#[Mat3A]to_cols_array_2d().(&self) -> [[f32; 3]; 3] {
130 [
131 self.x_axisrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/Mat3A#x_axis..to_arrayrust-analyzer cargo glam 0.24.2 f32/sse2/vec3a/impl#[Vec3A]to_array().(),
132 self.y_axisrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/Mat3A#y_axis..to_arrayrust-analyzer cargo glam 0.24.2 f32/sse2/vec3a/impl#[Vec3A]to_array().(),
133 self.z_axisrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/Mat3A#z_axis..to_arrayrust-analyzer cargo glam 0.24.2 f32/sse2/vec3a/impl#[Vec3A]to_array().(),
134 ]
135 }
136
137 /// Creates a 3x3 matrix with its diagonal set to `diagonal` and all other entries set to 0.
138 #[doc(alias = "scale")]
139 #[inline]
140 pub const fn from_diagonalrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/impl#[Mat3A]from_diagonal().(diagonal: Vec3rust-analyzer cargo glam 0.24.2 f32/vec3/Vec3#) -> Selfrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/impl#[Mat3A] {
141 Selfrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/impl#[Mat3A]::newrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/impl#[Mat3A]new().(
142 diagonal.xrust-analyzer cargo glam 0.24.2 f32/vec3/Vec3#x., 0.0, 0.0, 0.0, diagonal.yrust-analyzer cargo glam 0.24.2 f32/vec3/Vec3#y., 0.0, 0.0, 0.0, diagonal.zrust-analyzer cargo glam 0.24.2 f32/vec3/Vec3#z.,
143 )
144 }
145
146 /// Creates a 3x3 matrix from a 4x4 matrix, discarding the 4th row and column.
147 pub fn from_mat4rust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/impl#[Mat3A]from_mat4().(m: Mat4rust-analyzer cargo glam 0.24.2 f32/sse2/mat4/Mat4#) -> Selfrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/impl#[Mat3A] {
148 Selfrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/impl#[Mat3A]::from_colsrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/impl#[Mat3A]from_cols().(m.x_axisrust-analyzer cargo glam 0.24.2 f32/sse2/mat4/Mat4#x_axis..intorust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/impl#[T][`Into<U>`]into().(), m.y_axisrust-analyzer cargo glam 0.24.2 f32/sse2/mat4/Mat4#y_axis..intorust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/impl#[T][`Into<U>`]into().(), m.z_axisrust-analyzer cargo glam 0.24.2 f32/sse2/mat4/Mat4#z_axis..intorust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/impl#[T][`Into<U>`]into().())
149 }
150
151 /// Creates a 3D rotation matrix from the given quaternion.
152 ///
153 /// # Panics
154 ///
155 /// Will panic if `rotation` is not normalized when `glam_assert` is enabled.
156 #[inline]
157 pub fn from_quatrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/impl#[Mat3A]from_quat().(rotation: Quatrust-analyzer cargo glam 0.24.2 f32/sse2/quat/Quat#) -> Selfrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/impl#[Mat3A] {
158 glam_assertrust-analyzer cargo glam 0.24.2 macros/glam_assert!!(rotation.is_normalized());
159
160 let x2 = rotation.xrust-analyzer cargo glam 0.24.2 deref/Vec4#x. 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().rotation.xrust-analyzer cargo glam 0.24.2 deref/Vec4#x.;
161 let y2 = rotation.yrust-analyzer cargo glam 0.24.2 deref/Vec4#y. 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().rotation.yrust-analyzer cargo glam 0.24.2 deref/Vec4#y.;
162 let z2 = rotation.zrust-analyzer cargo glam 0.24.2 deref/Vec4#z. 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().rotation.zrust-analyzer cargo glam 0.24.2 deref/Vec4#z.;
163 let xx = rotation.xrust-analyzer cargo glam 0.24.2 deref/Vec4#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().x2;
164 let xy = rotation.xrust-analyzer cargo glam 0.24.2 deref/Vec4#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().y2;
165 let xz = rotation.xrust-analyzer cargo glam 0.24.2 deref/Vec4#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().z2;
166 let yy = rotation.yrust-analyzer cargo glam 0.24.2 deref/Vec4#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().y2;
167 let yz = rotation.yrust-analyzer cargo glam 0.24.2 deref/Vec4#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().z2;
168 let zz = rotation.zrust-analyzer cargo glam 0.24.2 deref/Vec4#z. 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().z2;
169 let wx = rotation.wrust-analyzer cargo glam 0.24.2 deref/Vec4#w. 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().x2;
170 let wy = rotation.wrust-analyzer cargo glam 0.24.2 deref/Vec4#w. 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().y2;
171 let wz = rotation.wrust-analyzer cargo glam 0.24.2 deref/Vec4#w. 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().z2;
172
173 Selfrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/impl#[Mat3A]::from_colsrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/impl#[Mat3A]from_cols().(
174 Vec3Arust-analyzer cargo glam 0.24.2 f32/sse2/vec3a/Vec3A#::newrust-analyzer cargo glam 0.24.2 f32/sse2/vec3a/impl#[Vec3A]new().(1.0 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().(yy 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().zz), xy 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().wz, xz 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().wy),
175 Vec3Arust-analyzer cargo glam 0.24.2 f32/sse2/vec3a/Vec3A#::newrust-analyzer cargo glam 0.24.2 f32/sse2/vec3a/impl#[Vec3A]new().(xy 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().wz, 1.0 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().(xx 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().zz), yz 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().wx),
176 Vec3Arust-analyzer cargo glam 0.24.2 f32/sse2/vec3a/Vec3A#::newrust-analyzer cargo glam 0.24.2 f32/sse2/vec3a/impl#[Vec3A]new().(xz 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().wy, yz 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().wx, 1.0 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().(xx 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().yy)),
177 )
178 }
179
180 /// Creates a 3D rotation matrix from a normalized rotation `axis` and `angle` (in
181 /// radians).
182 ///
183 /// # Panics
184 ///
185 /// Will panic if `axis` is not normalized when `glam_assert` is enabled.
186 #[inline]
187 pub fn from_axis_anglerust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/impl#[Mat3A]from_axis_angle().(axis: Vec3rust-analyzer cargo glam 0.24.2 f32/vec3/Vec3#, angle: f32) -> Selfrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/impl#[Mat3A] {
188 glam_assertrust-analyzer cargo glam 0.24.2 macros/glam_assert!!(axis.is_normalized());
189
190 let (sin, cos) = mathrust-analyzer cargo glam 0.24.2 f32/math/::sin_cosrust-analyzer cargo glam 0.24.2 f32/math/std_math/sin_cos().(angle);
191 let (xsin, ysin, zsin) = axis.mulrust-analyzer cargo glam 0.24.2 f32/vec3/impl#[Vec3][`Mul<f32>`]mul().(sin).intorust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/impl#[T][`Into<U>`]into().();
192 let (x, y, z) = axis.intorust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/impl#[T][`Into<U>`]into().();
193 let (x2, y2, z2) = axis.mulrust-analyzer cargo glam 0.24.2 f32/vec3/impl#[Vec3][`Mul<Self>`]mul().(axis).intorust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/impl#[T][`Into<U>`]into().();
194 let omc = 1.0 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().cos;
195 let xyomc = 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().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().omc;
196 let xzomc = 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().z 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().omc;
197 let yzomc = 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().z 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().omc;
198 Selfrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/impl#[Mat3A]::from_colsrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/impl#[Mat3A]from_cols().(
199 Vec3Arust-analyzer cargo glam 0.24.2 f32/sse2/vec3a/Vec3A#::newrust-analyzer cargo glam 0.24.2 f32/sse2/vec3a/impl#[Vec3A]new().(x2 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().omc 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().cos, xyomc 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().zsin, xzomc 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().ysin),
200 Vec3Arust-analyzer cargo glam 0.24.2 f32/sse2/vec3a/Vec3A#::newrust-analyzer cargo glam 0.24.2 f32/sse2/vec3a/impl#[Vec3A]new().(xyomc 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().zsin, y2 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().omc 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().cos, yzomc 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().xsin),
201 Vec3Arust-analyzer cargo glam 0.24.2 f32/sse2/vec3a/Vec3A#::newrust-analyzer cargo glam 0.24.2 f32/sse2/vec3a/impl#[Vec3A]new().(xzomc 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().ysin, yzomc 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().xsin, z2 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().omc 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().cos),
202 )
203 }
204
205 #[inline]
206 /// Creates a 3D rotation matrix from the given euler rotation sequence and the angles (in
207 /// radians).
208 pub fn from_eulerrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/impl#[Mat3A]from_euler().(order: EulerRotrust-analyzer cargo glam 0.24.2 euler/EulerRot#, a: f32, b: f32, c: f32) -> Selfrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/impl#[Mat3A] {
209 let quat = Quatrust-analyzer cargo glam 0.24.2 f32/sse2/quat/Quat#::from_eulerrust-analyzer cargo glam 0.24.2 f32/sse2/quat/impl#[Quat]from_euler().(order, a, b, c);
210 Selfrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/impl#[Mat3A]::from_quatrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/impl#[Mat3A]from_quat().(quat)
211 }
212
213 /// Creates a 3D rotation matrix from `angle` (in radians) around the x axis.
214 #[inline]
215 pub fn from_rotation_xrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/impl#[Mat3A]from_rotation_x().(angle: f32) -> Selfrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/impl#[Mat3A] {
216 let (sina, cosa) = mathrust-analyzer cargo glam 0.24.2 f32/math/::sin_cosrust-analyzer cargo glam 0.24.2 f32/math/std_math/sin_cos().(angle);
217 Selfrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/impl#[Mat3A]::from_colsrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/impl#[Mat3A]from_cols().(
218 Vec3Arust-analyzer cargo glam 0.24.2 f32/sse2/vec3a/Vec3A#::Xrust-analyzer cargo glam 0.24.2 f32/sse2/vec3a/impl#[Vec3A]X.,
219 Vec3Arust-analyzer cargo glam 0.24.2 f32/sse2/vec3a/Vec3A#::newrust-analyzer cargo glam 0.24.2 f32/sse2/vec3a/impl#[Vec3A]new().(0.0, cosa, sina),
220 Vec3Arust-analyzer cargo glam 0.24.2 f32/sse2/vec3a/Vec3A#::newrust-analyzer cargo glam 0.24.2 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().sina, cosa),
221 )
222 }
223
224 /// Creates a 3D rotation matrix from `angle` (in radians) around the y axis.
225 #[inline]
226 pub fn from_rotation_yrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/impl#[Mat3A]from_rotation_y().(angle: f32) -> Selfrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/impl#[Mat3A] {
227 let (sina, cosa) = mathrust-analyzer cargo glam 0.24.2 f32/math/::sin_cosrust-analyzer cargo glam 0.24.2 f32/math/std_math/sin_cos().(angle);
228 Selfrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/impl#[Mat3A]::from_colsrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/impl#[Mat3A]from_cols().(
229 Vec3Arust-analyzer cargo glam 0.24.2 f32/sse2/vec3a/Vec3A#::newrust-analyzer cargo glam 0.24.2 f32/sse2/vec3a/impl#[Vec3A]new().(cosa, 0.0, -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f32][Neg]neg().sina),
230 Vec3Arust-analyzer cargo glam 0.24.2 f32/sse2/vec3a/Vec3A#::Yrust-analyzer cargo glam 0.24.2 f32/sse2/vec3a/impl#[Vec3A]Y.,
231 Vec3Arust-analyzer cargo glam 0.24.2 f32/sse2/vec3a/Vec3A#::newrust-analyzer cargo glam 0.24.2 f32/sse2/vec3a/impl#[Vec3A]new().(sina, 0.0, cosa),
232 )
233 }
234
235 /// Creates a 3D rotation matrix from `angle` (in radians) around the z axis.
236 #[inline]
237 pub fn from_rotation_zrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/impl#[Mat3A]from_rotation_z().(angle: f32) -> Selfrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/impl#[Mat3A] {
238 let (sina, cosa) = mathrust-analyzer cargo glam 0.24.2 f32/math/::sin_cosrust-analyzer cargo glam 0.24.2 f32/math/std_math/sin_cos().(angle);
239 Selfrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/impl#[Mat3A]::from_colsrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/impl#[Mat3A]from_cols().(
240 Vec3Arust-analyzer cargo glam 0.24.2 f32/sse2/vec3a/Vec3A#::newrust-analyzer cargo glam 0.24.2 f32/sse2/vec3a/impl#[Vec3A]new().(cosa, sina, 0.0),
241 Vec3Arust-analyzer cargo glam 0.24.2 f32/sse2/vec3a/Vec3A#::newrust-analyzer cargo glam 0.24.2 f32/sse2/vec3a/impl#[Vec3A]new().(-rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f32][Neg]neg().sina, cosa, 0.0),
242 Vec3Arust-analyzer cargo glam 0.24.2 f32/sse2/vec3a/Vec3A#::Zrust-analyzer cargo glam 0.24.2 f32/sse2/vec3a/impl#[Vec3A]Z.,
243 )
244 }
245
246 /// Creates an affine transformation matrix from the given 2D `translation`.
247 ///
248 /// The resulting matrix can be used to transform 2D points and vectors. See
249 /// [`Self::transform_point2()`] and [`Self::transform_vector2()`].
250 #[inline]
251 pub fn from_translationrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/impl#[Mat3A]from_translation().(translation: Vec2rust-analyzer cargo glam 0.24.2 f32/vec2/Vec2#) -> Selfrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/impl#[Mat3A] {
252 Selfrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/impl#[Mat3A]::from_colsrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/impl#[Mat3A]from_cols().(
253 Vec3Arust-analyzer cargo glam 0.24.2 f32/sse2/vec3a/Vec3A#::Xrust-analyzer cargo glam 0.24.2 f32/sse2/vec3a/impl#[Vec3A]X.,
254 Vec3Arust-analyzer cargo glam 0.24.2 f32/sse2/vec3a/Vec3A#::Yrust-analyzer cargo glam 0.24.2 f32/sse2/vec3a/impl#[Vec3A]Y.,
255 Vec3Arust-analyzer cargo glam 0.24.2 f32/sse2/vec3a/Vec3A#::newrust-analyzer cargo glam 0.24.2 f32/sse2/vec3a/impl#[Vec3A]new().(translation.xrust-analyzer cargo glam 0.24.2 f32/vec2/Vec2#x., translation.yrust-analyzer cargo glam 0.24.2 f32/vec2/Vec2#y., 1.0),
256 )
257 }
258
259 /// Creates an affine transformation matrix from the given 2D rotation `angle` (in
260 /// radians).
261 ///
262 /// The resulting matrix can be used to transform 2D points and vectors. See
263 /// [`Self::transform_point2()`] and [`Self::transform_vector2()`].
264 #[inline]
265 pub fn from_anglerust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/impl#[Mat3A]from_angle().(angle: f32) -> Selfrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/impl#[Mat3A] {
266 let (sin, cos) = mathrust-analyzer cargo glam 0.24.2 f32/math/::sin_cosrust-analyzer cargo glam 0.24.2 f32/math/std_math/sin_cos().(angle);
267 Selfrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/impl#[Mat3A]::from_colsrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/impl#[Mat3A]from_cols().(
268 Vec3Arust-analyzer cargo glam 0.24.2 f32/sse2/vec3a/Vec3A#::newrust-analyzer cargo glam 0.24.2 f32/sse2/vec3a/impl#[Vec3A]new().(cos, sin, 0.0),
269 Vec3Arust-analyzer cargo glam 0.24.2 f32/sse2/vec3a/Vec3A#::newrust-analyzer cargo glam 0.24.2 f32/sse2/vec3a/impl#[Vec3A]new().(-rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f32][Neg]neg().sin, cos, 0.0),
270 Vec3Arust-analyzer cargo glam 0.24.2 f32/sse2/vec3a/Vec3A#::Zrust-analyzer cargo glam 0.24.2 f32/sse2/vec3a/impl#[Vec3A]Z.,
271 )
272 }
273
274 /// Creates an affine transformation matrix from the given 2D `scale`, rotation `angle` (in
275 /// radians) and `translation`.
276 ///
277 /// The resulting matrix can be used to transform 2D points and vectors. See
278 /// [`Self::transform_point2()`] and [`Self::transform_vector2()`].
279 #[inline]
280 pub fn from_scale_angle_translationrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/impl#[Mat3A]from_scale_angle_translation().(scale: Vec2rust-analyzer cargo glam 0.24.2 f32/vec2/Vec2#, angle: f32, translation: Vec2rust-analyzer cargo glam 0.24.2 f32/vec2/Vec2#) -> Selfrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/impl#[Mat3A] {
281 let (sin, cos) = mathrust-analyzer cargo glam 0.24.2 f32/math/::sin_cosrust-analyzer cargo glam 0.24.2 f32/math/std_math/sin_cos().(angle);
282 Selfrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/impl#[Mat3A]::from_colsrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/impl#[Mat3A]from_cols().(
283 Vec3Arust-analyzer cargo glam 0.24.2 f32/sse2/vec3a/Vec3A#::newrust-analyzer cargo glam 0.24.2 f32/sse2/vec3a/impl#[Vec3A]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.24.2 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.24.2 f32/vec2/Vec2#x., 0.0),
284 Vec3Arust-analyzer cargo glam 0.24.2 f32/sse2/vec3a/Vec3A#::newrust-analyzer cargo glam 0.24.2 f32/sse2/vec3a/impl#[Vec3A]new().(-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.24.2 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.24.2 f32/vec2/Vec2#y., 0.0),
285 Vec3Arust-analyzer cargo glam 0.24.2 f32/sse2/vec3a/Vec3A#::newrust-analyzer cargo glam 0.24.2 f32/sse2/vec3a/impl#[Vec3A]new().(translation.xrust-analyzer cargo glam 0.24.2 f32/vec2/Vec2#x., translation.yrust-analyzer cargo glam 0.24.2 f32/vec2/Vec2#y., 1.0),
286 )
287 }
288
289 /// Creates an affine transformation matrix from the given non-uniform 2D `scale`.
290 ///
291 /// The resulting matrix can be used to transform 2D points and vectors. See
292 /// [`Self::transform_point2()`] and [`Self::transform_vector2()`].
293 ///
294 /// # Panics
295 ///
296 /// Will panic if all elements of `scale` are zero when `glam_assert` is enabled.
297 #[inline]
298 pub fn from_scalerust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/impl#[Mat3A]from_scale().(scale: Vec2rust-analyzer cargo glam 0.24.2 f32/vec2/Vec2#) -> Selfrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/impl#[Mat3A] {
299 // Do not panic as long as any component is non-zero
300 glam_assertrust-analyzer cargo glam 0.24.2 macros/glam_assert!!(scale.cmpne(Vec2::ZERO).any());
301
302 Selfrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/impl#[Mat3A]::from_colsrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/impl#[Mat3A]from_cols().(
303 Vec3Arust-analyzer cargo glam 0.24.2 f32/sse2/vec3a/Vec3A#::newrust-analyzer cargo glam 0.24.2 f32/sse2/vec3a/impl#[Vec3A]new().(scale.xrust-analyzer cargo glam 0.24.2 f32/vec2/Vec2#x., 0.0, 0.0),
304 Vec3Arust-analyzer cargo glam 0.24.2 f32/sse2/vec3a/Vec3A#::newrust-analyzer cargo glam 0.24.2 f32/sse2/vec3a/impl#[Vec3A]new().(0.0, scale.yrust-analyzer cargo glam 0.24.2 f32/vec2/Vec2#y., 0.0),
305 Vec3Arust-analyzer cargo glam 0.24.2 f32/sse2/vec3a/Vec3A#::Zrust-analyzer cargo glam 0.24.2 f32/sse2/vec3a/impl#[Vec3A]Z.,
306 )
307 }
308
309 /// Creates an affine transformation matrix from the given 2x2 matrix.
310 ///
311 /// The resulting matrix can be used to transform 2D points and vectors. See
312 /// [`Self::transform_point2()`] and [`Self::transform_vector2()`].
313 #[inline]
314 pub fn from_mat2rust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/impl#[Mat3A]from_mat2().(m: Mat2rust-analyzer cargo glam 0.24.2 f32/sse2/mat2/Mat2#) -> Selfrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/impl#[Mat3A] {
315 Selfrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/impl#[Mat3A]::from_colsrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/impl#[Mat3A]from_cols().((m.x_axisrust-analyzer cargo glam 0.24.2 deref/Cols2#x_axis., 0.0).intorust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/impl#[T][`Into<U>`]into().(), (m.y_axisrust-analyzer cargo glam 0.24.2 deref/Cols2#y_axis., 0.0).intorust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/impl#[T][`Into<U>`]into().(), Vec3Arust-analyzer cargo glam 0.24.2 f32/sse2/vec3a/Vec3A#::Zrust-analyzer cargo glam 0.24.2 f32/sse2/vec3a/impl#[Vec3A]Z.)
316 }
317
318 /// Creates a 3x3 matrix from the first 9 values in `slice`.
319 ///
320 /// # Panics
321 ///
322 /// Panics if `slice` is less than 9 elements long.
323 #[inline]
324 pub const fn from_cols_slicerust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/impl#[Mat3A]from_cols_slice().(slice: &[f32]) -> Selfrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/impl#[Mat3A] {
325 Selfrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/impl#[Mat3A]::newrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/impl#[Mat3A]new().(
326 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()., slice[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/index/Index#index().4]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().5]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().6]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().7]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/index/Index#index().,
327 slice[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/index/Index#index().8]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/index/Index#index().,
328 )
329 }
330
331 /// Writes the columns of `self` to the first 9 elements in `slice`.
332 ///
333 /// # Panics
334 ///
335 /// Panics if `slice` is less than 9 elements long.
336 #[inline]
337 pub fn write_cols_to_slicerust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/impl#[Mat3A]write_cols_to_slice().(self, slice: &mut [f32]) {
338 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.24.2 f32/sse2/mat3a/Mat3A#x_axis..xrust-analyzer cargo glam 0.24.2 deref/Vec3#x.;
339 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.24.2 f32/sse2/mat3a/Mat3A#x_axis..yrust-analyzer cargo glam 0.24.2 deref/Vec3#y.;
340 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.x_axisrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/Mat3A#x_axis..zrust-analyzer cargo glam 0.24.2 deref/Vec3#z.;
341 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.24.2 f32/sse2/mat3a/Mat3A#y_axis..xrust-analyzer cargo glam 0.24.2 deref/Vec3#x.;
342 slice[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/index/IndexMut#index_mut().4]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/index/IndexMut#index_mut(). = self.y_axisrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/Mat3A#y_axis..yrust-analyzer cargo glam 0.24.2 deref/Vec3#y.;
343 slice[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/index/IndexMut#index_mut().5]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/index/IndexMut#index_mut(). = self.y_axisrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/Mat3A#y_axis..zrust-analyzer cargo glam 0.24.2 deref/Vec3#z.;
344 slice[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/index/IndexMut#index_mut().6]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/index/IndexMut#index_mut(). = self.z_axisrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/Mat3A#z_axis..xrust-analyzer cargo glam 0.24.2 deref/Vec3#x.;
345 slice[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/index/IndexMut#index_mut().7]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/index/IndexMut#index_mut(). = self.z_axisrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/Mat3A#z_axis..yrust-analyzer cargo glam 0.24.2 deref/Vec3#y.;
346 slice[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/index/IndexMut#index_mut().8]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/index/IndexMut#index_mut(). = self.z_axisrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/Mat3A#z_axis..zrust-analyzer cargo glam 0.24.2 deref/Vec3#z.;
347 }
348
349 /// Returns the matrix column for the given `index`.
350 ///
351 /// # Panics
352 ///
353 /// Panics if `index` is greater than 2.
354 #[inline]
355 pub fn colrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/impl#[Mat3A]col().(&self, index: usize) -> Vec3Arust-analyzer cargo glam 0.24.2 f32/sse2/vec3a/Vec3A# {
356 match index {
357 0 => self.x_axisrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/Mat3A#x_axis.,
358 1 => self.y_axisrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/Mat3A#y_axis.,
359 2 => self.z_axisrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/Mat3A#z_axis.,
360 _ => panicrust-analyzer cargo std https://github.com/rust-lang/rust/library/std macros/panic!!("index out of bounds"),
361 }
362 }
363
364 /// Returns a mutable reference to the matrix column for the given `index`.
365 ///
366 /// # Panics
367 ///
368 /// Panics if `index` is greater than 2.
369 #[inline]
370 pub fn col_mutrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/impl#[Mat3A]col_mut().(&mut self, index: usize) -> &mut Vec3Arust-analyzer cargo glam 0.24.2 f32/sse2/vec3a/Vec3A# {
371 match index {
372 0 => &mut self.x_axisrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/Mat3A#x_axis.,
373 1 => &mut self.y_axisrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/Mat3A#y_axis.,
374 2 => &mut self.z_axisrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/Mat3A#z_axis.,
375 _ => panicrust-analyzer cargo std https://github.com/rust-lang/rust/library/std macros/panic!!("index out of bounds"),
376 }
377 }
378
379 /// Returns the matrix row for the given `index`.
380 ///
381 /// # Panics
382 ///
383 /// Panics if `index` is greater than 2.
384 #[inline]
385 pub fn rowrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/impl#[Mat3A]row().(&self, index: usize) -> Vec3Arust-analyzer cargo glam 0.24.2 f32/sse2/vec3a/Vec3A# {
386 match index {
387 0 => Vec3Arust-analyzer cargo glam 0.24.2 f32/sse2/vec3a/Vec3A#::newrust-analyzer cargo glam 0.24.2 f32/sse2/vec3a/impl#[Vec3A]new().(self.x_axisrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/Mat3A#x_axis..xrust-analyzer cargo glam 0.24.2 deref/Vec3#x., self.y_axisrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/Mat3A#y_axis..xrust-analyzer cargo glam 0.24.2 deref/Vec3#x., self.z_axisrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/Mat3A#z_axis..xrust-analyzer cargo glam 0.24.2 deref/Vec3#x.),
388 1 => Vec3Arust-analyzer cargo glam 0.24.2 f32/sse2/vec3a/Vec3A#::newrust-analyzer cargo glam 0.24.2 f32/sse2/vec3a/impl#[Vec3A]new().(self.x_axisrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/Mat3A#x_axis..yrust-analyzer cargo glam 0.24.2 deref/Vec3#y., self.y_axisrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/Mat3A#y_axis..yrust-analyzer cargo glam 0.24.2 deref/Vec3#y., self.z_axisrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/Mat3A#z_axis..yrust-analyzer cargo glam 0.24.2 deref/Vec3#y.),
389 2 => Vec3Arust-analyzer cargo glam 0.24.2 f32/sse2/vec3a/Vec3A#::newrust-analyzer cargo glam 0.24.2 f32/sse2/vec3a/impl#[Vec3A]new().(self.x_axisrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/Mat3A#x_axis..zrust-analyzer cargo glam 0.24.2 deref/Vec3#z., self.y_axisrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/Mat3A#y_axis..zrust-analyzer cargo glam 0.24.2 deref/Vec3#z., self.z_axisrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/Mat3A#z_axis..zrust-analyzer cargo glam 0.24.2 deref/Vec3#z.),
390 _ => panicrust-analyzer cargo std https://github.com/rust-lang/rust/library/std macros/panic!!("index out of bounds"),
391 }
392 }
393
394 /// Returns `true` if, and only if, all elements are finite.
395 /// If any element is either `NaN`, positive or negative infinity, this will return `false`.
396 #[inline]
397 pub fn is_finiterust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/impl#[Mat3A]is_finite().(&self) -> bool {
398 self.x_axisrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/Mat3A#x_axis..is_finiterust-analyzer cargo glam 0.24.2 f32/sse2/vec3a/impl#[Vec3A]is_finite().() && self.y_axisrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/Mat3A#y_axis..is_finiterust-analyzer cargo glam 0.24.2 f32/sse2/vec3a/impl#[Vec3A]is_finite().() && self.z_axisrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/Mat3A#z_axis..is_finiterust-analyzer cargo glam 0.24.2 f32/sse2/vec3a/impl#[Vec3A]is_finite().()
399 }
400
401 /// Returns `true` if any elements are `NaN`.
402 #[inline]
403 pub fn is_nanrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/impl#[Mat3A]is_nan().(&self) -> bool {
404 self.x_axisrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/Mat3A#x_axis..is_nanrust-analyzer cargo glam 0.24.2 f32/sse2/vec3a/impl#[Vec3A]is_nan().() || self.y_axisrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/Mat3A#y_axis..is_nanrust-analyzer cargo glam 0.24.2 f32/sse2/vec3a/impl#[Vec3A]is_nan().() || self.z_axisrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/Mat3A#z_axis..is_nanrust-analyzer cargo glam 0.24.2 f32/sse2/vec3a/impl#[Vec3A]is_nan().()
405 }
406
407 /// Returns the transpose of `self`.
408 #[must_use]
409 #[inline]
410 pub fn transposerust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/impl#[Mat3A]transpose().(&self) -> Selfrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/impl#[Mat3A] {
411 unsafe {
412 let tmp0 = _mm_shuffle_psrust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/sse/_mm_shuffle_ps().(self.x_axisrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/Mat3A#x_axis..0rust-analyzer cargo glam 0.24.2 f32/sse2/vec3a/Vec3A#0., self.y_axisrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/Mat3A#y_axis..0rust-analyzer cargo glam 0.24.2 f32/sse2/vec3a/Vec3A#0., 0b01_00_01_00);
413 let tmp1 = _mm_shuffle_psrust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/sse/_mm_shuffle_ps().(self.x_axisrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/Mat3A#x_axis..0rust-analyzer cargo glam 0.24.2 f32/sse2/vec3a/Vec3A#0., self.y_axisrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/Mat3A#y_axis..0rust-analyzer cargo glam 0.24.2 f32/sse2/vec3a/Vec3A#0., 0b11_10_11_10);
414
415 Selfrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/impl#[Mat3A] {
416 x_axisrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/Mat3A#x_axis.: Vec3Arust-analyzer cargo glam 0.24.2 f32/sse2/vec3a/Vec3A#(_mm_shuffle_psrust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/sse/_mm_shuffle_ps().(tmp0, self.z_axisrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/Mat3A#z_axis..0rust-analyzer cargo glam 0.24.2 f32/sse2/vec3a/Vec3A#0., 0b00_00_10_00)),
417 y_axisrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/Mat3A#y_axis.: Vec3Arust-analyzer cargo glam 0.24.2 f32/sse2/vec3a/Vec3A#(_mm_shuffle_psrust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/sse/_mm_shuffle_ps().(tmp0, self.z_axisrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/Mat3A#z_axis..0rust-analyzer cargo glam 0.24.2 f32/sse2/vec3a/Vec3A#0., 0b01_01_11_01)),
418 z_axisrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/Mat3A#z_axis.: Vec3Arust-analyzer cargo glam 0.24.2 f32/sse2/vec3a/Vec3A#(_mm_shuffle_psrust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/sse/_mm_shuffle_ps().(tmp1, self.z_axisrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/Mat3A#z_axis..0rust-analyzer cargo glam 0.24.2 f32/sse2/vec3a/Vec3A#0., 0b10_10_10_00)),
419 }
420 }
421 }
422
423 /// Returns the determinant of `self`.
424 #[inline]
425 pub fn determinantrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/impl#[Mat3A]determinant().(&self) -> f32 {
426 self.z_axisrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/Mat3A#z_axis..dotrust-analyzer cargo glam 0.24.2 f32/sse2/vec3a/impl#[Vec3A]dot().(self.x_axisrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/Mat3A#x_axis..crossrust-analyzer cargo glam 0.24.2 f32/sse2/vec3a/impl#[Vec3A]cross().(self.y_axisrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/Mat3A#y_axis.))
427 }
428
429 /// Returns the inverse of `self`.
430 ///
431 /// If the matrix is not invertible the returned matrix will be invalid.
432 ///
433 /// # Panics
434 ///
435 /// Will panic if the determinant of `self` is zero when `glam_assert` is enabled.
436 #[must_use]
437 #[inline]
438 pub fn inverserust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/impl#[Mat3A]inverse().(&self) -> Selfrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/impl#[Mat3A] {
439 let tmp0 = self.y_axisrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/Mat3A#y_axis..crossrust-analyzer cargo glam 0.24.2 f32/sse2/vec3a/impl#[Vec3A]cross().(self.z_axisrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/Mat3A#z_axis.);
440 let tmp1 = self.z_axisrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/Mat3A#z_axis..crossrust-analyzer cargo glam 0.24.2 f32/sse2/vec3a/impl#[Vec3A]cross().(self.x_axisrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/Mat3A#x_axis.);
441 let tmp2 = self.x_axisrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/Mat3A#x_axis..crossrust-analyzer cargo glam 0.24.2 f32/sse2/vec3a/impl#[Vec3A]cross().(self.y_axisrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/Mat3A#y_axis.);
442 let det = self.z_axisrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/Mat3A#z_axis..dotrust-analyzer cargo glam 0.24.2 f32/sse2/vec3a/impl#[Vec3A]dot().(tmp2);
443 glam_assertrust-analyzer cargo glam 0.24.2 macros/glam_assert!!(det != 0.0);
444 let inv_det = Vec3Arust-analyzer cargo glam 0.24.2 f32/sse2/vec3a/Vec3A#::splatrust-analyzer cargo glam 0.24.2 f32/sse2/vec3a/impl#[Vec3A]splat().(det.reciprust-analyzer cargo core https://github.com/rust-lang/rust/library/core f32/impl#[f32]recip().());
445 Selfrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/impl#[Mat3A]::from_colsrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/impl#[Mat3A]from_cols().(tmp0.mulrust-analyzer cargo glam 0.24.2 f32/sse2/vec3a/impl#[Vec3A][`Mul<Self>`]mul().(inv_det), tmp1.mulrust-analyzer cargo glam 0.24.2 f32/sse2/vec3a/impl#[Vec3A][`Mul<Self>`]mul().(inv_det), tmp2.mulrust-analyzer cargo glam 0.24.2 f32/sse2/vec3a/impl#[Vec3A][`Mul<Self>`]mul().(inv_det)).transposerust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/impl#[Mat3A]transpose().()
446 }
447
448 /// Transforms the given 2D vector as a point.
449 ///
450 /// This is the equivalent of multiplying `rhs` as a 3D vector where `z` is `1`.
451 ///
452 /// This method assumes that `self` contains a valid affine transform.
453 ///
454 /// # Panics
455 ///
456 /// Will panic if the 2nd row of `self` is not `(0, 0, 1)` when `glam_assert` is enabled.
457 #[inline]
458 pub fn transform_point2rust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/impl#[Mat3A]transform_point2().(&self, rhs: Vec2rust-analyzer cargo glam 0.24.2 f32/vec2/Vec2#) -> Vec2rust-analyzer cargo glam 0.24.2 f32/vec2/Vec2# {
459 glam_assertrust-analyzer cargo glam 0.24.2 macros/glam_assert!!(self.row(2).abs_diff_eq(Vec3A::Z, 1e-6));
460 Mat2rust-analyzer cargo glam 0.24.2 f32/sse2/mat2/Mat2#::from_colsrust-analyzer cargo glam 0.24.2 f32/sse2/mat2/impl#[Mat2]from_cols().(self.x_axisrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/Mat3A#x_axis..xyrust-analyzer cargo glam 0.24.2 swizzles/sse2/vec3a_impl/impl#[Vec3A][Vec3Swizzles]xy().(), self.y_axisrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/Mat3A#y_axis..xyrust-analyzer cargo glam 0.24.2 swizzles/sse2/vec3a_impl/impl#[Vec3A][Vec3Swizzles]xy().()) rust-analyzer cargo glam 0.24.2 f32/sse2/mat2/impl#[Mat2][`Mul<Vec2>`]mul().*rust-analyzer cargo glam 0.24.2 f32/sse2/mat2/impl#[Mat2][`Mul<Vec2>`]mul(). rust-analyzer cargo glam 0.24.2 f32/sse2/mat2/impl#[Mat2][`Mul<Vec2>`]mul().rhs rust-analyzer cargo glam 0.24.2 f32/vec2/impl#[Vec2][`Add<Self>`]add().+rust-analyzer cargo glam 0.24.2 f32/vec2/impl#[Vec2][`Add<Self>`]add(). rust-analyzer cargo glam 0.24.2 f32/vec2/impl#[Vec2][`Add<Self>`]add().self.z_axisrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/Mat3A#z_axis..xyrust-analyzer cargo glam 0.24.2 swizzles/sse2/vec3a_impl/impl#[Vec3A][Vec3Swizzles]xy().()
461 }
462
463 /// Rotates the given 2D vector.
464 ///
465 /// This is the equivalent of multiplying `rhs` as a 3D vector where `z` is `0`.
466 ///
467 /// This method assumes that `self` contains a valid affine transform.
468 ///
469 /// # Panics
470 ///
471 /// Will panic if the 2nd row of `self` is not `(0, 0, 1)` when `glam_assert` is enabled.
472 #[inline]
473 pub fn transform_vector2rust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/impl#[Mat3A]transform_vector2().(&self, rhs: Vec2rust-analyzer cargo glam 0.24.2 f32/vec2/Vec2#) -> Vec2rust-analyzer cargo glam 0.24.2 f32/vec2/Vec2# {
474 glam_assertrust-analyzer cargo glam 0.24.2 macros/glam_assert!!(self.row(2).abs_diff_eq(Vec3A::Z, 1e-6));
475 Mat2rust-analyzer cargo glam 0.24.2 f32/sse2/mat2/Mat2#::from_colsrust-analyzer cargo glam 0.24.2 f32/sse2/mat2/impl#[Mat2]from_cols().(self.x_axisrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/Mat3A#x_axis..xyrust-analyzer cargo glam 0.24.2 swizzles/sse2/vec3a_impl/impl#[Vec3A][Vec3Swizzles]xy().(), self.y_axisrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/Mat3A#y_axis..xyrust-analyzer cargo glam 0.24.2 swizzles/sse2/vec3a_impl/impl#[Vec3A][Vec3Swizzles]xy().()) rust-analyzer cargo glam 0.24.2 f32/sse2/mat2/impl#[Mat2][`Mul<Vec2>`]mul().*rust-analyzer cargo glam 0.24.2 f32/sse2/mat2/impl#[Mat2][`Mul<Vec2>`]mul(). rust-analyzer cargo glam 0.24.2 f32/sse2/mat2/impl#[Mat2][`Mul<Vec2>`]mul().rhs
476 }
477
478 /// Transforms a 3D vector.
479 #[inline]
480 pub fn mul_vec3rust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/impl#[Mat3A]mul_vec3().(&self, rhs: Vec3rust-analyzer cargo glam 0.24.2 f32/vec3/Vec3#) -> Vec3rust-analyzer cargo glam 0.24.2 f32/vec3/Vec3# {
481 self.mul_vec3arust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/impl#[Mat3A]mul_vec3a().(rhs.intorust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/impl#[T][`Into<U>`]into().()).intorust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/impl#[T][`Into<U>`]into().()
482 }
483
484 /// Transforms a [`Vec3A`].
485 #[inline]
486 pub fn mul_vec3arust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/impl#[Mat3A]mul_vec3a().(&self, rhs: Vec3Arust-analyzer cargo glam 0.24.2 f32/sse2/vec3a/Vec3A#) -> Vec3Arust-analyzer cargo glam 0.24.2 f32/sse2/vec3a/Vec3A# {
487 let mut res = self.x_axisrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/Mat3A#x_axis..mulrust-analyzer cargo glam 0.24.2 f32/sse2/vec3a/impl#[Vec3A][`Mul<Self>`]mul().(rhs.xxxrust-analyzer cargo glam 0.24.2 swizzles/sse2/vec3a_impl/impl#[Vec3A][Vec3Swizzles]xxx().());
488 res = res.addrust-analyzer cargo glam 0.24.2 f32/sse2/vec3a/impl#[Vec3A][`Add<Self>`]add().(self.y_axisrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/Mat3A#y_axis..mulrust-analyzer cargo glam 0.24.2 f32/sse2/vec3a/impl#[Vec3A][`Mul<Self>`]mul().(rhs.yyyrust-analyzer cargo glam 0.24.2 swizzles/sse2/vec3a_impl/impl#[Vec3A][Vec3Swizzles]yyy().()));
489 res = res.addrust-analyzer cargo glam 0.24.2 f32/sse2/vec3a/impl#[Vec3A][`Add<Self>`]add().(self.z_axisrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/Mat3A#z_axis..mulrust-analyzer cargo glam 0.24.2 f32/sse2/vec3a/impl#[Vec3A][`Mul<Self>`]mul().(rhs.zzzrust-analyzer cargo glam 0.24.2 swizzles/sse2/vec3a_impl/impl#[Vec3A][Vec3Swizzles]zzz().()));
490 res
491 }
492
493 /// Multiplies two 3x3 matrices.
494 #[inline]
495 pub fn mul_mat3rust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/impl#[Mat3A]mul_mat3().(&self, rhs: &Selfrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/impl#[Mat3A]) -> Selfrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/impl#[Mat3A] {
496 Selfrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/impl#[Mat3A]::from_colsrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/impl#[Mat3A]from_cols().(
497 self.mulrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/impl#[Mat3A][`Mul<Vec3A>`]mul().(rhs.x_axisrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/Mat3A#x_axis.),
498 self.mulrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/impl#[Mat3A][`Mul<Vec3A>`]mul().(rhs.y_axisrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/Mat3A#y_axis.),
499 self.mulrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/impl#[Mat3A][`Mul<Vec3A>`]mul().(rhs.z_axisrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/Mat3A#z_axis.),
500 )
501 }
502
503 /// Adds two 3x3 matrices.
504 #[inline]
505 pub fn add_mat3rust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/impl#[Mat3A]add_mat3().(&self, rhs: &Selfrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/impl#[Mat3A]) -> Selfrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/impl#[Mat3A] {
506 Selfrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/impl#[Mat3A]::from_colsrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/impl#[Mat3A]from_cols().(
507 self.x_axisrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/Mat3A#x_axis..addrust-analyzer cargo glam 0.24.2 f32/sse2/vec3a/impl#[Vec3A][`Add<Self>`]add().(rhs.x_axisrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/Mat3A#x_axis.),
508 self.y_axisrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/Mat3A#y_axis..addrust-analyzer cargo glam 0.24.2 f32/sse2/vec3a/impl#[Vec3A][`Add<Self>`]add().(rhs.y_axisrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/Mat3A#y_axis.),
509 self.z_axisrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/Mat3A#z_axis..addrust-analyzer cargo glam 0.24.2 f32/sse2/vec3a/impl#[Vec3A][`Add<Self>`]add().(rhs.z_axisrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/Mat3A#z_axis.),
510 )
511 }
512
513 /// Subtracts two 3x3 matrices.
514 #[inline]
515 pub fn sub_mat3rust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/impl#[Mat3A]sub_mat3().(&self, rhs: &Selfrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/impl#[Mat3A]) -> Selfrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/impl#[Mat3A] {
516 Selfrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/impl#[Mat3A]::from_colsrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/impl#[Mat3A]from_cols().(
517 self.x_axisrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/Mat3A#x_axis..subrust-analyzer cargo glam 0.24.2 f32/sse2/vec3a/impl#[Vec3A][`Sub<Self>`]sub().(rhs.x_axisrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/Mat3A#x_axis.),
518 self.y_axisrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/Mat3A#y_axis..subrust-analyzer cargo glam 0.24.2 f32/sse2/vec3a/impl#[Vec3A][`Sub<Self>`]sub().(rhs.y_axisrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/Mat3A#y_axis.),
519 self.z_axisrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/Mat3A#z_axis..subrust-analyzer cargo glam 0.24.2 f32/sse2/vec3a/impl#[Vec3A][`Sub<Self>`]sub().(rhs.z_axisrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/Mat3A#z_axis.),
520 )
521 }
522
523 /// Multiplies a 3x3 matrix by a scalar.
524 #[inline]
525 pub fn mul_scalarrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/impl#[Mat3A]mul_scalar().(&self, rhs: f32) -> Selfrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/impl#[Mat3A] {
526 Selfrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/impl#[Mat3A]::from_colsrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/impl#[Mat3A]from_cols().(
527 self.x_axisrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/Mat3A#x_axis..mulrust-analyzer cargo glam 0.24.2 f32/sse2/vec3a/impl#[Vec3A][`Mul<f32>`]mul().(rhs),
528 self.y_axisrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/Mat3A#y_axis..mulrust-analyzer cargo glam 0.24.2 f32/sse2/vec3a/impl#[Vec3A][`Mul<f32>`]mul().(rhs),
529 self.z_axisrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/Mat3A#z_axis..mulrust-analyzer cargo glam 0.24.2 f32/sse2/vec3a/impl#[Vec3A][`Mul<f32>`]mul().(rhs),
530 )
531 }
532
533 /// Returns true if the absolute difference of all elements between `self` and `rhs`
534 /// is less than or equal to `max_abs_diff`.
535 ///
536 /// This can be used to compare if two matrices contain similar elements. It works best
537 /// when comparing with a known value. The `max_abs_diff` that should be used used
538 /// depends on the values being compared against.
539 ///
540 /// For more see
541 /// [comparing floating point numbers](https://randomascii.wordpress.com/2012/02/25/comparing-floating-point-numbers-2012-edition/).
542 #[inline]
543 pub fn abs_diff_eqrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/impl#[Mat3A]abs_diff_eq().(&self, rhs: Selfrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/impl#[Mat3A], max_abs_diff: f32) -> bool {
544 self.x_axisrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/Mat3A#x_axis..abs_diff_eqrust-analyzer cargo glam 0.24.2 f32/sse2/vec3a/impl#[Vec3A]abs_diff_eq().(rhs.x_axisrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/Mat3A#x_axis., max_abs_diff)
545 && self.y_axisrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/Mat3A#y_axis..abs_diff_eqrust-analyzer cargo glam 0.24.2 f32/sse2/vec3a/impl#[Vec3A]abs_diff_eq().(rhs.y_axisrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/Mat3A#y_axis., max_abs_diff)
546 && self.z_axisrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/Mat3A#z_axis..abs_diff_eqrust-analyzer cargo glam 0.24.2 f32/sse2/vec3a/impl#[Vec3A]abs_diff_eq().(rhs.z_axisrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/Mat3A#z_axis., max_abs_diff)
547 }
548
549 #[inline]
550 pub fn as_dmat3rust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/impl#[Mat3A]as_dmat3().(&self) -> DMat3rust-analyzer cargo glam 0.24.2 f64/dmat3/DMat3# {
551 DMat3rust-analyzer cargo glam 0.24.2 f64/dmat3/DMat3#::from_colsrust-analyzer cargo glam 0.24.2 f64/dmat3/impl#[DMat3]from_cols().(
552 self.x_axisrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/Mat3A#x_axis..as_dvec3rust-analyzer cargo glam 0.24.2 f32/sse2/vec3a/impl#[Vec3A]as_dvec3().(),
553 self.y_axisrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/Mat3A#y_axis..as_dvec3rust-analyzer cargo glam 0.24.2 f32/sse2/vec3a/impl#[Vec3A]as_dvec3().(),
554 self.z_axisrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/Mat3A#z_axis..as_dvec3rust-analyzer cargo glam 0.24.2 f32/sse2/vec3a/impl#[Vec3A]as_dvec3().(),
555 )
556 }
557 }
558
559 impl Defaultrust-analyzer cargo core https://github.com/rust-lang/rust/library/core default/Default# for Mat3Arust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/Mat3A# {
560 #[inline]
561 fn defaultrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/impl#[Mat3A][Default]default().() -> Selfrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/impl#[Mat3A][Default] {
562 Selfrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/impl#[Mat3A][Default]::IDENTITYrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/impl#[Mat3A]IDENTITY.
563 }
564 }
565
566 impl Addrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Add#<Mat3Arust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/Mat3A#> for Mat3Arust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/Mat3A# {
567 type Outputrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/impl#[Mat3A][`Add<Self>`]Output# = Selfrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/impl#[Mat3A][`Add<Self>`];
568 #[inline]
569 fn addrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/impl#[Mat3A][`Add<Self>`]add().(self, rhs: Selfrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/impl#[Mat3A][`Add<Self>`]) -> Selfrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/impl#[Mat3A][`Add<Self>`]::Outputrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Add#Output# {
570 self.add_mat3rust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/impl#[Mat3A]add_mat3().(&rhs)
571 }
572 }
573
574 impl AddAssignrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/AddAssign#<Mat3Arust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/Mat3A#> for Mat3Arust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/Mat3A# {
575 #[inline]
576 fn add_assignrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/impl#[Mat3A][`AddAssign<Self>`]add_assign().(&mut self, rhs: Selfrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/impl#[Mat3A][`AddAssign<Self>`]) {
577 *rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/deref/impl#[`&mut T`][Deref]deref().self = self.add_mat3rust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/impl#[Mat3A]add_mat3().(&rhs);
578 }
579 }
580
581 impl Subrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Sub#<Mat3Arust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/Mat3A#> for Mat3Arust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/Mat3A# {
582 type Outputrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/impl#[Mat3A][`Sub<Self>`]Output# = Selfrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/impl#[Mat3A][`Sub<Self>`];
583 #[inline]
584 fn subrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/impl#[Mat3A][`Sub<Self>`]sub().(self, rhs: Selfrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/impl#[Mat3A][`Sub<Self>`]) -> Selfrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/impl#[Mat3A][`Sub<Self>`]::Outputrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Sub#Output# {
585 self.sub_mat3rust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/impl#[Mat3A]sub_mat3().(&rhs)
586 }
587 }
588
589 impl SubAssignrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/SubAssign#<Mat3Arust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/Mat3A#> for Mat3Arust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/Mat3A# {
590 #[inline]
591 fn sub_assignrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/impl#[Mat3A][`SubAssign<Self>`]sub_assign().(&mut self, rhs: Selfrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/impl#[Mat3A][`SubAssign<Self>`]) {
592 *rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/deref/impl#[`&mut T`][Deref]deref().self = self.sub_mat3rust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/impl#[Mat3A]sub_mat3().(&rhs);
593 }
594 }
595
596 impl Negrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Neg# for Mat3Arust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/Mat3A# {
597 type Outputrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/impl#[Mat3A][Neg]Output# = Selfrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/impl#[Mat3A][Neg];
598 #[inline]
599 fn negrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/impl#[Mat3A][Neg]neg().(self) -> Selfrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/impl#[Mat3A][Neg]::Outputrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Neg#Output# {
600 Selfrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/impl#[Mat3A][Neg]::from_colsrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/impl#[Mat3A]from_cols().(self.x_axisrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/Mat3A#x_axis..negrust-analyzer cargo glam 0.24.2 f32/sse2/vec3a/impl#[Vec3A][Neg]neg().(), self.y_axisrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/Mat3A#y_axis..negrust-analyzer cargo glam 0.24.2 f32/sse2/vec3a/impl#[Vec3A][Neg]neg().(), self.z_axisrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/Mat3A#z_axis..negrust-analyzer cargo glam 0.24.2 f32/sse2/vec3a/impl#[Vec3A][Neg]neg().())
601 }
602 }
603
604 impl Mulrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Mul#<Mat3Arust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/Mat3A#> for Mat3Arust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/Mat3A# {
605 type Outputrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/impl#[Mat3A][`Mul<Self>`]Output# = Selfrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/impl#[Mat3A][`Mul<Self>`];
606 #[inline]
607 fn mulrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/impl#[Mat3A][`Mul<Self>`]mul().(self, rhs: Selfrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/impl#[Mat3A][`Mul<Self>`]) -> Selfrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/impl#[Mat3A][`Mul<Self>`]::Outputrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Mul#Output# {
608 self.mul_mat3rust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/impl#[Mat3A]mul_mat3().(&rhs)
609 }
610 }
611
612 impl MulAssignrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/MulAssign#<Mat3Arust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/Mat3A#> for Mat3Arust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/Mat3A# {
613 #[inline]
614 fn mul_assignrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/impl#[Mat3A][`MulAssign<Self>`]mul_assign().(&mut self, rhs: Selfrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/impl#[Mat3A][`MulAssign<Self>`]) {
615 *rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/deref/impl#[`&mut T`][Deref]deref().self = self.mul_mat3rust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/impl#[Mat3A]mul_mat3().(&rhs);
616 }
617 }
618
619 impl Mulrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Mul#<Vec3Arust-analyzer cargo glam 0.24.2 f32/sse2/vec3a/Vec3A#> for Mat3Arust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/Mat3A# {
620 type Outputrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/impl#[Mat3A][`Mul<Vec3A>`]Output# = Vec3Arust-analyzer cargo glam 0.24.2 f32/sse2/vec3a/Vec3A#;
621 #[inline]
622 fn mulrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/impl#[Mat3A][`Mul<Vec3A>`]mul().(self, rhs: Vec3Arust-analyzer cargo glam 0.24.2 f32/sse2/vec3a/Vec3A#) -> Selfrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/impl#[Mat3A][`Mul<Vec3A>`]::Outputrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Mul#Output# {
623 self.mul_vec3arust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/impl#[Mat3A]mul_vec3a().(rhs)
624 }
625 }
626
627 impl Mulrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Mul#<Mat3Arust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/Mat3A#> for f32 {
628 type Outputrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/impl#[f32][`Mul<Mat3A>`]Output# = Mat3Arust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/Mat3A#;
629 #[inline]
630 fn mulrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/impl#[f32][`Mul<Mat3A>`]mul().(self, rhs: Mat3Arust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/Mat3A#) -> Selfrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/impl#[f32][`Mul<Mat3A>`]::Outputrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Mul#Output# {
631 rhs.mul_scalarrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/impl#[Mat3A]mul_scalar().(self)
632 }
633 }
634
635 impl Mulrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Mul#<f32> for Mat3Arust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/Mat3A# {
636 type Outputrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/impl#[Mat3A][`Mul<f32>`]Output# = Selfrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/impl#[Mat3A][`Mul<f32>`];
637 #[inline]
638 fn mulrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/impl#[Mat3A][`Mul<f32>`]mul().(self, rhs: f32) -> Selfrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/impl#[Mat3A][`Mul<f32>`]::Outputrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Mul#Output# {
639 self.mul_scalarrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/impl#[Mat3A]mul_scalar().(rhs)
640 }
641 }
642
643 impl MulAssignrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/MulAssign#<f32> for Mat3Arust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/Mat3A# {
644 #[inline]
645 fn mul_assignrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/impl#[Mat3A][`MulAssign<f32>`]mul_assign().(&mut self, rhs: f32) {
646 *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.24.2 f32/sse2/mat3a/impl#[Mat3A]mul_scalar().(rhs);
647 }
648 }
649
650 impl Mulrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Mul#<Vec3rust-analyzer cargo glam 0.24.2 f32/vec3/Vec3#> for Mat3Arust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/Mat3A# {
651 type Outputrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/impl#[Mat3A][`Mul<Vec3>`]Output# = Vec3rust-analyzer cargo glam 0.24.2 f32/vec3/Vec3#;
652 #[inline]
653 fn mulrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/impl#[Mat3A][`Mul<Vec3>`]mul().(self, rhs: Vec3rust-analyzer cargo glam 0.24.2 f32/vec3/Vec3#) -> Vec3rust-analyzer cargo glam 0.24.2 f32/vec3/Vec3# {
654 self.mul_vec3arust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/impl#[Mat3A]mul_vec3a().(rhs.intorust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/impl#[T][`Into<U>`]into().()).intorust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/impl#[T][`Into<U>`]into().()
655 }
656 }
657
658 impl Fromrust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/From#<Mat3rust-analyzer cargo glam 0.24.2 f32/mat3/Mat3#> for Mat3Arust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/Mat3A# {
659 #[inline]
660 fn fromrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/impl#[Mat3A][`From<Mat3>`]from().(m: Mat3rust-analyzer cargo glam 0.24.2 f32/mat3/Mat3#) -> Selfrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/impl#[Mat3A][`From<Mat3>`] {
661 Selfrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/impl#[Mat3A][`From<Mat3>`] {
662 x_axisrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/Mat3A#x_axis.: m.x_axisrust-analyzer cargo glam 0.24.2 f32/mat3/Mat3#x_axis..intorust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/impl#[T][`Into<U>`]into().(),
663 y_axisrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/Mat3A#y_axis.: m.y_axisrust-analyzer cargo glam 0.24.2 f32/mat3/Mat3#y_axis..intorust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/impl#[T][`Into<U>`]into().(),
664 z_axisrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/Mat3A#z_axis.: m.z_axisrust-analyzer cargo glam 0.24.2 f32/mat3/Mat3#z_axis..intorust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/impl#[T][`Into<U>`]into().(),
665 }
666 }
667 }
668
669 impl Sumrust-analyzer cargo core https://github.com/rust-lang/rust/library/core iter/traits/accum/Sum#<Selfrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/impl#[Mat3A][`Sum<Self>`]> for Mat3Arust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/Mat3A# {
670 fn sumrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/impl#[Mat3A][`Sum<Self>`]sum().<I>(iter: I) -> Selfrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/impl#[Mat3A][`Sum<Self>`]
671 where
672 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.24.2 f32/sse2/mat3a/impl#[Mat3A][`Sum<Self>`]>,
673 {
674 iter.foldrust-analyzer cargo core https://github.com/rust-lang/rust/library/core iter/traits/iterator/Iterator#fold().(Selfrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/impl#[Mat3A][`Sum<Self>`]::ZEROrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/impl#[Mat3A]ZERO., Selfrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/impl#[Mat3A][`Sum<Self>`]::addrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/impl#[Mat3A][`Add<Self>`]add().)
675 }
676 }
677
678 impl<'a> Sumrust-analyzer cargo core https://github.com/rust-lang/rust/library/core iter/traits/accum/Sum#<&'a Selfrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/impl#[Mat3A][`Sum<&'a Mat3A>`]> for Mat3Arust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/Mat3A# {
679 fn sumrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/impl#[Mat3A][`Sum<&'a Mat3A>`]sum().<I>(iter: I) -> Selfrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/impl#[Mat3A][`Sum<&'a Mat3A>`]
680 where
681 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.24.2 f32/sse2/mat3a/impl#[Mat3A][`Sum<&'a Mat3A>`]>,
682 {
683 iter.foldrust-analyzer cargo core https://github.com/rust-lang/rust/library/core iter/traits/iterator/Iterator#fold().(Selfrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/impl#[Mat3A][`Sum<&'a Mat3A>`]::ZEROrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/impl#[Mat3A]ZERO., |a, &b| Selfrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/impl#[Mat3A][`Sum<&'a Mat3A>`]::addrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/impl#[Mat3A][`Add<Self>`]add().(a, b))
684 }
685 }
686
687 impl Productrust-analyzer cargo core https://github.com/rust-lang/rust/library/core iter/traits/accum/Product# for Mat3Arust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/Mat3A# {
688 fn productrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/impl#[Mat3A][`Product<Self>`]product().<I>(iter: I) -> Selfrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/impl#[Mat3A][`Product<Self>`]
689 where
690 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.24.2 f32/sse2/mat3a/impl#[Mat3A][`Product<Self>`]>,
691 {
692 iter.foldrust-analyzer cargo core https://github.com/rust-lang/rust/library/core iter/traits/iterator/Iterator#fold().(Selfrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/impl#[Mat3A][`Product<Self>`]::IDENTITYrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/impl#[Mat3A]IDENTITY., Selfrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/impl#[Mat3A][`Product<Self>`]::mulrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/impl#[Mat3A][`Mul<Self>`]mul().)
693 }
694 }
695
696 impl<'a> Productrust-analyzer cargo core https://github.com/rust-lang/rust/library/core iter/traits/accum/Product#<&'a Selfrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/impl#[Mat3A][`Product<&'a Mat3A>`]> for Mat3Arust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/Mat3A# {
697 fn productrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/impl#[Mat3A][`Product<&'a Mat3A>`]product().<I>(iter: I) -> Selfrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/impl#[Mat3A][`Product<&'a Mat3A>`]
698 where
699 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.24.2 f32/sse2/mat3a/impl#[Mat3A][`Product<&'a Mat3A>`]>,
700 {
701 iter.foldrust-analyzer cargo core https://github.com/rust-lang/rust/library/core iter/traits/iterator/Iterator#fold().(Selfrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/impl#[Mat3A][`Product<&'a Mat3A>`]::IDENTITYrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/impl#[Mat3A]IDENTITY., |a, &b| Selfrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/impl#[Mat3A][`Product<&'a Mat3A>`]::mulrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/impl#[Mat3A][`Mul<Self>`]mul().(a, b))
702 }
703 }
704
705 impl PartialEqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/PartialEq# for Mat3Arust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/Mat3A# {
706 #[inline]
707 fn eqrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/impl#[Mat3A][`PartialEq<Self>`]eq().(&self, rhs: &Selfrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/impl#[Mat3A][`PartialEq<Self>`]) -> bool {
708 self.x_axisrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/Mat3A#x_axis..eqrust-analyzer cargo glam 0.24.2 f32/sse2/vec3a/impl#[Vec3A][`PartialEq<Self>`]eq().(&rhs.x_axisrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/Mat3A#x_axis.) && self.y_axisrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/Mat3A#y_axis..eqrust-analyzer cargo glam 0.24.2 f32/sse2/vec3a/impl#[Vec3A][`PartialEq<Self>`]eq().(&rhs.y_axisrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/Mat3A#y_axis.) && self.z_axisrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/Mat3A#z_axis..eqrust-analyzer cargo glam 0.24.2 f32/sse2/vec3a/impl#[Vec3A][`PartialEq<Self>`]eq().(&rhs.z_axisrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/Mat3A#z_axis.)
709 }
710 }
711
712 #[cfg(not(target_arch = "spirv"))]
713 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 Mat3Arust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/Mat3A# {
714 fn fmtrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/impl#[Mat3A][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# {
715 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!!(Mat3A))
716 .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.24.2 f32/sse2/mat3a/Mat3A#x_axis.)
717 .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.24.2 f32/sse2/mat3a/Mat3A#y_axis.)
718 .fieldrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/builders/impl#[`DebugStruct<'a, 'b>`]field().("z_axis", &self.z_axisrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/Mat3A#z_axis.)
719 .finishrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/builders/impl#[`DebugStruct<'a, 'b>`]finish().()
720 }
721 }
722
723 #[cfg(not(target_arch = "spirv"))]
724 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 Mat3Arust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/Mat3A# {
725 fn fmtrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/impl#[Mat3A][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# {
726 writerust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/write!!(f, "[{}, {}, {}]", self.x_axisrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/Mat3A#x_axis., self.y_axisrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/Mat3A#y_axis., self.z_axisrust-analyzer cargo glam 0.24.2 f32/sse2/mat3a/Mat3A#z_axis.)
727 }
728 }