Debian Codegraph @

debian/missing-sources/glam-0.24.2/src/f64/dmat4.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/::{f64rust-analyzer cargo glam 0.24.2 f64/::mathrust-analyzer cargo glam 0.24.2 f64/math/, swizzlesrust-analyzer cargo glam 0.24.2 swizzles/::*, DMat3rust-analyzer cargo glam 0.24.2 f64/dmat3/DMat3#, DQuatrust-analyzer cargo glam 0.24.2 f64/dquat/DQuat#, DVec3rust-analyzer cargo glam 0.24.2 f64/dvec3/DVec3#, DVec4rust-analyzer cargo glam 0.24.2 f64/dvec4/DVec4#, EulerRotrust-analyzer cargo glam 0.24.2 euler/EulerRot#, Mat4rust-analyzer cargo glam 0.24.2 f32/sse2/mat4/Mat4#};
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 /// Creates a 4x4 matrix from four column vectors.
10 #[inline(always)]
11 pub const fn dmat4rust-analyzer cargo glam 0.24.2 f64/dmat4/dmat4().(x_axis: DVec4rust-analyzer cargo glam 0.24.2 f64/dvec4/DVec4#, y_axis: DVec4rust-analyzer cargo glam 0.24.2 f64/dvec4/DVec4#, z_axis: DVec4rust-analyzer cargo glam 0.24.2 f64/dvec4/DVec4#, w_axis: DVec4rust-analyzer cargo glam 0.24.2 f64/dvec4/DVec4#) -> DMat4rust-analyzer cargo glam 0.24.2 f64/dmat4/DMat4# {
12 DMat4rust-analyzer cargo glam 0.24.2 f64/dmat4/DMat4#::from_colsrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4]from_cols().(x_axis, y_axis, z_axis, w_axis)
13 }
14
15 /// A 4x4 column major matrix.
16 ///
17 /// This 4x4 matrix type features convenience methods for creating and using affine transforms and
18 /// perspective projections. If you are primarily dealing with 3D affine transformations
19 /// considering using [`DAffine3`](crate::DAffine3) which is faster than a 4x4 matrix
20 /// for some affine operations.
21 ///
22 /// Affine transformations including 3D translation, rotation and scale can be created
23 /// using methods such as [`Self::from_translation()`], [`Self::from_quat()`],
24 /// [`Self::from_scale()`] and [`Self::from_scale_rotation_translation()`].
25 ///
26 /// Orthographic projections can be created using the methods [`Self::orthographic_lh()`] for
27 /// left-handed coordinate systems and [`Self::orthographic_rh()`] for right-handed
28 /// systems. The resulting matrix is also an affine transformation.
29 ///
30 /// The [`Self::transform_point3()`] and [`Self::transform_vector3()`] convenience methods
31 /// are provided for performing affine transformations on 3D vectors and points. These
32 /// multiply 3D inputs as 4D vectors with an implicit `w` value of `1` for points and `0`
33 /// for vectors respectively. These methods assume that `Self` contains a valid affine
34 /// transform.
35 ///
36 /// Perspective projections can be created using methods such as
37 /// [`Self::perspective_lh()`], [`Self::perspective_infinite_lh()`] and
38 /// [`Self::perspective_infinite_reverse_lh()`] for left-handed co-ordinate systems and
39 /// [`Self::perspective_rh()`], [`Self::perspective_infinite_rh()`] and
40 /// [`Self::perspective_infinite_reverse_rh()`] for right-handed co-ordinate systems.
41 ///
42 /// The resulting perspective project can be use to transform 3D vectors as points with
43 /// perspective correction using the [`Self::project_point3()`] convenience method.
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 #[cfg_attr(feature = "cuda", repr(align(16)))]
46 #[repr(C)]
47 pub struct DMat4rust-analyzer cargo glam 0.24.2 f64/dmat4/DMat4# {
48 pub x_axisrust-analyzer cargo glam 0.24.2 f64/dmat4/DMat4#x_axis.: DVec4rust-analyzer cargo glam 0.24.2 f64/dvec4/DVec4#,
49 pub y_axisrust-analyzer cargo glam 0.24.2 f64/dmat4/DMat4#y_axis.: DVec4rust-analyzer cargo glam 0.24.2 f64/dvec4/DVec4#,
50 pub z_axisrust-analyzer cargo glam 0.24.2 f64/dmat4/DMat4#z_axis.: DVec4rust-analyzer cargo glam 0.24.2 f64/dvec4/DVec4#,
51 pub w_axisrust-analyzer cargo glam 0.24.2 f64/dmat4/DMat4#w_axis.: DVec4rust-analyzer cargo glam 0.24.2 f64/dvec4/DVec4#,
52 }
53
54 impl DMat4rust-analyzer cargo glam 0.24.2 f64/dmat4/DMat4# {
55 /// A 4x4 matrix with all elements set to `0.0`.
56 pub const ZEROrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4]ZERO.: Selfrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4] = Selfrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4]::from_colsrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4]from_cols().(DVec4rust-analyzer cargo glam 0.24.2 f64/dvec4/DVec4#::ZEROrust-analyzer cargo glam 0.24.2 f64/dvec4/impl#[DVec4]ZERO., DVec4rust-analyzer cargo glam 0.24.2 f64/dvec4/DVec4#::ZEROrust-analyzer cargo glam 0.24.2 f64/dvec4/impl#[DVec4]ZERO., DVec4rust-analyzer cargo glam 0.24.2 f64/dvec4/DVec4#::ZEROrust-analyzer cargo glam 0.24.2 f64/dvec4/impl#[DVec4]ZERO., DVec4rust-analyzer cargo glam 0.24.2 f64/dvec4/DVec4#::ZEROrust-analyzer cargo glam 0.24.2 f64/dvec4/impl#[DVec4]ZERO.);
57
58 /// A 4x4 identity matrix, where all diagonal elements are `1`, and all off-diagonal elements are `0`.
59 pub const IDENTITYrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4]IDENTITY.: Selfrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4] = Selfrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4]::from_colsrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4]from_cols().(DVec4rust-analyzer cargo glam 0.24.2 f64/dvec4/DVec4#::Xrust-analyzer cargo glam 0.24.2 f64/dvec4/impl#[DVec4]X., DVec4rust-analyzer cargo glam 0.24.2 f64/dvec4/DVec4#::Yrust-analyzer cargo glam 0.24.2 f64/dvec4/impl#[DVec4]Y., DVec4rust-analyzer cargo glam 0.24.2 f64/dvec4/DVec4#::Zrust-analyzer cargo glam 0.24.2 f64/dvec4/impl#[DVec4]Z., DVec4rust-analyzer cargo glam 0.24.2 f64/dvec4/DVec4#::Wrust-analyzer cargo glam 0.24.2 f64/dvec4/impl#[DVec4]W.);
60
61 /// All NAN:s.
62 pub const NANrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4]NAN.: Selfrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4] = Selfrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4]::from_colsrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4]from_cols().(DVec4rust-analyzer cargo glam 0.24.2 f64/dvec4/DVec4#::NANrust-analyzer cargo glam 0.24.2 f64/dvec4/impl#[DVec4]NAN., DVec4rust-analyzer cargo glam 0.24.2 f64/dvec4/DVec4#::NANrust-analyzer cargo glam 0.24.2 f64/dvec4/impl#[DVec4]NAN., DVec4rust-analyzer cargo glam 0.24.2 f64/dvec4/DVec4#::NANrust-analyzer cargo glam 0.24.2 f64/dvec4/impl#[DVec4]NAN., DVec4rust-analyzer cargo glam 0.24.2 f64/dvec4/DVec4#::NANrust-analyzer cargo glam 0.24.2 f64/dvec4/impl#[DVec4]NAN.);
63
64 #[allow(clippy::too_many_arguments)]
65 #[inline(always)]
66 const fn newrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4]new().(
67 m00: f64,
68 m01: f64,
69 m02: f64,
70 m03: f64,
71 m10: f64,
72 m11: f64,
73 m12: f64,
74 m13: f64,
75 m20: f64,
76 m21: f64,
77 m22: f64,
78 m23: f64,
79 m30: f64,
80 m31: f64,
81 m32: f64,
82 m33: f64,
83 ) -> Selfrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4] {
84 Selfrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4] {
85 x_axisrust-analyzer cargo glam 0.24.2 f64/dmat4/DMat4#x_axis.: DVec4rust-analyzer cargo glam 0.24.2 f64/dvec4/DVec4#::newrust-analyzer cargo glam 0.24.2 f64/dvec4/impl#[DVec4]new().(m00, m01, m02, m03),
86 y_axisrust-analyzer cargo glam 0.24.2 f64/dmat4/DMat4#y_axis.: DVec4rust-analyzer cargo glam 0.24.2 f64/dvec4/DVec4#::newrust-analyzer cargo glam 0.24.2 f64/dvec4/impl#[DVec4]new().(m10, m11, m12, m13),
87 z_axisrust-analyzer cargo glam 0.24.2 f64/dmat4/DMat4#z_axis.: DVec4rust-analyzer cargo glam 0.24.2 f64/dvec4/DVec4#::newrust-analyzer cargo glam 0.24.2 f64/dvec4/impl#[DVec4]new().(m20, m21, m22, m23),
88 w_axisrust-analyzer cargo glam 0.24.2 f64/dmat4/DMat4#w_axis.: DVec4rust-analyzer cargo glam 0.24.2 f64/dvec4/DVec4#::newrust-analyzer cargo glam 0.24.2 f64/dvec4/impl#[DVec4]new().(m30, m31, m32, m33),
89 }
90 }
91
92 /// Creates a 4x4 matrix from four column vectors.
93 #[inline(always)]
94 pub const fn from_colsrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4]from_cols().(x_axis: DVec4rust-analyzer cargo glam 0.24.2 f64/dvec4/DVec4#, y_axis: DVec4rust-analyzer cargo glam 0.24.2 f64/dvec4/DVec4#, z_axis: DVec4rust-analyzer cargo glam 0.24.2 f64/dvec4/DVec4#, w_axis: DVec4rust-analyzer cargo glam 0.24.2 f64/dvec4/DVec4#) -> Selfrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4] {
95 Selfrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4] {
96 x_axisrust-analyzer cargo glam 0.24.2 f64/dmat4/DMat4#x_axis.,
97 y_axisrust-analyzer cargo glam 0.24.2 f64/dmat4/DMat4#y_axis.,
98 z_axisrust-analyzer cargo glam 0.24.2 f64/dmat4/DMat4#z_axis.,
99 w_axisrust-analyzer cargo glam 0.24.2 f64/dmat4/DMat4#w_axis.,
100 }
101 }
102
103 /// Creates a 4x4 matrix from a `[f64; 16]` array stored in column major order.
104 /// If your data is stored in row major you will need to `transpose` the returned
105 /// matrix.
106 #[inline]
107 pub const fn from_cols_arrayrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4]from_cols_array().(m: &[f64; 16]) -> Selfrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4] {
108 Selfrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4]::newrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4]new().(
109 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()., m[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/index/Index#index().9]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().10]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().11]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().12]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().13]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/index/Index#index().,
110 m[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/index/Index#index().14]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().15]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/index/Index#index().,
111 )
112 }
113
114 /// Creates a `[f64; 16]` array storing data in column major order.
115 /// If you require data in row major order `transpose` the matrix first.
116 #[inline]
117 pub const fn to_cols_arrayrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4]to_cols_array().(&self) -> [f64; 16] {
118 [
119 self.x_axisrust-analyzer cargo glam 0.24.2 f64/dmat4/DMat4#x_axis..xrust-analyzer cargo glam 0.24.2 f64/dvec4/DVec4#x.,
120 self.x_axisrust-analyzer cargo glam 0.24.2 f64/dmat4/DMat4#x_axis..yrust-analyzer cargo glam 0.24.2 f64/dvec4/DVec4#y.,
121 self.x_axisrust-analyzer cargo glam 0.24.2 f64/dmat4/DMat4#x_axis..zrust-analyzer cargo glam 0.24.2 f64/dvec4/DVec4#z.,
122 self.x_axisrust-analyzer cargo glam 0.24.2 f64/dmat4/DMat4#x_axis..wrust-analyzer cargo glam 0.24.2 f64/dvec4/DVec4#w.,
123 self.y_axisrust-analyzer cargo glam 0.24.2 f64/dmat4/DMat4#y_axis..xrust-analyzer cargo glam 0.24.2 f64/dvec4/DVec4#x.,
124 self.y_axisrust-analyzer cargo glam 0.24.2 f64/dmat4/DMat4#y_axis..yrust-analyzer cargo glam 0.24.2 f64/dvec4/DVec4#y.,
125 self.y_axisrust-analyzer cargo glam 0.24.2 f64/dmat4/DMat4#y_axis..zrust-analyzer cargo glam 0.24.2 f64/dvec4/DVec4#z.,
126 self.y_axisrust-analyzer cargo glam 0.24.2 f64/dmat4/DMat4#y_axis..wrust-analyzer cargo glam 0.24.2 f64/dvec4/DVec4#w.,
127 self.z_axisrust-analyzer cargo glam 0.24.2 f64/dmat4/DMat4#z_axis..xrust-analyzer cargo glam 0.24.2 f64/dvec4/DVec4#x.,
128 self.z_axisrust-analyzer cargo glam 0.24.2 f64/dmat4/DMat4#z_axis..yrust-analyzer cargo glam 0.24.2 f64/dvec4/DVec4#y.,
129 self.z_axisrust-analyzer cargo glam 0.24.2 f64/dmat4/DMat4#z_axis..zrust-analyzer cargo glam 0.24.2 f64/dvec4/DVec4#z.,
130 self.z_axisrust-analyzer cargo glam 0.24.2 f64/dmat4/DMat4#z_axis..wrust-analyzer cargo glam 0.24.2 f64/dvec4/DVec4#w.,
131 self.w_axisrust-analyzer cargo glam 0.24.2 f64/dmat4/DMat4#w_axis..xrust-analyzer cargo glam 0.24.2 f64/dvec4/DVec4#x.,
132 self.w_axisrust-analyzer cargo glam 0.24.2 f64/dmat4/DMat4#w_axis..yrust-analyzer cargo glam 0.24.2 f64/dvec4/DVec4#y.,
133 self.w_axisrust-analyzer cargo glam 0.24.2 f64/dmat4/DMat4#w_axis..zrust-analyzer cargo glam 0.24.2 f64/dvec4/DVec4#z.,
134 self.w_axisrust-analyzer cargo glam 0.24.2 f64/dmat4/DMat4#w_axis..wrust-analyzer cargo glam 0.24.2 f64/dvec4/DVec4#w.,
135 ]
136 }
137
138 /// Creates a 4x4 matrix from a `[[f64; 4]; 4]` 4D array stored in column major order.
139 /// If your data is in row major order you will need to `transpose` the returned
140 /// matrix.
141 #[inline]
142 pub const fn from_cols_array_2drust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4]from_cols_array_2d().(m: &[[f64; 4]; 4]) -> Selfrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4] {
143 Selfrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4]::from_colsrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4]from_cols().(
144 DVec4rust-analyzer cargo glam 0.24.2 f64/dvec4/DVec4#::from_arrayrust-analyzer cargo glam 0.24.2 f64/dvec4/impl#[DVec4]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().),
145 DVec4rust-analyzer cargo glam 0.24.2 f64/dvec4/DVec4#::from_arrayrust-analyzer cargo glam 0.24.2 f64/dvec4/impl#[DVec4]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().),
146 DVec4rust-analyzer cargo glam 0.24.2 f64/dvec4/DVec4#::from_arrayrust-analyzer cargo glam 0.24.2 f64/dvec4/impl#[DVec4]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().),
147 DVec4rust-analyzer cargo glam 0.24.2 f64/dvec4/DVec4#::from_arrayrust-analyzer cargo glam 0.24.2 f64/dvec4/impl#[DVec4]from_array().(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().),
148 )
149 }
150
151 /// Creates a `[[f64; 4]; 4]` 4D array storing data in column major order.
152 /// If you require data in row major order `transpose` the matrix first.
153 #[inline]
154 pub const fn to_cols_array_2drust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4]to_cols_array_2d().(&self) -> [[f64; 4]; 4] {
155 [
156 self.x_axisrust-analyzer cargo glam 0.24.2 f64/dmat4/DMat4#x_axis..to_arrayrust-analyzer cargo glam 0.24.2 f64/dvec4/impl#[DVec4]to_array().(),
157 self.y_axisrust-analyzer cargo glam 0.24.2 f64/dmat4/DMat4#y_axis..to_arrayrust-analyzer cargo glam 0.24.2 f64/dvec4/impl#[DVec4]to_array().(),
158 self.z_axisrust-analyzer cargo glam 0.24.2 f64/dmat4/DMat4#z_axis..to_arrayrust-analyzer cargo glam 0.24.2 f64/dvec4/impl#[DVec4]to_array().(),
159 self.w_axisrust-analyzer cargo glam 0.24.2 f64/dmat4/DMat4#w_axis..to_arrayrust-analyzer cargo glam 0.24.2 f64/dvec4/impl#[DVec4]to_array().(),
160 ]
161 }
162
163 /// Creates a 4x4 matrix with its diagonal set to `diagonal` and all other entries set to 0.
164 #[doc(alias = "scale")]
165 #[inline]
166 pub const fn from_diagonalrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4]from_diagonal().(diagonal: DVec4rust-analyzer cargo glam 0.24.2 f64/dvec4/DVec4#) -> Selfrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4] {
167 Selfrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4]::newrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4]new().(
168 diagonal.xrust-analyzer cargo glam 0.24.2 f64/dvec4/DVec4#x., 0.0, 0.0, 0.0, 0.0, diagonal.yrust-analyzer cargo glam 0.24.2 f64/dvec4/DVec4#y., 0.0, 0.0, 0.0, 0.0, diagonal.zrust-analyzer cargo glam 0.24.2 f64/dvec4/DVec4#z., 0.0, 0.0,
169 0.0, 0.0, diagonal.wrust-analyzer cargo glam 0.24.2 f64/dvec4/DVec4#w.,
170 )
171 }
172
173 #[inline]
174 fn quat_to_axesrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4]quat_to_axes().(rotation: DQuatrust-analyzer cargo glam 0.24.2 f64/dquat/DQuat#) -> (DVec4rust-analyzer cargo glam 0.24.2 f64/dvec4/DVec4#, DVec4rust-analyzer cargo glam 0.24.2 f64/dvec4/DVec4#, DVec4rust-analyzer cargo glam 0.24.2 f64/dvec4/DVec4#) {
175 glam_assertrust-analyzer cargo glam 0.24.2 macros/glam_assert!!(rotation.is_normalized());
176
177 let (x, y, z, w) = rotation.intorust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/impl#[T][`Into<U>`]into().();
178 let x2 = x rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Add<Self>`]add().+rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Add<Self>`]add(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Add<Self>`]add().x;
179 let y2 = y rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Add<Self>`]add().+rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Add<Self>`]add(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Add<Self>`]add().y;
180 let z2 = z rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Add<Self>`]add().+rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Add<Self>`]add(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Add<Self>`]add().z;
181 let xx = x rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().x2;
182 let xy = x rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().y2;
183 let xz = x rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().z2;
184 let yy = y rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().y2;
185 let yz = y rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().z2;
186 let zz = z rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().z2;
187 let wx = w rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().x2;
188 let wy = w rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().y2;
189 let wz = w rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().z2;
190
191 let x_axis = DVec4rust-analyzer cargo glam 0.24.2 f64/dvec4/DVec4#::newrust-analyzer cargo glam 0.24.2 f64/dvec4/impl#[DVec4]new().(1.0 rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Sub<Self>`]sub().-rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Sub<Self>`]sub(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Sub<Self>`]sub().(yy rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Add<Self>`]add().+rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Add<Self>`]add(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Add<Self>`]add().zz), xy rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Add<Self>`]add().+rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Add<Self>`]add(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Add<Self>`]add().wz, xz rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Sub<Self>`]sub().-rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Sub<Self>`]sub(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Sub<Self>`]sub().wy, 0.0);
192 let y_axis = DVec4rust-analyzer cargo glam 0.24.2 f64/dvec4/DVec4#::newrust-analyzer cargo glam 0.24.2 f64/dvec4/impl#[DVec4]new().(xy rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Sub<Self>`]sub().-rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Sub<Self>`]sub(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Sub<Self>`]sub().wz, 1.0 rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Sub<Self>`]sub().-rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Sub<Self>`]sub(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Sub<Self>`]sub().(xx rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Add<Self>`]add().+rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Add<Self>`]add(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Add<Self>`]add().zz), yz rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Add<Self>`]add().+rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Add<Self>`]add(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Add<Self>`]add().wx, 0.0);
193 let z_axis = DVec4rust-analyzer cargo glam 0.24.2 f64/dvec4/DVec4#::newrust-analyzer cargo glam 0.24.2 f64/dvec4/impl#[DVec4]new().(xz rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Add<Self>`]add().+rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Add<Self>`]add(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Add<Self>`]add().wy, yz rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Sub<Self>`]sub().-rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Sub<Self>`]sub(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Sub<Self>`]sub().wx, 1.0 rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Sub<Self>`]sub().-rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Sub<Self>`]sub(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Sub<Self>`]sub().(xx rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Add<Self>`]add().+rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Add<Self>`]add(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Add<Self>`]add().yy), 0.0);
194 (x_axis, y_axis, z_axis)
195 }
196
197 /// Creates an affine transformation matrix from the given 3D `scale`, `rotation` and
198 /// `translation`.
199 ///
200 /// The resulting matrix can be used to transform 3D points and vectors. See
201 /// [`Self::transform_point3()`] and [`Self::transform_vector3()`].
202 ///
203 /// # Panics
204 ///
205 /// Will panic if `rotation` is not normalized when `glam_assert` is enabled.
206 #[inline]
207 pub fn from_scale_rotation_translationrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4]from_scale_rotation_translation().(
208 scale: DVec3rust-analyzer cargo glam 0.24.2 f64/dvec3/DVec3#,
209 rotation: DQuatrust-analyzer cargo glam 0.24.2 f64/dquat/DQuat#,
210 translation: DVec3rust-analyzer cargo glam 0.24.2 f64/dvec3/DVec3#,
211 ) -> Selfrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4] {
212 let (x_axis, y_axis, z_axis) = Selfrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4]::quat_to_axesrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4]quat_to_axes().(rotation);
213 Selfrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4]::from_colsrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4]from_cols().(
214 x_axis.mulrust-analyzer cargo glam 0.24.2 f64/dvec4/impl#[DVec4][`Mul<f64>`]mul().(scale.xrust-analyzer cargo glam 0.24.2 f64/dvec3/DVec3#x.),
215 y_axis.mulrust-analyzer cargo glam 0.24.2 f64/dvec4/impl#[DVec4][`Mul<f64>`]mul().(scale.yrust-analyzer cargo glam 0.24.2 f64/dvec3/DVec3#y.),
216 z_axis.mulrust-analyzer cargo glam 0.24.2 f64/dvec4/impl#[DVec4][`Mul<f64>`]mul().(scale.zrust-analyzer cargo glam 0.24.2 f64/dvec3/DVec3#z.),
217 DVec4rust-analyzer cargo glam 0.24.2 f64/dvec4/DVec4#::fromrust-analyzer cargo glam 0.24.2 f64/dvec4/impl#[DVec4][`From<(DVec3, f64)>`]from().((translation, 1.0)),
218 )
219 }
220
221 /// Creates an affine transformation matrix from the given 3D `translation`.
222 ///
223 /// The resulting matrix can be used to transform 3D points and vectors. See
224 /// [`Self::transform_point3()`] and [`Self::transform_vector3()`].
225 ///
226 /// # Panics
227 ///
228 /// Will panic if `rotation` is not normalized when `glam_assert` is enabled.
229 #[inline]
230 pub fn from_rotation_translationrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4]from_rotation_translation().(rotation: DQuatrust-analyzer cargo glam 0.24.2 f64/dquat/DQuat#, translation: DVec3rust-analyzer cargo glam 0.24.2 f64/dvec3/DVec3#) -> Selfrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4] {
231 let (x_axis, y_axis, z_axis) = Selfrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4]::quat_to_axesrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4]quat_to_axes().(rotation);
232 Selfrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4]::from_colsrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4]from_cols().(x_axis, y_axis, z_axis, DVec4rust-analyzer cargo glam 0.24.2 f64/dvec4/DVec4#::fromrust-analyzer cargo glam 0.24.2 f64/dvec4/impl#[DVec4][`From<(DVec3, f64)>`]from().((translation, 1.0)))
233 }
234
235 /// Extracts `scale`, `rotation` and `translation` from `self`. The input matrix is
236 /// expected to be a 3D affine transformation matrix otherwise the output will be invalid.
237 ///
238 /// # Panics
239 ///
240 /// Will panic if the determinant of `self` is zero or if the resulting scale vector
241 /// contains any zero elements when `glam_assert` is enabled.
242 #[inline]
243 pub fn to_scale_rotation_translationrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4]to_scale_rotation_translation().(&self) -> (DVec3rust-analyzer cargo glam 0.24.2 f64/dvec3/DVec3#, DQuatrust-analyzer cargo glam 0.24.2 f64/dquat/DQuat#, DVec3rust-analyzer cargo glam 0.24.2 f64/dvec3/DVec3#) {
244 let det = self.determinantrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4]determinant().();
245 glam_assertrust-analyzer cargo glam 0.24.2 macros/glam_assert!!(det != 0.0);
246
247 let scale = DVec3rust-analyzer cargo glam 0.24.2 f64/dvec3/DVec3#::newrust-analyzer cargo glam 0.24.2 f64/dvec3/impl#[DVec3]new().(
248 self.x_axisrust-analyzer cargo glam 0.24.2 f64/dmat4/DMat4#x_axis..lengthrust-analyzer cargo glam 0.24.2 f64/dvec4/impl#[DVec4]length().() rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().mathrust-analyzer cargo glam 0.24.2 f64/math/::signumrust-analyzer cargo glam 0.24.2 f64/math/std_math/signum().(det),
249 self.y_axisrust-analyzer cargo glam 0.24.2 f64/dmat4/DMat4#y_axis..lengthrust-analyzer cargo glam 0.24.2 f64/dvec4/impl#[DVec4]length().(),
250 self.z_axisrust-analyzer cargo glam 0.24.2 f64/dmat4/DMat4#z_axis..lengthrust-analyzer cargo glam 0.24.2 f64/dvec4/impl#[DVec4]length().(),
251 );
252
253 glam_assertrust-analyzer cargo glam 0.24.2 macros/glam_assert!!(scale.cmpne(DVec3::ZERO).all());
254
255 let inv_scale = scale.reciprust-analyzer cargo glam 0.24.2 f64/dvec3/impl#[DVec3]recip().();
256
257 let rotation = DQuatrust-analyzer cargo glam 0.24.2 f64/dquat/DQuat#::from_rotation_axesrust-analyzer cargo glam 0.24.2 f64/dquat/impl#[DQuat]from_rotation_axes().(
258 self.x_axisrust-analyzer cargo glam 0.24.2 f64/dmat4/DMat4#x_axis..mulrust-analyzer cargo glam 0.24.2 f64/dvec4/impl#[DVec4][`Mul<f64>`]mul().(inv_scale.xrust-analyzer cargo glam 0.24.2 f64/dvec3/DVec3#x.).xyzrust-analyzer cargo glam 0.24.2 swizzles/dvec4_impl/impl#[DVec4][Vec4Swizzles]xyz().(),
259 self.y_axisrust-analyzer cargo glam 0.24.2 f64/dmat4/DMat4#y_axis..mulrust-analyzer cargo glam 0.24.2 f64/dvec4/impl#[DVec4][`Mul<f64>`]mul().(inv_scale.yrust-analyzer cargo glam 0.24.2 f64/dvec3/DVec3#y.).xyzrust-analyzer cargo glam 0.24.2 swizzles/dvec4_impl/impl#[DVec4][Vec4Swizzles]xyz().(),
260 self.z_axisrust-analyzer cargo glam 0.24.2 f64/dmat4/DMat4#z_axis..mulrust-analyzer cargo glam 0.24.2 f64/dvec4/impl#[DVec4][`Mul<f64>`]mul().(inv_scale.zrust-analyzer cargo glam 0.24.2 f64/dvec3/DVec3#z.).xyzrust-analyzer cargo glam 0.24.2 swizzles/dvec4_impl/impl#[DVec4][Vec4Swizzles]xyz().(),
261 );
262
263 let translation = self.w_axisrust-analyzer cargo glam 0.24.2 f64/dmat4/DMat4#w_axis..xyzrust-analyzer cargo glam 0.24.2 swizzles/dvec4_impl/impl#[DVec4][Vec4Swizzles]xyz().();
264
265 (scale, rotation, translation)
266 }
267
268 /// Creates an affine transformation matrix from the given `rotation` quaternion.
269 ///
270 /// The resulting matrix can be used to transform 3D points and vectors. See
271 /// [`Self::transform_point3()`] and [`Self::transform_vector3()`].
272 ///
273 /// # Panics
274 ///
275 /// Will panic if `rotation` is not normalized when `glam_assert` is enabled.
276 #[inline]
277 pub fn from_quatrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4]from_quat().(rotation: DQuatrust-analyzer cargo glam 0.24.2 f64/dquat/DQuat#) -> Selfrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4] {
278 let (x_axis, y_axis, z_axis) = Selfrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4]::quat_to_axesrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4]quat_to_axes().(rotation);
279 Selfrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4]::from_colsrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4]from_cols().(x_axis, y_axis, z_axis, DVec4rust-analyzer cargo glam 0.24.2 f64/dvec4/DVec4#::Wrust-analyzer cargo glam 0.24.2 f64/dvec4/impl#[DVec4]W.)
280 }
281
282 /// Creates an affine transformation matrix from the given 3x3 linear transformation
283 /// matrix.
284 ///
285 /// The resulting matrix can be used to transform 3D points and vectors. See
286 /// [`Self::transform_point3()`] and [`Self::transform_vector3()`].
287 #[inline]
288 pub fn from_mat3rust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4]from_mat3().(m: DMat3rust-analyzer cargo glam 0.24.2 f64/dmat3/DMat3#) -> Selfrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4] {
289 Selfrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4]::from_colsrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4]from_cols().(
290 DVec4rust-analyzer cargo glam 0.24.2 f64/dvec4/DVec4#::fromrust-analyzer cargo glam 0.24.2 f64/dvec4/impl#[DVec4][`From<(DVec3, f64)>`]from().((m.x_axisrust-analyzer cargo glam 0.24.2 f64/dmat3/DMat3#x_axis., 0.0)),
291 DVec4rust-analyzer cargo glam 0.24.2 f64/dvec4/DVec4#::fromrust-analyzer cargo glam 0.24.2 f64/dvec4/impl#[DVec4][`From<(DVec3, f64)>`]from().((m.y_axisrust-analyzer cargo glam 0.24.2 f64/dmat3/DMat3#y_axis., 0.0)),
292 DVec4rust-analyzer cargo glam 0.24.2 f64/dvec4/DVec4#::fromrust-analyzer cargo glam 0.24.2 f64/dvec4/impl#[DVec4][`From<(DVec3, f64)>`]from().((m.z_axisrust-analyzer cargo glam 0.24.2 f64/dmat3/DMat3#z_axis., 0.0)),
293 DVec4rust-analyzer cargo glam 0.24.2 f64/dvec4/DVec4#::Wrust-analyzer cargo glam 0.24.2 f64/dvec4/impl#[DVec4]W.,
294 )
295 }
296
297 /// Creates an affine transformation matrix from the given 3D `translation`.
298 ///
299 /// The resulting matrix can be used to transform 3D points and vectors. See
300 /// [`Self::transform_point3()`] and [`Self::transform_vector3()`].
301 #[inline]
302 pub fn from_translationrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4]from_translation().(translation: DVec3rust-analyzer cargo glam 0.24.2 f64/dvec3/DVec3#) -> Selfrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4] {
303 Selfrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4]::from_colsrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4]from_cols().(
304 DVec4rust-analyzer cargo glam 0.24.2 f64/dvec4/DVec4#::Xrust-analyzer cargo glam 0.24.2 f64/dvec4/impl#[DVec4]X.,
305 DVec4rust-analyzer cargo glam 0.24.2 f64/dvec4/DVec4#::Yrust-analyzer cargo glam 0.24.2 f64/dvec4/impl#[DVec4]Y.,
306 DVec4rust-analyzer cargo glam 0.24.2 f64/dvec4/DVec4#::Zrust-analyzer cargo glam 0.24.2 f64/dvec4/impl#[DVec4]Z.,
307 DVec4rust-analyzer cargo glam 0.24.2 f64/dvec4/DVec4#::newrust-analyzer cargo glam 0.24.2 f64/dvec4/impl#[DVec4]new().(translation.xrust-analyzer cargo glam 0.24.2 f64/dvec3/DVec3#x., translation.yrust-analyzer cargo glam 0.24.2 f64/dvec3/DVec3#y., translation.zrust-analyzer cargo glam 0.24.2 f64/dvec3/DVec3#z., 1.0),
308 )
309 }
310
311 /// Creates an affine transformation matrix containing a 3D rotation around a normalized
312 /// rotation `axis` of `angle` (in radians).
313 ///
314 /// The resulting matrix can be used to transform 3D points and vectors. See
315 /// [`Self::transform_point3()`] and [`Self::transform_vector3()`].
316 ///
317 /// # Panics
318 ///
319 /// Will panic if `axis` is not normalized when `glam_assert` is enabled.
320 #[inline]
321 pub fn from_axis_anglerust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4]from_axis_angle().(axis: DVec3rust-analyzer cargo glam 0.24.2 f64/dvec3/DVec3#, angle: f64) -> Selfrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4] {
322 glam_assertrust-analyzer cargo glam 0.24.2 macros/glam_assert!!(axis.is_normalized());
323
324 let (sin, cos) = mathrust-analyzer cargo glam 0.24.2 f64/math/::sin_cosrust-analyzer cargo glam 0.24.2 f64/math/std_math/sin_cos().(angle);
325 let axis_sin = axis.mulrust-analyzer cargo glam 0.24.2 f64/dvec3/impl#[DVec3][`Mul<f64>`]mul().(sin);
326 let axis_sq = axis.mulrust-analyzer cargo glam 0.24.2 f64/dvec3/impl#[DVec3][`Mul<Self>`]mul().(axis);
327 let omc = 1.0 rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Sub<Self>`]sub().-rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Sub<Self>`]sub(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Sub<Self>`]sub().cos;
328 let xyomc = axis.xrust-analyzer cargo glam 0.24.2 f64/dvec3/DVec3#x. rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().axis.yrust-analyzer cargo glam 0.24.2 f64/dvec3/DVec3#y. rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().omc;
329 let xzomc = axis.xrust-analyzer cargo glam 0.24.2 f64/dvec3/DVec3#x. rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().axis.zrust-analyzer cargo glam 0.24.2 f64/dvec3/DVec3#z. rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().omc;
330 let yzomc = axis.yrust-analyzer cargo glam 0.24.2 f64/dvec3/DVec3#y. rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().axis.zrust-analyzer cargo glam 0.24.2 f64/dvec3/DVec3#z. rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().omc;
331 Selfrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4]::from_colsrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4]from_cols().(
332 DVec4rust-analyzer cargo glam 0.24.2 f64/dvec4/DVec4#::newrust-analyzer cargo glam 0.24.2 f64/dvec4/impl#[DVec4]new().(
333 axis_sq.xrust-analyzer cargo glam 0.24.2 f64/dvec3/DVec3#x. rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().omc rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Add<Self>`]add().+rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Add<Self>`]add(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Add<Self>`]add().cos,
334 xyomc rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Add<Self>`]add().+rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Add<Self>`]add(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Add<Self>`]add().axis_sin.zrust-analyzer cargo glam 0.24.2 f64/dvec3/DVec3#z.,
335 xzomc rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Sub<Self>`]sub().-rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Sub<Self>`]sub(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Sub<Self>`]sub().axis_sin.yrust-analyzer cargo glam 0.24.2 f64/dvec3/DVec3#y.,
336 0.0,
337 ),
338 DVec4rust-analyzer cargo glam 0.24.2 f64/dvec4/DVec4#::newrust-analyzer cargo glam 0.24.2 f64/dvec4/impl#[DVec4]new().(
339 xyomc rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Sub<Self>`]sub().-rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Sub<Self>`]sub(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Sub<Self>`]sub().axis_sin.zrust-analyzer cargo glam 0.24.2 f64/dvec3/DVec3#z.,
340 axis_sq.yrust-analyzer cargo glam 0.24.2 f64/dvec3/DVec3#y. rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().omc rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Add<Self>`]add().+rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Add<Self>`]add(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Add<Self>`]add().cos,
341 yzomc rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Add<Self>`]add().+rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Add<Self>`]add(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Add<Self>`]add().axis_sin.xrust-analyzer cargo glam 0.24.2 f64/dvec3/DVec3#x.,
342 0.0,
343 ),
344 DVec4rust-analyzer cargo glam 0.24.2 f64/dvec4/DVec4#::newrust-analyzer cargo glam 0.24.2 f64/dvec4/impl#[DVec4]new().(
345 xzomc rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Add<Self>`]add().+rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Add<Self>`]add(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Add<Self>`]add().axis_sin.yrust-analyzer cargo glam 0.24.2 f64/dvec3/DVec3#y.,
346 yzomc rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Sub<Self>`]sub().-rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Sub<Self>`]sub(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Sub<Self>`]sub().axis_sin.xrust-analyzer cargo glam 0.24.2 f64/dvec3/DVec3#x.,
347 axis_sq.zrust-analyzer cargo glam 0.24.2 f64/dvec3/DVec3#z. rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().omc rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Add<Self>`]add().+rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Add<Self>`]add(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Add<Self>`]add().cos,
348 0.0,
349 ),
350 DVec4rust-analyzer cargo glam 0.24.2 f64/dvec4/DVec4#::Wrust-analyzer cargo glam 0.24.2 f64/dvec4/impl#[DVec4]W.,
351 )
352 }
353
354 #[inline]
355 /// Creates a affine transformation matrix containing a rotation from the given euler
356 /// rotation sequence and angles (in radians).
357 ///
358 /// The resulting matrix can be used to transform 3D points and vectors. See
359 /// [`Self::transform_point3()`] and [`Self::transform_vector3()`].
360 pub fn from_eulerrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4]from_euler().(order: EulerRotrust-analyzer cargo glam 0.24.2 euler/EulerRot#, a: f64, b: f64, c: f64) -> Selfrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4] {
361 let quat = DQuatrust-analyzer cargo glam 0.24.2 f64/dquat/DQuat#::from_eulerrust-analyzer cargo glam 0.24.2 f64/dquat/impl#[DQuat]from_euler().(order, a, b, c);
362 Selfrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4]::from_quatrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4]from_quat().(quat)
363 }
364
365 /// Creates an affine transformation matrix containing a 3D rotation around the x axis of
366 /// `angle` (in radians).
367 ///
368 /// The resulting matrix can be used to transform 3D points and vectors. See
369 /// [`Self::transform_point3()`] and [`Self::transform_vector3()`].
370 #[inline]
371 pub fn from_rotation_xrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4]from_rotation_x().(angle: f64) -> Selfrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4] {
372 let (sina, cosa) = mathrust-analyzer cargo glam 0.24.2 f64/math/::sin_cosrust-analyzer cargo glam 0.24.2 f64/math/std_math/sin_cos().(angle);
373 Selfrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4]::from_colsrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4]from_cols().(
374 DVec4rust-analyzer cargo glam 0.24.2 f64/dvec4/DVec4#::Xrust-analyzer cargo glam 0.24.2 f64/dvec4/impl#[DVec4]X.,
375 DVec4rust-analyzer cargo glam 0.24.2 f64/dvec4/DVec4#::newrust-analyzer cargo glam 0.24.2 f64/dvec4/impl#[DVec4]new().(0.0, cosa, sina, 0.0),
376 DVec4rust-analyzer cargo glam 0.24.2 f64/dvec4/DVec4#::newrust-analyzer cargo glam 0.24.2 f64/dvec4/impl#[DVec4]new().(0.0, -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][Neg]neg().sina, cosa, 0.0),
377 DVec4rust-analyzer cargo glam 0.24.2 f64/dvec4/DVec4#::Wrust-analyzer cargo glam 0.24.2 f64/dvec4/impl#[DVec4]W.,
378 )
379 }
380
381 /// Creates an affine transformation matrix containing a 3D rotation around the y axis of
382 /// `angle` (in radians).
383 ///
384 /// The resulting matrix can be used to transform 3D points and vectors. See
385 /// [`Self::transform_point3()`] and [`Self::transform_vector3()`].
386 #[inline]
387 pub fn from_rotation_yrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4]from_rotation_y().(angle: f64) -> Selfrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4] {
388 let (sina, cosa) = mathrust-analyzer cargo glam 0.24.2 f64/math/::sin_cosrust-analyzer cargo glam 0.24.2 f64/math/std_math/sin_cos().(angle);
389 Selfrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4]::from_colsrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4]from_cols().(
390 DVec4rust-analyzer cargo glam 0.24.2 f64/dvec4/DVec4#::newrust-analyzer cargo glam 0.24.2 f64/dvec4/impl#[DVec4]new().(cosa, 0.0, -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][Neg]neg().sina, 0.0),
391 DVec4rust-analyzer cargo glam 0.24.2 f64/dvec4/DVec4#::Yrust-analyzer cargo glam 0.24.2 f64/dvec4/impl#[DVec4]Y.,
392 DVec4rust-analyzer cargo glam 0.24.2 f64/dvec4/DVec4#::newrust-analyzer cargo glam 0.24.2 f64/dvec4/impl#[DVec4]new().(sina, 0.0, cosa, 0.0),
393 DVec4rust-analyzer cargo glam 0.24.2 f64/dvec4/DVec4#::Wrust-analyzer cargo glam 0.24.2 f64/dvec4/impl#[DVec4]W.,
394 )
395 }
396
397 /// Creates an affine transformation matrix containing a 3D rotation around the z axis of
398 /// `angle` (in radians).
399 ///
400 /// The resulting matrix can be used to transform 3D points and vectors. See
401 /// [`Self::transform_point3()`] and [`Self::transform_vector3()`].
402 #[inline]
403 pub fn from_rotation_zrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4]from_rotation_z().(angle: f64) -> Selfrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4] {
404 let (sina, cosa) = mathrust-analyzer cargo glam 0.24.2 f64/math/::sin_cosrust-analyzer cargo glam 0.24.2 f64/math/std_math/sin_cos().(angle);
405 Selfrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4]::from_colsrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4]from_cols().(
406 DVec4rust-analyzer cargo glam 0.24.2 f64/dvec4/DVec4#::newrust-analyzer cargo glam 0.24.2 f64/dvec4/impl#[DVec4]new().(cosa, sina, 0.0, 0.0),
407 DVec4rust-analyzer cargo glam 0.24.2 f64/dvec4/DVec4#::newrust-analyzer cargo glam 0.24.2 f64/dvec4/impl#[DVec4]new().(-rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][Neg]neg().sina, cosa, 0.0, 0.0),
408 DVec4rust-analyzer cargo glam 0.24.2 f64/dvec4/DVec4#::Zrust-analyzer cargo glam 0.24.2 f64/dvec4/impl#[DVec4]Z.,
409 DVec4rust-analyzer cargo glam 0.24.2 f64/dvec4/DVec4#::Wrust-analyzer cargo glam 0.24.2 f64/dvec4/impl#[DVec4]W.,
410 )
411 }
412
413 /// Creates an affine transformation matrix containing the given 3D non-uniform `scale`.
414 ///
415 /// The resulting matrix can be used to transform 3D points and vectors. See
416 /// [`Self::transform_point3()`] and [`Self::transform_vector3()`].
417 ///
418 /// # Panics
419 ///
420 /// Will panic if all elements of `scale` are zero when `glam_assert` is enabled.
421 #[inline]
422 pub fn from_scalerust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4]from_scale().(scale: DVec3rust-analyzer cargo glam 0.24.2 f64/dvec3/DVec3#) -> Selfrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4] {
423 // Do not panic as long as any component is non-zero
424 glam_assertrust-analyzer cargo glam 0.24.2 macros/glam_assert!!(scale.cmpne(DVec3::ZERO).any());
425
426 Selfrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4]::from_colsrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4]from_cols().(
427 DVec4rust-analyzer cargo glam 0.24.2 f64/dvec4/DVec4#::newrust-analyzer cargo glam 0.24.2 f64/dvec4/impl#[DVec4]new().(scale.xrust-analyzer cargo glam 0.24.2 f64/dvec3/DVec3#x., 0.0, 0.0, 0.0),
428 DVec4rust-analyzer cargo glam 0.24.2 f64/dvec4/DVec4#::newrust-analyzer cargo glam 0.24.2 f64/dvec4/impl#[DVec4]new().(0.0, scale.yrust-analyzer cargo glam 0.24.2 f64/dvec3/DVec3#y., 0.0, 0.0),
429 DVec4rust-analyzer cargo glam 0.24.2 f64/dvec4/DVec4#::newrust-analyzer cargo glam 0.24.2 f64/dvec4/impl#[DVec4]new().(0.0, 0.0, scale.zrust-analyzer cargo glam 0.24.2 f64/dvec3/DVec3#z., 0.0),
430 DVec4rust-analyzer cargo glam 0.24.2 f64/dvec4/DVec4#::Wrust-analyzer cargo glam 0.24.2 f64/dvec4/impl#[DVec4]W.,
431 )
432 }
433
434 /// Creates a 4x4 matrix from the first 16 values in `slice`.
435 ///
436 /// # Panics
437 ///
438 /// Panics if `slice` is less than 16 elements long.
439 #[inline]
440 pub const fn from_cols_slicerust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4]from_cols_slice().(slice: &[f64]) -> Selfrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4] {
441 Selfrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4]::newrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4]new().(
442 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().,
443 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()., slice[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/index/Index#index().9]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().10]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().11]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().12]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().13]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().14]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().15]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/index/Index#index().,
444 )
445 }
446
447 /// Writes the columns of `self` to the first 16 elements in `slice`.
448 ///
449 /// # Panics
450 ///
451 /// Panics if `slice` is less than 16 elements long.
452 #[inline]
453 pub fn write_cols_to_slicerust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4]write_cols_to_slice().(self, slice: &mut [f64]) {
454 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 f64/dmat4/DMat4#x_axis..xrust-analyzer cargo glam 0.24.2 f64/dvec4/DVec4#x.;
455 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 f64/dmat4/DMat4#x_axis..yrust-analyzer cargo glam 0.24.2 f64/dvec4/DVec4#y.;
456 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 f64/dmat4/DMat4#x_axis..zrust-analyzer cargo glam 0.24.2 f64/dvec4/DVec4#z.;
457 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.x_axisrust-analyzer cargo glam 0.24.2 f64/dmat4/DMat4#x_axis..wrust-analyzer cargo glam 0.24.2 f64/dvec4/DVec4#w.;
458 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 f64/dmat4/DMat4#y_axis..xrust-analyzer cargo glam 0.24.2 f64/dvec4/DVec4#x.;
459 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 f64/dmat4/DMat4#y_axis..yrust-analyzer cargo glam 0.24.2 f64/dvec4/DVec4#y.;
460 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.y_axisrust-analyzer cargo glam 0.24.2 f64/dmat4/DMat4#y_axis..zrust-analyzer cargo glam 0.24.2 f64/dvec4/DVec4#z.;
461 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.y_axisrust-analyzer cargo glam 0.24.2 f64/dmat4/DMat4#y_axis..wrust-analyzer cargo glam 0.24.2 f64/dvec4/DVec4#w.;
462 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 f64/dmat4/DMat4#z_axis..xrust-analyzer cargo glam 0.24.2 f64/dvec4/DVec4#x.;
463 slice[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/index/IndexMut#index_mut().9]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 f64/dmat4/DMat4#z_axis..yrust-analyzer cargo glam 0.24.2 f64/dvec4/DVec4#y.;
464 slice[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/index/IndexMut#index_mut().10]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 f64/dmat4/DMat4#z_axis..zrust-analyzer cargo glam 0.24.2 f64/dvec4/DVec4#z.;
465 slice[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/index/IndexMut#index_mut().11]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 f64/dmat4/DMat4#z_axis..wrust-analyzer cargo glam 0.24.2 f64/dvec4/DVec4#w.;
466 slice[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/index/IndexMut#index_mut().12]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/index/IndexMut#index_mut(). = self.w_axisrust-analyzer cargo glam 0.24.2 f64/dmat4/DMat4#w_axis..xrust-analyzer cargo glam 0.24.2 f64/dvec4/DVec4#x.;
467 slice[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/index/IndexMut#index_mut().13]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/index/IndexMut#index_mut(). = self.w_axisrust-analyzer cargo glam 0.24.2 f64/dmat4/DMat4#w_axis..yrust-analyzer cargo glam 0.24.2 f64/dvec4/DVec4#y.;
468 slice[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/index/IndexMut#index_mut().14]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/index/IndexMut#index_mut(). = self.w_axisrust-analyzer cargo glam 0.24.2 f64/dmat4/DMat4#w_axis..zrust-analyzer cargo glam 0.24.2 f64/dvec4/DVec4#z.;
469 slice[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/index/IndexMut#index_mut().15]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/index/IndexMut#index_mut(). = self.w_axisrust-analyzer cargo glam 0.24.2 f64/dmat4/DMat4#w_axis..wrust-analyzer cargo glam 0.24.2 f64/dvec4/DVec4#w.;
470 }
471
472 /// Returns the matrix column for the given `index`.
473 ///
474 /// # Panics
475 ///
476 /// Panics if `index` is greater than 3.
477 #[inline]
478 pub fn colrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4]col().(&self, index: usize) -> DVec4rust-analyzer cargo glam 0.24.2 f64/dvec4/DVec4# {
479 match index {
480 0 => self.x_axisrust-analyzer cargo glam 0.24.2 f64/dmat4/DMat4#x_axis.,
481 1 => self.y_axisrust-analyzer cargo glam 0.24.2 f64/dmat4/DMat4#y_axis.,
482 2 => self.z_axisrust-analyzer cargo glam 0.24.2 f64/dmat4/DMat4#z_axis.,
483 3 => self.w_axisrust-analyzer cargo glam 0.24.2 f64/dmat4/DMat4#w_axis.,
484 _ => panicrust-analyzer cargo std https://github.com/rust-lang/rust/library/std macros/panic!!("index out of bounds"),
485 }
486 }
487
488 /// Returns a mutable reference to the matrix column for the given `index`.
489 ///
490 /// # Panics
491 ///
492 /// Panics if `index` is greater than 3.
493 #[inline]
494 pub fn col_mutrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4]col_mut().(&mut self, index: usize) -> &mut DVec4rust-analyzer cargo glam 0.24.2 f64/dvec4/DVec4# {
495 match index {
496 0 => &mut self.x_axisrust-analyzer cargo glam 0.24.2 f64/dmat4/DMat4#x_axis.,
497 1 => &mut self.y_axisrust-analyzer cargo glam 0.24.2 f64/dmat4/DMat4#y_axis.,
498 2 => &mut self.z_axisrust-analyzer cargo glam 0.24.2 f64/dmat4/DMat4#z_axis.,
499 3 => &mut self.w_axisrust-analyzer cargo glam 0.24.2 f64/dmat4/DMat4#w_axis.,
500 _ => panicrust-analyzer cargo std https://github.com/rust-lang/rust/library/std macros/panic!!("index out of bounds"),
501 }
502 }
503
504 /// Returns the matrix row for the given `index`.
505 ///
506 /// # Panics
507 ///
508 /// Panics if `index` is greater than 3.
509 #[inline]
510 pub fn rowrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4]row().(&self, index: usize) -> DVec4rust-analyzer cargo glam 0.24.2 f64/dvec4/DVec4# {
511 match index {
512 0 => DVec4rust-analyzer cargo glam 0.24.2 f64/dvec4/DVec4#::newrust-analyzer cargo glam 0.24.2 f64/dvec4/impl#[DVec4]new().(self.x_axisrust-analyzer cargo glam 0.24.2 f64/dmat4/DMat4#x_axis..xrust-analyzer cargo glam 0.24.2 f64/dvec4/DVec4#x., self.y_axisrust-analyzer cargo glam 0.24.2 f64/dmat4/DMat4#y_axis..xrust-analyzer cargo glam 0.24.2 f64/dvec4/DVec4#x., self.z_axisrust-analyzer cargo glam 0.24.2 f64/dmat4/DMat4#z_axis..xrust-analyzer cargo glam 0.24.2 f64/dvec4/DVec4#x., self.w_axisrust-analyzer cargo glam 0.24.2 f64/dmat4/DMat4#w_axis..xrust-analyzer cargo glam 0.24.2 f64/dvec4/DVec4#x.),
513 1 => DVec4rust-analyzer cargo glam 0.24.2 f64/dvec4/DVec4#::newrust-analyzer cargo glam 0.24.2 f64/dvec4/impl#[DVec4]new().(self.x_axisrust-analyzer cargo glam 0.24.2 f64/dmat4/DMat4#x_axis..yrust-analyzer cargo glam 0.24.2 f64/dvec4/DVec4#y., self.y_axisrust-analyzer cargo glam 0.24.2 f64/dmat4/DMat4#y_axis..yrust-analyzer cargo glam 0.24.2 f64/dvec4/DVec4#y., self.z_axisrust-analyzer cargo glam 0.24.2 f64/dmat4/DMat4#z_axis..yrust-analyzer cargo glam 0.24.2 f64/dvec4/DVec4#y., self.w_axisrust-analyzer cargo glam 0.24.2 f64/dmat4/DMat4#w_axis..yrust-analyzer cargo glam 0.24.2 f64/dvec4/DVec4#y.),
514 2 => DVec4rust-analyzer cargo glam 0.24.2 f64/dvec4/DVec4#::newrust-analyzer cargo glam 0.24.2 f64/dvec4/impl#[DVec4]new().(self.x_axisrust-analyzer cargo glam 0.24.2 f64/dmat4/DMat4#x_axis..zrust-analyzer cargo glam 0.24.2 f64/dvec4/DVec4#z., self.y_axisrust-analyzer cargo glam 0.24.2 f64/dmat4/DMat4#y_axis..zrust-analyzer cargo glam 0.24.2 f64/dvec4/DVec4#z., self.z_axisrust-analyzer cargo glam 0.24.2 f64/dmat4/DMat4#z_axis..zrust-analyzer cargo glam 0.24.2 f64/dvec4/DVec4#z., self.w_axisrust-analyzer cargo glam 0.24.2 f64/dmat4/DMat4#w_axis..zrust-analyzer cargo glam 0.24.2 f64/dvec4/DVec4#z.),
515 3 => DVec4rust-analyzer cargo glam 0.24.2 f64/dvec4/DVec4#::newrust-analyzer cargo glam 0.24.2 f64/dvec4/impl#[DVec4]new().(self.x_axisrust-analyzer cargo glam 0.24.2 f64/dmat4/DMat4#x_axis..wrust-analyzer cargo glam 0.24.2 f64/dvec4/DVec4#w., self.y_axisrust-analyzer cargo glam 0.24.2 f64/dmat4/DMat4#y_axis..wrust-analyzer cargo glam 0.24.2 f64/dvec4/DVec4#w., self.z_axisrust-analyzer cargo glam 0.24.2 f64/dmat4/DMat4#z_axis..wrust-analyzer cargo glam 0.24.2 f64/dvec4/DVec4#w., self.w_axisrust-analyzer cargo glam 0.24.2 f64/dmat4/DMat4#w_axis..wrust-analyzer cargo glam 0.24.2 f64/dvec4/DVec4#w.),
516 _ => panicrust-analyzer cargo std https://github.com/rust-lang/rust/library/std macros/panic!!("index out of bounds"),
517 }
518 }
519
520 /// Returns `true` if, and only if, all elements are finite.
521 /// If any element is either `NaN`, positive or negative infinity, this will return `false`.
522 #[inline]
523 pub fn is_finiterust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4]is_finite().(&self) -> bool {
524 self.x_axisrust-analyzer cargo glam 0.24.2 f64/dmat4/DMat4#x_axis..is_finiterust-analyzer cargo glam 0.24.2 f64/dvec4/impl#[DVec4]is_finite().()
525 && self.y_axisrust-analyzer cargo glam 0.24.2 f64/dmat4/DMat4#y_axis..is_finiterust-analyzer cargo glam 0.24.2 f64/dvec4/impl#[DVec4]is_finite().()
526 && self.z_axisrust-analyzer cargo glam 0.24.2 f64/dmat4/DMat4#z_axis..is_finiterust-analyzer cargo glam 0.24.2 f64/dvec4/impl#[DVec4]is_finite().()
527 && self.w_axisrust-analyzer cargo glam 0.24.2 f64/dmat4/DMat4#w_axis..is_finiterust-analyzer cargo glam 0.24.2 f64/dvec4/impl#[DVec4]is_finite().()
528 }
529
530 /// Returns `true` if any elements are `NaN`.
531 #[inline]
532 pub fn is_nanrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4]is_nan().(&self) -> bool {
533 self.x_axisrust-analyzer cargo glam 0.24.2 f64/dmat4/DMat4#x_axis..is_nanrust-analyzer cargo glam 0.24.2 f64/dvec4/impl#[DVec4]is_nan().() || self.y_axisrust-analyzer cargo glam 0.24.2 f64/dmat4/DMat4#y_axis..is_nanrust-analyzer cargo glam 0.24.2 f64/dvec4/impl#[DVec4]is_nan().() || self.z_axisrust-analyzer cargo glam 0.24.2 f64/dmat4/DMat4#z_axis..is_nanrust-analyzer cargo glam 0.24.2 f64/dvec4/impl#[DVec4]is_nan().() || self.w_axisrust-analyzer cargo glam 0.24.2 f64/dmat4/DMat4#w_axis..is_nanrust-analyzer cargo glam 0.24.2 f64/dvec4/impl#[DVec4]is_nan().()
534 }
535
536 /// Returns the transpose of `self`.
537 #[must_use]
538 #[inline]
539 pub fn transposerust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4]transpose().(&self) -> Selfrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4] {
540 Selfrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4] {
541 x_axisrust-analyzer cargo glam 0.24.2 f64/dmat4/DMat4#x_axis.: DVec4rust-analyzer cargo glam 0.24.2 f64/dvec4/DVec4#::newrust-analyzer cargo glam 0.24.2 f64/dvec4/impl#[DVec4]new().(self.x_axisrust-analyzer cargo glam 0.24.2 f64/dmat4/DMat4#x_axis..xrust-analyzer cargo glam 0.24.2 f64/dvec4/DVec4#x., self.y_axisrust-analyzer cargo glam 0.24.2 f64/dmat4/DMat4#y_axis..xrust-analyzer cargo glam 0.24.2 f64/dvec4/DVec4#x., self.z_axisrust-analyzer cargo glam 0.24.2 f64/dmat4/DMat4#z_axis..xrust-analyzer cargo glam 0.24.2 f64/dvec4/DVec4#x., self.w_axisrust-analyzer cargo glam 0.24.2 f64/dmat4/DMat4#w_axis..xrust-analyzer cargo glam 0.24.2 f64/dvec4/DVec4#x.),
542 y_axisrust-analyzer cargo glam 0.24.2 f64/dmat4/DMat4#y_axis.: DVec4rust-analyzer cargo glam 0.24.2 f64/dvec4/DVec4#::newrust-analyzer cargo glam 0.24.2 f64/dvec4/impl#[DVec4]new().(self.x_axisrust-analyzer cargo glam 0.24.2 f64/dmat4/DMat4#x_axis..yrust-analyzer cargo glam 0.24.2 f64/dvec4/DVec4#y., self.y_axisrust-analyzer cargo glam 0.24.2 f64/dmat4/DMat4#y_axis..yrust-analyzer cargo glam 0.24.2 f64/dvec4/DVec4#y., self.z_axisrust-analyzer cargo glam 0.24.2 f64/dmat4/DMat4#z_axis..yrust-analyzer cargo glam 0.24.2 f64/dvec4/DVec4#y., self.w_axisrust-analyzer cargo glam 0.24.2 f64/dmat4/DMat4#w_axis..yrust-analyzer cargo glam 0.24.2 f64/dvec4/DVec4#y.),
543 z_axisrust-analyzer cargo glam 0.24.2 f64/dmat4/DMat4#z_axis.: DVec4rust-analyzer cargo glam 0.24.2 f64/dvec4/DVec4#::newrust-analyzer cargo glam 0.24.2 f64/dvec4/impl#[DVec4]new().(self.x_axisrust-analyzer cargo glam 0.24.2 f64/dmat4/DMat4#x_axis..zrust-analyzer cargo glam 0.24.2 f64/dvec4/DVec4#z., self.y_axisrust-analyzer cargo glam 0.24.2 f64/dmat4/DMat4#y_axis..zrust-analyzer cargo glam 0.24.2 f64/dvec4/DVec4#z., self.z_axisrust-analyzer cargo glam 0.24.2 f64/dmat4/DMat4#z_axis..zrust-analyzer cargo glam 0.24.2 f64/dvec4/DVec4#z., self.w_axisrust-analyzer cargo glam 0.24.2 f64/dmat4/DMat4#w_axis..zrust-analyzer cargo glam 0.24.2 f64/dvec4/DVec4#z.),
544 w_axisrust-analyzer cargo glam 0.24.2 f64/dmat4/DMat4#w_axis.: DVec4rust-analyzer cargo glam 0.24.2 f64/dvec4/DVec4#::newrust-analyzer cargo glam 0.24.2 f64/dvec4/impl#[DVec4]new().(self.x_axisrust-analyzer cargo glam 0.24.2 f64/dmat4/DMat4#x_axis..wrust-analyzer cargo glam 0.24.2 f64/dvec4/DVec4#w., self.y_axisrust-analyzer cargo glam 0.24.2 f64/dmat4/DMat4#y_axis..wrust-analyzer cargo glam 0.24.2 f64/dvec4/DVec4#w., self.z_axisrust-analyzer cargo glam 0.24.2 f64/dmat4/DMat4#z_axis..wrust-analyzer cargo glam 0.24.2 f64/dvec4/DVec4#w., self.w_axisrust-analyzer cargo glam 0.24.2 f64/dmat4/DMat4#w_axis..wrust-analyzer cargo glam 0.24.2 f64/dvec4/DVec4#w.),
545 }
546 }
547
548 /// Returns the determinant of `self`.
549 pub fn determinantrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4]determinant().(&self) -> f64 {
550 let (m00, m01, m02, m03) = self.x_axisrust-analyzer cargo glam 0.24.2 f64/dmat4/DMat4#x_axis..intorust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/impl#[T][`Into<U>`]into().();
551 let (m10, m11, m12, m13) = self.y_axisrust-analyzer cargo glam 0.24.2 f64/dmat4/DMat4#y_axis..intorust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/impl#[T][`Into<U>`]into().();
552 let (m20, m21, m22, m23) = self.z_axisrust-analyzer cargo glam 0.24.2 f64/dmat4/DMat4#z_axis..intorust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/impl#[T][`Into<U>`]into().();
553 let (m30, m31, m32, m33) = self.w_axisrust-analyzer cargo glam 0.24.2 f64/dmat4/DMat4#w_axis..intorust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/impl#[T][`Into<U>`]into().();
554
555 let a2323 = m22 rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().m33 rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Sub<Self>`]sub().-rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Sub<Self>`]sub(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Sub<Self>`]sub().m23 rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().m32;
556 let a1323 = m21 rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().m33 rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Sub<Self>`]sub().-rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Sub<Self>`]sub(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Sub<Self>`]sub().m23 rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().m31;
557 let a1223 = m21 rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().m32 rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Sub<Self>`]sub().-rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Sub<Self>`]sub(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Sub<Self>`]sub().m22 rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().m31;
558 let a0323 = m20 rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().m33 rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Sub<Self>`]sub().-rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Sub<Self>`]sub(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Sub<Self>`]sub().m23 rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().m30;
559 let a0223 = m20 rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().m32 rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Sub<Self>`]sub().-rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Sub<Self>`]sub(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Sub<Self>`]sub().m22 rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().m30;
560 let a0123 = m20 rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().m31 rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Sub<Self>`]sub().-rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Sub<Self>`]sub(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Sub<Self>`]sub().m21 rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().m30;
561
562 m00 rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().(m11 rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().a2323 rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Sub<Self>`]sub().-rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Sub<Self>`]sub(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Sub<Self>`]sub().m12 rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().a1323 rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Add<Self>`]add().+rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Add<Self>`]add(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Add<Self>`]add().m13 rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().a1223)
563 -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Sub<Self>`]sub(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Sub<Self>`]sub().m01 rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().(m10 rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().a2323 rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Sub<Self>`]sub().-rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Sub<Self>`]sub(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Sub<Self>`]sub().m12 rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().a0323 rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Add<Self>`]add().+rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Add<Self>`]add(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Add<Self>`]add().m13 rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().a0223)
564 +rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Add<Self>`]add(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Add<Self>`]add().m02 rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().(m10 rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().a1323 rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Sub<Self>`]sub().-rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Sub<Self>`]sub(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Sub<Self>`]sub().m11 rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().a0323 rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Add<Self>`]add().+rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Add<Self>`]add(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Add<Self>`]add().m13 rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().a0123)
565 -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Sub<Self>`]sub(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Sub<Self>`]sub().m03 rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().(m10 rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().a1223 rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Sub<Self>`]sub().-rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Sub<Self>`]sub(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Sub<Self>`]sub().m11 rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().a0223 rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Add<Self>`]add().+rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Add<Self>`]add(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Add<Self>`]add().m12 rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().a0123)
566 }
567
568 /// Returns the inverse of `self`.
569 ///
570 /// If the matrix is not invertible the returned matrix will be invalid.
571 ///
572 /// # Panics
573 ///
574 /// Will panic if the determinant of `self` is zero when `glam_assert` is enabled.
575 #[must_use]
576 pub fn inverserust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4]inverse().(&self) -> Selfrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4] {
577 let (m00, m01, m02, m03) = self.x_axisrust-analyzer cargo glam 0.24.2 f64/dmat4/DMat4#x_axis..intorust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/impl#[T][`Into<U>`]into().();
578 let (m10, m11, m12, m13) = self.y_axisrust-analyzer cargo glam 0.24.2 f64/dmat4/DMat4#y_axis..intorust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/impl#[T][`Into<U>`]into().();
579 let (m20, m21, m22, m23) = self.z_axisrust-analyzer cargo glam 0.24.2 f64/dmat4/DMat4#z_axis..intorust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/impl#[T][`Into<U>`]into().();
580 let (m30, m31, m32, m33) = self.w_axisrust-analyzer cargo glam 0.24.2 f64/dmat4/DMat4#w_axis..intorust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/impl#[T][`Into<U>`]into().();
581
582 let coef00 = m22 rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().m33 rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Sub<Self>`]sub().-rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Sub<Self>`]sub(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Sub<Self>`]sub().m32 rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().m23;
583 let coef02 = m12 rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().m33 rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Sub<Self>`]sub().-rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Sub<Self>`]sub(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Sub<Self>`]sub().m32 rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().m13;
584 let coef03 = m12 rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().m23 rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Sub<Self>`]sub().-rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Sub<Self>`]sub(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Sub<Self>`]sub().m22 rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().m13;
585
586 let coef04 = m21 rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().m33 rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Sub<Self>`]sub().-rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Sub<Self>`]sub(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Sub<Self>`]sub().m31 rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().m23;
587 let coef06 = m11 rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().m33 rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Sub<Self>`]sub().-rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Sub<Self>`]sub(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Sub<Self>`]sub().m31 rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().m13;
588 let coef07 = m11 rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().m23 rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Sub<Self>`]sub().-rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Sub<Self>`]sub(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Sub<Self>`]sub().m21 rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().m13;
589
590 let coef08 = m21 rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().m32 rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Sub<Self>`]sub().-rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Sub<Self>`]sub(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Sub<Self>`]sub().m31 rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().m22;
591 let coef10 = m11 rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().m32 rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Sub<Self>`]sub().-rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Sub<Self>`]sub(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Sub<Self>`]sub().m31 rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().m12;
592 let coef11 = m11 rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().m22 rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Sub<Self>`]sub().-rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Sub<Self>`]sub(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Sub<Self>`]sub().m21 rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().m12;
593
594 let coef12 = m20 rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().m33 rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Sub<Self>`]sub().-rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Sub<Self>`]sub(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Sub<Self>`]sub().m30 rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().m23;
595 let coef14 = m10 rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().m33 rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Sub<Self>`]sub().-rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Sub<Self>`]sub(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Sub<Self>`]sub().m30 rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().m13;
596 let coef15 = m10 rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().m23 rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Sub<Self>`]sub().-rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Sub<Self>`]sub(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Sub<Self>`]sub().m20 rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().m13;
597
598 let coef16 = m20 rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().m32 rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Sub<Self>`]sub().-rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Sub<Self>`]sub(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Sub<Self>`]sub().m30 rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().m22;
599 let coef18 = m10 rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().m32 rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Sub<Self>`]sub().-rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Sub<Self>`]sub(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Sub<Self>`]sub().m30 rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().m12;
600 let coef19 = m10 rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().m22 rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Sub<Self>`]sub().-rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Sub<Self>`]sub(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Sub<Self>`]sub().m20 rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().m12;
601
602 let coef20 = m20 rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().m31 rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Sub<Self>`]sub().-rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Sub<Self>`]sub(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Sub<Self>`]sub().m30 rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().m21;
603 let coef22 = m10 rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().m31 rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Sub<Self>`]sub().-rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Sub<Self>`]sub(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Sub<Self>`]sub().m30 rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().m11;
604 let coef23 = m10 rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().m21 rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Sub<Self>`]sub().-rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Sub<Self>`]sub(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Sub<Self>`]sub().m20 rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().m11;
605
606 let fac0 = DVec4rust-analyzer cargo glam 0.24.2 f64/dvec4/DVec4#::newrust-analyzer cargo glam 0.24.2 f64/dvec4/impl#[DVec4]new().(coef00, coef00, coef02, coef03);
607 let fac1 = DVec4rust-analyzer cargo glam 0.24.2 f64/dvec4/DVec4#::newrust-analyzer cargo glam 0.24.2 f64/dvec4/impl#[DVec4]new().(coef04, coef04, coef06, coef07);
608 let fac2 = DVec4rust-analyzer cargo glam 0.24.2 f64/dvec4/DVec4#::newrust-analyzer cargo glam 0.24.2 f64/dvec4/impl#[DVec4]new().(coef08, coef08, coef10, coef11);
609 let fac3 = DVec4rust-analyzer cargo glam 0.24.2 f64/dvec4/DVec4#::newrust-analyzer cargo glam 0.24.2 f64/dvec4/impl#[DVec4]new().(coef12, coef12, coef14, coef15);
610 let fac4 = DVec4rust-analyzer cargo glam 0.24.2 f64/dvec4/DVec4#::newrust-analyzer cargo glam 0.24.2 f64/dvec4/impl#[DVec4]new().(coef16, coef16, coef18, coef19);
611 let fac5 = DVec4rust-analyzer cargo glam 0.24.2 f64/dvec4/DVec4#::newrust-analyzer cargo glam 0.24.2 f64/dvec4/impl#[DVec4]new().(coef20, coef20, coef22, coef23);
612
613 let vec0 = DVec4rust-analyzer cargo glam 0.24.2 f64/dvec4/DVec4#::newrust-analyzer cargo glam 0.24.2 f64/dvec4/impl#[DVec4]new().(m10, m00, m00, m00);
614 let vec1 = DVec4rust-analyzer cargo glam 0.24.2 f64/dvec4/DVec4#::newrust-analyzer cargo glam 0.24.2 f64/dvec4/impl#[DVec4]new().(m11, m01, m01, m01);
615 let vec2 = DVec4rust-analyzer cargo glam 0.24.2 f64/dvec4/DVec4#::newrust-analyzer cargo glam 0.24.2 f64/dvec4/impl#[DVec4]new().(m12, m02, m02, m02);
616 let vec3 = DVec4rust-analyzer cargo glam 0.24.2 f64/dvec4/DVec4#::newrust-analyzer cargo glam 0.24.2 f64/dvec4/impl#[DVec4]new().(m13, m03, m03, m03);
617
618 let inv0 = vec1.mulrust-analyzer cargo glam 0.24.2 f64/dvec4/impl#[DVec4][`Mul<Self>`]mul().(fac0).subrust-analyzer cargo glam 0.24.2 f64/dvec4/impl#[DVec4][`Sub<Self>`]sub().(vec2.mulrust-analyzer cargo glam 0.24.2 f64/dvec4/impl#[DVec4][`Mul<Self>`]mul().(fac1)).addrust-analyzer cargo glam 0.24.2 f64/dvec4/impl#[DVec4][`Add<Self>`]add().(vec3.mulrust-analyzer cargo glam 0.24.2 f64/dvec4/impl#[DVec4][`Mul<Self>`]mul().(fac2));
619 let inv1 = vec0.mulrust-analyzer cargo glam 0.24.2 f64/dvec4/impl#[DVec4][`Mul<Self>`]mul().(fac0).subrust-analyzer cargo glam 0.24.2 f64/dvec4/impl#[DVec4][`Sub<Self>`]sub().(vec2.mulrust-analyzer cargo glam 0.24.2 f64/dvec4/impl#[DVec4][`Mul<Self>`]mul().(fac3)).addrust-analyzer cargo glam 0.24.2 f64/dvec4/impl#[DVec4][`Add<Self>`]add().(vec3.mulrust-analyzer cargo glam 0.24.2 f64/dvec4/impl#[DVec4][`Mul<Self>`]mul().(fac4));
620 let inv2 = vec0.mulrust-analyzer cargo glam 0.24.2 f64/dvec4/impl#[DVec4][`Mul<Self>`]mul().(fac1).subrust-analyzer cargo glam 0.24.2 f64/dvec4/impl#[DVec4][`Sub<Self>`]sub().(vec1.mulrust-analyzer cargo glam 0.24.2 f64/dvec4/impl#[DVec4][`Mul<Self>`]mul().(fac3)).addrust-analyzer cargo glam 0.24.2 f64/dvec4/impl#[DVec4][`Add<Self>`]add().(vec3.mulrust-analyzer cargo glam 0.24.2 f64/dvec4/impl#[DVec4][`Mul<Self>`]mul().(fac5));
621 let inv3 = vec0.mulrust-analyzer cargo glam 0.24.2 f64/dvec4/impl#[DVec4][`Mul<Self>`]mul().(fac2).subrust-analyzer cargo glam 0.24.2 f64/dvec4/impl#[DVec4][`Sub<Self>`]sub().(vec1.mulrust-analyzer cargo glam 0.24.2 f64/dvec4/impl#[DVec4][`Mul<Self>`]mul().(fac4)).addrust-analyzer cargo glam 0.24.2 f64/dvec4/impl#[DVec4][`Add<Self>`]add().(vec2.mulrust-analyzer cargo glam 0.24.2 f64/dvec4/impl#[DVec4][`Mul<Self>`]mul().(fac5));
622
623 let sign_a = DVec4rust-analyzer cargo glam 0.24.2 f64/dvec4/DVec4#::newrust-analyzer cargo glam 0.24.2 f64/dvec4/impl#[DVec4]new().(1.0, -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][Neg]neg().1.0, 1.0, -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][Neg]neg().1.0);
624 let sign_b = DVec4rust-analyzer cargo glam 0.24.2 f64/dvec4/DVec4#::newrust-analyzer cargo glam 0.24.2 f64/dvec4/impl#[DVec4]new().(-rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][Neg]neg().1.0, 1.0, -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][Neg]neg().1.0, 1.0);
625
626 let inverse = Selfrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4]::from_colsrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4]from_cols().(
627 inv0.mulrust-analyzer cargo glam 0.24.2 f64/dvec4/impl#[DVec4][`Mul<Self>`]mul().(sign_a),
628 inv1.mulrust-analyzer cargo glam 0.24.2 f64/dvec4/impl#[DVec4][`Mul<Self>`]mul().(sign_b),
629 inv2.mulrust-analyzer cargo glam 0.24.2 f64/dvec4/impl#[DVec4][`Mul<Self>`]mul().(sign_a),
630 inv3.mulrust-analyzer cargo glam 0.24.2 f64/dvec4/impl#[DVec4][`Mul<Self>`]mul().(sign_b),
631 );
632
633 let col0 = DVec4rust-analyzer cargo glam 0.24.2 f64/dvec4/DVec4#::newrust-analyzer cargo glam 0.24.2 f64/dvec4/impl#[DVec4]new().(
634 inverse.x_axisrust-analyzer cargo glam 0.24.2 f64/dmat4/DMat4#x_axis..xrust-analyzer cargo glam 0.24.2 f64/dvec4/DVec4#x.,
635 inverse.y_axisrust-analyzer cargo glam 0.24.2 f64/dmat4/DMat4#y_axis..xrust-analyzer cargo glam 0.24.2 f64/dvec4/DVec4#x.,
636 inverse.z_axisrust-analyzer cargo glam 0.24.2 f64/dmat4/DMat4#z_axis..xrust-analyzer cargo glam 0.24.2 f64/dvec4/DVec4#x.,
637 inverse.w_axisrust-analyzer cargo glam 0.24.2 f64/dmat4/DMat4#w_axis..xrust-analyzer cargo glam 0.24.2 f64/dvec4/DVec4#x.,
638 );
639
640 let dot0 = self.x_axisrust-analyzer cargo glam 0.24.2 f64/dmat4/DMat4#x_axis..mulrust-analyzer cargo glam 0.24.2 f64/dvec4/impl#[DVec4][`Mul<Self>`]mul().(col0);
641 let dot1 = dot0.xrust-analyzer cargo glam 0.24.2 f64/dvec4/DVec4#x. rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Add<Self>`]add().+rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Add<Self>`]add(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Add<Self>`]add().dot0.yrust-analyzer cargo glam 0.24.2 f64/dvec4/DVec4#y. rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Add<Self>`]add().+rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Add<Self>`]add(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Add<Self>`]add().dot0.zrust-analyzer cargo glam 0.24.2 f64/dvec4/DVec4#z. rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Add<Self>`]add().+rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Add<Self>`]add(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Add<Self>`]add().dot0.wrust-analyzer cargo glam 0.24.2 f64/dvec4/DVec4#w.;
642
643 glam_assertrust-analyzer cargo glam 0.24.2 macros/glam_assert!!(dot1 != 0.0);
644
645 let rcp_det = dot1.reciprust-analyzer cargo core https://github.com/rust-lang/rust/library/core f64/impl#[f64]recip().();
646 inverse.mulrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4][`Mul<f64>`]mul().(rcp_det)
647 }
648
649 /// Creates a left-handed view matrix using a camera position, an up direction, and a facing
650 /// direction.
651 ///
652 /// For a view coordinate system with `+X=right`, `+Y=up` and `+Z=forward`.
653 #[inline]
654 pub fn look_to_lhrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4]look_to_lh().(eye: DVec3rust-analyzer cargo glam 0.24.2 f64/dvec3/DVec3#, dir: DVec3rust-analyzer cargo glam 0.24.2 f64/dvec3/DVec3#, up: DVec3rust-analyzer cargo glam 0.24.2 f64/dvec3/DVec3#) -> Selfrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4] {
655 Selfrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4]::look_to_rhrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4]look_to_rh().(eye, -rust-analyzer cargo glam 0.24.2 f64/dvec3/impl#[DVec3][Neg]neg().dir, up)
656 }
657
658 /// Creates a right-handed view matrix using a camera position, an up direction, and a facing
659 /// direction.
660 ///
661 /// For a view coordinate system with `+X=right`, `+Y=up` and `+Z=back`.
662 #[inline]
663 pub fn look_to_rhrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4]look_to_rh().(eye: DVec3rust-analyzer cargo glam 0.24.2 f64/dvec3/DVec3#, dir: DVec3rust-analyzer cargo glam 0.24.2 f64/dvec3/DVec3#, up: DVec3rust-analyzer cargo glam 0.24.2 f64/dvec3/DVec3#) -> Selfrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4] {
664 let f = dir.normalizerust-analyzer cargo glam 0.24.2 f64/dvec3/impl#[DVec3]normalize().();
665 let s = f.crossrust-analyzer cargo glam 0.24.2 f64/dvec3/impl#[DVec3]cross().(up).normalizerust-analyzer cargo glam 0.24.2 f64/dvec3/impl#[DVec3]normalize().();
666 let u = s.crossrust-analyzer cargo glam 0.24.2 f64/dvec3/impl#[DVec3]cross().(f);
667
668 Selfrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4]::from_colsrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4]from_cols().(
669 DVec4rust-analyzer cargo glam 0.24.2 f64/dvec4/DVec4#::newrust-analyzer cargo glam 0.24.2 f64/dvec4/impl#[DVec4]new().(s.xrust-analyzer cargo glam 0.24.2 f64/dvec3/DVec3#x., u.xrust-analyzer cargo glam 0.24.2 f64/dvec3/DVec3#x., -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][Neg]neg().f.xrust-analyzer cargo glam 0.24.2 f64/dvec3/DVec3#x., 0.0),
670 DVec4rust-analyzer cargo glam 0.24.2 f64/dvec4/DVec4#::newrust-analyzer cargo glam 0.24.2 f64/dvec4/impl#[DVec4]new().(s.yrust-analyzer cargo glam 0.24.2 f64/dvec3/DVec3#y., u.yrust-analyzer cargo glam 0.24.2 f64/dvec3/DVec3#y., -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][Neg]neg().f.yrust-analyzer cargo glam 0.24.2 f64/dvec3/DVec3#y., 0.0),
671 DVec4rust-analyzer cargo glam 0.24.2 f64/dvec4/DVec4#::newrust-analyzer cargo glam 0.24.2 f64/dvec4/impl#[DVec4]new().(s.zrust-analyzer cargo glam 0.24.2 f64/dvec3/DVec3#z., u.zrust-analyzer cargo glam 0.24.2 f64/dvec3/DVec3#z., -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][Neg]neg().f.zrust-analyzer cargo glam 0.24.2 f64/dvec3/DVec3#z., 0.0),
672 DVec4rust-analyzer cargo glam 0.24.2 f64/dvec4/DVec4#::newrust-analyzer cargo glam 0.24.2 f64/dvec4/impl#[DVec4]new().(-rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][Neg]neg().eye.dotrust-analyzer cargo glam 0.24.2 f64/dvec3/impl#[DVec3]dot().(s), -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][Neg]neg().eye.dotrust-analyzer cargo glam 0.24.2 f64/dvec3/impl#[DVec3]dot().(u), eye.dotrust-analyzer cargo glam 0.24.2 f64/dvec3/impl#[DVec3]dot().(f), 1.0),
673 )
674 }
675
676 /// Creates a left-handed view matrix using a camera position, an up direction, and a focal
677 /// point.
678 /// For a view coordinate system with `+X=right`, `+Y=up` and `+Z=forward`.
679 ///
680 /// # Panics
681 ///
682 /// Will panic if `up` is not normalized when `glam_assert` is enabled.
683 #[inline]
684 pub fn look_at_lhrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4]look_at_lh().(eye: DVec3rust-analyzer cargo glam 0.24.2 f64/dvec3/DVec3#, center: DVec3rust-analyzer cargo glam 0.24.2 f64/dvec3/DVec3#, up: DVec3rust-analyzer cargo glam 0.24.2 f64/dvec3/DVec3#) -> Selfrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4] {
685 glam_assertrust-analyzer cargo glam 0.24.2 macros/glam_assert!!(up.is_normalized());
686 Selfrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4]::look_to_lhrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4]look_to_lh().(eye, center.subrust-analyzer cargo glam 0.24.2 f64/dvec3/impl#[DVec3][`Sub<Self>`]sub().(eye), up)
687 }
688
689 /// Creates a right-handed view matrix using a camera position, an up direction, and a focal
690 /// point.
691 /// For a view coordinate system with `+X=right`, `+Y=up` and `+Z=back`.
692 ///
693 /// # Panics
694 ///
695 /// Will panic if `up` is not normalized when `glam_assert` is enabled.
696 #[inline]
697 pub fn look_at_rhrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4]look_at_rh().(eye: DVec3rust-analyzer cargo glam 0.24.2 f64/dvec3/DVec3#, center: DVec3rust-analyzer cargo glam 0.24.2 f64/dvec3/DVec3#, up: DVec3rust-analyzer cargo glam 0.24.2 f64/dvec3/DVec3#) -> Selfrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4] {
698 glam_assertrust-analyzer cargo glam 0.24.2 macros/glam_assert!!(up.is_normalized());
699 Selfrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4]::look_to_rhrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4]look_to_rh().(eye, center.subrust-analyzer cargo glam 0.24.2 f64/dvec3/impl#[DVec3][`Sub<Self>`]sub().(eye), up)
700 }
701
702 /// Creates a right-handed perspective projection matrix with [-1,1] depth range.
703 /// This is the same as the OpenGL `gluPerspective` function.
704 /// See <https://www.khronos.org/registry/OpenGL-Refpages/gl2.1/xhtml/gluPerspective.xml>
705 #[inline]
706 pub fn perspective_rh_glrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4]perspective_rh_gl().(
707 fov_y_radians: f64,
708 aspect_ratio: f64,
709 z_near: f64,
710 z_far: f64,
711 ) -> Selfrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4] {
712 let inv_length = 1.0 rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Div<Self>`]div()./rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Div<Self>`]div(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Div<Self>`]div().(z_near rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Sub<Self>`]sub().-rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Sub<Self>`]sub(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Sub<Self>`]sub().z_far);
713 let f = 1.0 rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Div<Self>`]div()./rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Div<Self>`]div(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Div<Self>`]div().mathrust-analyzer cargo glam 0.24.2 f64/math/::tanrust-analyzer cargo glam 0.24.2 f64/math/std_math/tan().(0.5 rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().fov_y_radians);
714 let a = f rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Div<Self>`]div()./rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Div<Self>`]div(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Div<Self>`]div().aspect_ratio;
715 let b = (z_near rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Add<Self>`]add().+rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Add<Self>`]add(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Add<Self>`]add().z_far) rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().inv_length;
716 let c = (2.0 rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().z_near rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().z_far) rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().inv_length;
717 Selfrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4]::from_colsrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4]from_cols().(
718 DVec4rust-analyzer cargo glam 0.24.2 f64/dvec4/DVec4#::newrust-analyzer cargo glam 0.24.2 f64/dvec4/impl#[DVec4]new().(a, 0.0, 0.0, 0.0),
719 DVec4rust-analyzer cargo glam 0.24.2 f64/dvec4/DVec4#::newrust-analyzer cargo glam 0.24.2 f64/dvec4/impl#[DVec4]new().(0.0, f, 0.0, 0.0),
720 DVec4rust-analyzer cargo glam 0.24.2 f64/dvec4/DVec4#::newrust-analyzer cargo glam 0.24.2 f64/dvec4/impl#[DVec4]new().(0.0, 0.0, b, -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][Neg]neg().1.0),
721 DVec4rust-analyzer cargo glam 0.24.2 f64/dvec4/DVec4#::newrust-analyzer cargo glam 0.24.2 f64/dvec4/impl#[DVec4]new().(0.0, 0.0, c, 0.0),
722 )
723 }
724
725 /// Creates a left-handed perspective projection matrix with `[0,1]` depth range.
726 ///
727 /// # Panics
728 ///
729 /// Will panic if `z_near` or `z_far` are less than or equal to zero when `glam_assert` is
730 /// enabled.
731 #[inline]
732 pub fn perspective_lhrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4]perspective_lh().(fov_y_radians: f64, aspect_ratio: f64, z_near: f64, z_far: f64) -> Selfrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4] {
733 glam_assertrust-analyzer cargo glam 0.24.2 macros/glam_assert!!(z_near > 0.0 && z_far > 0.0);
734 let (sin_fov, cos_fov) = mathrust-analyzer cargo glam 0.24.2 f64/math/::sin_cosrust-analyzer cargo glam 0.24.2 f64/math/std_math/sin_cos().(0.5 rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().fov_y_radians);
735 let h = cos_fov rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Div<Self>`]div()./rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Div<Self>`]div(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Div<Self>`]div().sin_fov;
736 let w = h rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Div<Self>`]div()./rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Div<Self>`]div(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Div<Self>`]div().aspect_ratio;
737 let r = z_far rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Div<Self>`]div()./rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Div<Self>`]div(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Div<Self>`]div().(z_far rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Sub<Self>`]sub().-rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Sub<Self>`]sub(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Sub<Self>`]sub().z_near);
738 Selfrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4]::from_colsrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4]from_cols().(
739 DVec4rust-analyzer cargo glam 0.24.2 f64/dvec4/DVec4#::newrust-analyzer cargo glam 0.24.2 f64/dvec4/impl#[DVec4]new().(w, 0.0, 0.0, 0.0),
740 DVec4rust-analyzer cargo glam 0.24.2 f64/dvec4/DVec4#::newrust-analyzer cargo glam 0.24.2 f64/dvec4/impl#[DVec4]new().(0.0, h, 0.0, 0.0),
741 DVec4rust-analyzer cargo glam 0.24.2 f64/dvec4/DVec4#::newrust-analyzer cargo glam 0.24.2 f64/dvec4/impl#[DVec4]new().(0.0, 0.0, r, 1.0),
742 DVec4rust-analyzer cargo glam 0.24.2 f64/dvec4/DVec4#::newrust-analyzer cargo glam 0.24.2 f64/dvec4/impl#[DVec4]new().(0.0, 0.0, -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][Neg]neg().r rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().z_near, 0.0),
743 )
744 }
745
746 /// Creates a right-handed perspective projection matrix with `[0,1]` depth range.
747 ///
748 /// # Panics
749 ///
750 /// Will panic if `z_near` or `z_far` are less than or equal to zero when `glam_assert` is
751 /// enabled.
752 #[inline]
753 pub fn perspective_rhrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4]perspective_rh().(fov_y_radians: f64, aspect_ratio: f64, z_near: f64, z_far: f64) -> Selfrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4] {
754 glam_assertrust-analyzer cargo glam 0.24.2 macros/glam_assert!!(z_near > 0.0 && z_far > 0.0);
755 let (sin_fov, cos_fov) = mathrust-analyzer cargo glam 0.24.2 f64/math/::sin_cosrust-analyzer cargo glam 0.24.2 f64/math/std_math/sin_cos().(0.5 rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().fov_y_radians);
756 let h = cos_fov rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Div<Self>`]div()./rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Div<Self>`]div(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Div<Self>`]div().sin_fov;
757 let w = h rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Div<Self>`]div()./rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Div<Self>`]div(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Div<Self>`]div().aspect_ratio;
758 let r = z_far rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Div<Self>`]div()./rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Div<Self>`]div(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Div<Self>`]div().(z_near rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Sub<Self>`]sub().-rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Sub<Self>`]sub(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Sub<Self>`]sub().z_far);
759 Selfrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4]::from_colsrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4]from_cols().(
760 DVec4rust-analyzer cargo glam 0.24.2 f64/dvec4/DVec4#::newrust-analyzer cargo glam 0.24.2 f64/dvec4/impl#[DVec4]new().(w, 0.0, 0.0, 0.0),
761 DVec4rust-analyzer cargo glam 0.24.2 f64/dvec4/DVec4#::newrust-analyzer cargo glam 0.24.2 f64/dvec4/impl#[DVec4]new().(0.0, h, 0.0, 0.0),
762 DVec4rust-analyzer cargo glam 0.24.2 f64/dvec4/DVec4#::newrust-analyzer cargo glam 0.24.2 f64/dvec4/impl#[DVec4]new().(0.0, 0.0, r, -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][Neg]neg().1.0),
763 DVec4rust-analyzer cargo glam 0.24.2 f64/dvec4/DVec4#::newrust-analyzer cargo glam 0.24.2 f64/dvec4/impl#[DVec4]new().(0.0, 0.0, r rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().z_near, 0.0),
764 )
765 }
766
767 /// Creates an infinite left-handed perspective projection matrix with `[0,1]` depth range.
768 ///
769 /// # Panics
770 ///
771 /// Will panic if `z_near` is less than or equal to zero when `glam_assert` is enabled.
772 #[inline]
773 pub fn perspective_infinite_lhrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4]perspective_infinite_lh().(fov_y_radians: f64, aspect_ratio: f64, z_near: f64) -> Selfrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4] {
774 glam_assertrust-analyzer cargo glam 0.24.2 macros/glam_assert!!(z_near > 0.0);
775 let (sin_fov, cos_fov) = mathrust-analyzer cargo glam 0.24.2 f64/math/::sin_cosrust-analyzer cargo glam 0.24.2 f64/math/std_math/sin_cos().(0.5 rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().fov_y_radians);
776 let h = cos_fov rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Div<Self>`]div()./rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Div<Self>`]div(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Div<Self>`]div().sin_fov;
777 let w = h rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Div<Self>`]div()./rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Div<Self>`]div(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Div<Self>`]div().aspect_ratio;
778 Selfrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4]::from_colsrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4]from_cols().(
779 DVec4rust-analyzer cargo glam 0.24.2 f64/dvec4/DVec4#::newrust-analyzer cargo glam 0.24.2 f64/dvec4/impl#[DVec4]new().(w, 0.0, 0.0, 0.0),
780 DVec4rust-analyzer cargo glam 0.24.2 f64/dvec4/DVec4#::newrust-analyzer cargo glam 0.24.2 f64/dvec4/impl#[DVec4]new().(0.0, h, 0.0, 0.0),
781 DVec4rust-analyzer cargo glam 0.24.2 f64/dvec4/DVec4#::newrust-analyzer cargo glam 0.24.2 f64/dvec4/impl#[DVec4]new().(0.0, 0.0, 1.0, 1.0),
782 DVec4rust-analyzer cargo glam 0.24.2 f64/dvec4/DVec4#::newrust-analyzer cargo glam 0.24.2 f64/dvec4/impl#[DVec4]new().(0.0, 0.0, -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][Neg]neg().z_near, 0.0),
783 )
784 }
785
786 /// Creates an infinite left-handed perspective projection matrix with `[0,1]` depth range.
787 ///
788 /// # Panics
789 ///
790 /// Will panic if `z_near` is less than or equal to zero when `glam_assert` is enabled.
791 #[inline]
792 pub fn perspective_infinite_reverse_lhrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4]perspective_infinite_reverse_lh().(
793 fov_y_radians: f64,
794 aspect_ratio: f64,
795 z_near: f64,
796 ) -> Selfrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4] {
797 glam_assertrust-analyzer cargo glam 0.24.2 macros/glam_assert!!(z_near > 0.0);
798 let (sin_fov, cos_fov) = mathrust-analyzer cargo glam 0.24.2 f64/math/::sin_cosrust-analyzer cargo glam 0.24.2 f64/math/std_math/sin_cos().(0.5 rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().fov_y_radians);
799 let h = cos_fov rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Div<Self>`]div()./rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Div<Self>`]div(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Div<Self>`]div().sin_fov;
800 let w = h rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Div<Self>`]div()./rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Div<Self>`]div(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Div<Self>`]div().aspect_ratio;
801 Selfrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4]::from_colsrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4]from_cols().(
802 DVec4rust-analyzer cargo glam 0.24.2 f64/dvec4/DVec4#::newrust-analyzer cargo glam 0.24.2 f64/dvec4/impl#[DVec4]new().(w, 0.0, 0.0, 0.0),
803 DVec4rust-analyzer cargo glam 0.24.2 f64/dvec4/DVec4#::newrust-analyzer cargo glam 0.24.2 f64/dvec4/impl#[DVec4]new().(0.0, h, 0.0, 0.0),
804 DVec4rust-analyzer cargo glam 0.24.2 f64/dvec4/DVec4#::newrust-analyzer cargo glam 0.24.2 f64/dvec4/impl#[DVec4]new().(0.0, 0.0, 0.0, 1.0),
805 DVec4rust-analyzer cargo glam 0.24.2 f64/dvec4/DVec4#::newrust-analyzer cargo glam 0.24.2 f64/dvec4/impl#[DVec4]new().(0.0, 0.0, z_near, 0.0),
806 )
807 }
808
809 /// Creates an infinite right-handed perspective projection matrix with
810 /// `[0,1]` depth range.
811 #[inline]
812 pub fn perspective_infinite_rhrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4]perspective_infinite_rh().(fov_y_radians: f64, aspect_ratio: f64, z_near: f64) -> Selfrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4] {
813 glam_assertrust-analyzer cargo glam 0.24.2 macros/glam_assert!!(z_near > 0.0);
814 let f = 1.0 rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Div<Self>`]div()./rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Div<Self>`]div(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Div<Self>`]div().mathrust-analyzer cargo glam 0.24.2 f64/math/::tanrust-analyzer cargo glam 0.24.2 f64/math/std_math/tan().(0.5 rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().fov_y_radians);
815 Selfrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4]::from_colsrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4]from_cols().(
816 DVec4rust-analyzer cargo glam 0.24.2 f64/dvec4/DVec4#::newrust-analyzer cargo glam 0.24.2 f64/dvec4/impl#[DVec4]new().(f rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Div<Self>`]div()./rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Div<Self>`]div(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Div<Self>`]div().aspect_ratio, 0.0, 0.0, 0.0),
817 DVec4rust-analyzer cargo glam 0.24.2 f64/dvec4/DVec4#::newrust-analyzer cargo glam 0.24.2 f64/dvec4/impl#[DVec4]new().(0.0, f, 0.0, 0.0),
818 DVec4rust-analyzer cargo glam 0.24.2 f64/dvec4/DVec4#::newrust-analyzer cargo glam 0.24.2 f64/dvec4/impl#[DVec4]new().(0.0, 0.0, -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][Neg]neg().1.0, -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][Neg]neg().1.0),
819 DVec4rust-analyzer cargo glam 0.24.2 f64/dvec4/DVec4#::newrust-analyzer cargo glam 0.24.2 f64/dvec4/impl#[DVec4]new().(0.0, 0.0, -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][Neg]neg().z_near, 0.0),
820 )
821 }
822
823 /// Creates an infinite reverse right-handed perspective projection matrix
824 /// with `[0,1]` depth range.
825 #[inline]
826 pub fn perspective_infinite_reverse_rhrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4]perspective_infinite_reverse_rh().(
827 fov_y_radians: f64,
828 aspect_ratio: f64,
829 z_near: f64,
830 ) -> Selfrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4] {
831 glam_assertrust-analyzer cargo glam 0.24.2 macros/glam_assert!!(z_near > 0.0);
832 let f = 1.0 rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Div<Self>`]div()./rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Div<Self>`]div(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Div<Self>`]div().mathrust-analyzer cargo glam 0.24.2 f64/math/::tanrust-analyzer cargo glam 0.24.2 f64/math/std_math/tan().(0.5 rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().fov_y_radians);
833 Selfrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4]::from_colsrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4]from_cols().(
834 DVec4rust-analyzer cargo glam 0.24.2 f64/dvec4/DVec4#::newrust-analyzer cargo glam 0.24.2 f64/dvec4/impl#[DVec4]new().(f rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Div<Self>`]div()./rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Div<Self>`]div(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Div<Self>`]div().aspect_ratio, 0.0, 0.0, 0.0),
835 DVec4rust-analyzer cargo glam 0.24.2 f64/dvec4/DVec4#::newrust-analyzer cargo glam 0.24.2 f64/dvec4/impl#[DVec4]new().(0.0, f, 0.0, 0.0),
836 DVec4rust-analyzer cargo glam 0.24.2 f64/dvec4/DVec4#::newrust-analyzer cargo glam 0.24.2 f64/dvec4/impl#[DVec4]new().(0.0, 0.0, 0.0, -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][Neg]neg().1.0),
837 DVec4rust-analyzer cargo glam 0.24.2 f64/dvec4/DVec4#::newrust-analyzer cargo glam 0.24.2 f64/dvec4/impl#[DVec4]new().(0.0, 0.0, z_near, 0.0),
838 )
839 }
840
841 /// Creates a right-handed orthographic projection matrix with `[-1,1]` depth
842 /// range. This is the same as the OpenGL `glOrtho` function in OpenGL.
843 /// See
844 /// <https://www.khronos.org/registry/OpenGL-Refpages/gl2.1/xhtml/glOrtho.xml>
845 #[inline]
846 pub fn orthographic_rh_glrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4]orthographic_rh_gl().(
847 left: f64,
848 right: f64,
849 bottom: f64,
850 top: f64,
851 near: f64,
852 far: f64,
853 ) -> Selfrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4] {
854 let a = 2.0 rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Div<Self>`]div()./rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Div<Self>`]div(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Div<Self>`]div().(right rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Sub<Self>`]sub().-rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Sub<Self>`]sub(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Sub<Self>`]sub().left);
855 let b = 2.0 rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Div<Self>`]div()./rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Div<Self>`]div(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Div<Self>`]div().(top rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Sub<Self>`]sub().-rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Sub<Self>`]sub(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Sub<Self>`]sub().bottom);
856 let c = -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][Neg]neg().2.0 rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Div<Self>`]div()./rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Div<Self>`]div(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Div<Self>`]div().(far rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Sub<Self>`]sub().-rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Sub<Self>`]sub(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Sub<Self>`]sub().near);
857 let tx = -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][Neg]neg().(right rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Add<Self>`]add().+rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Add<Self>`]add(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Add<Self>`]add().left) rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Div<Self>`]div()./rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Div<Self>`]div(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Div<Self>`]div().(right rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Sub<Self>`]sub().-rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Sub<Self>`]sub(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Sub<Self>`]sub().left);
858 let ty = -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][Neg]neg().(top rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Add<Self>`]add().+rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Add<Self>`]add(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Add<Self>`]add().bottom) rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Div<Self>`]div()./rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Div<Self>`]div(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Div<Self>`]div().(top rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Sub<Self>`]sub().-rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Sub<Self>`]sub(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Sub<Self>`]sub().bottom);
859 let tz = -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][Neg]neg().(far rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Add<Self>`]add().+rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Add<Self>`]add(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Add<Self>`]add().near) rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Div<Self>`]div()./rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Div<Self>`]div(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Div<Self>`]div().(far rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Sub<Self>`]sub().-rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Sub<Self>`]sub(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Sub<Self>`]sub().near);
860
861 Selfrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4]::from_colsrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4]from_cols().(
862 DVec4rust-analyzer cargo glam 0.24.2 f64/dvec4/DVec4#::newrust-analyzer cargo glam 0.24.2 f64/dvec4/impl#[DVec4]new().(a, 0.0, 0.0, 0.0),
863 DVec4rust-analyzer cargo glam 0.24.2 f64/dvec4/DVec4#::newrust-analyzer cargo glam 0.24.2 f64/dvec4/impl#[DVec4]new().(0.0, b, 0.0, 0.0),
864 DVec4rust-analyzer cargo glam 0.24.2 f64/dvec4/DVec4#::newrust-analyzer cargo glam 0.24.2 f64/dvec4/impl#[DVec4]new().(0.0, 0.0, c, 0.0),
865 DVec4rust-analyzer cargo glam 0.24.2 f64/dvec4/DVec4#::newrust-analyzer cargo glam 0.24.2 f64/dvec4/impl#[DVec4]new().(tx, ty, tz, 1.0),
866 )
867 }
868
869 /// Creates a left-handed orthographic projection matrix with `[0,1]` depth range.
870 #[inline]
871 pub fn orthographic_lhrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4]orthographic_lh().(
872 left: f64,
873 right: f64,
874 bottom: f64,
875 top: f64,
876 near: f64,
877 far: f64,
878 ) -> Selfrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4] {
879 let rcp_width = 1.0 rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Div<Self>`]div()./rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Div<Self>`]div(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Div<Self>`]div().(right rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Sub<Self>`]sub().-rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Sub<Self>`]sub(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Sub<Self>`]sub().left);
880 let rcp_height = 1.0 rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Div<Self>`]div()./rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Div<Self>`]div(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Div<Self>`]div().(top rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Sub<Self>`]sub().-rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Sub<Self>`]sub(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Sub<Self>`]sub().bottom);
881 let r = 1.0 rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Div<Self>`]div()./rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Div<Self>`]div(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Div<Self>`]div().(far rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Sub<Self>`]sub().-rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Sub<Self>`]sub(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Sub<Self>`]sub().near);
882 Selfrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4]::from_colsrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4]from_cols().(
883 DVec4rust-analyzer cargo glam 0.24.2 f64/dvec4/DVec4#::newrust-analyzer cargo glam 0.24.2 f64/dvec4/impl#[DVec4]new().(rcp_width rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Add<Self>`]add().+rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Add<Self>`]add(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Add<Self>`]add().rcp_width, 0.0, 0.0, 0.0),
884 DVec4rust-analyzer cargo glam 0.24.2 f64/dvec4/DVec4#::newrust-analyzer cargo glam 0.24.2 f64/dvec4/impl#[DVec4]new().(0.0, rcp_height rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Add<Self>`]add().+rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Add<Self>`]add(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Add<Self>`]add().rcp_height, 0.0, 0.0),
885 DVec4rust-analyzer cargo glam 0.24.2 f64/dvec4/DVec4#::newrust-analyzer cargo glam 0.24.2 f64/dvec4/impl#[DVec4]new().(0.0, 0.0, r, 0.0),
886 DVec4rust-analyzer cargo glam 0.24.2 f64/dvec4/DVec4#::newrust-analyzer cargo glam 0.24.2 f64/dvec4/impl#[DVec4]new().(
887 -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][Neg]neg().(left rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Add<Self>`]add().+rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Add<Self>`]add(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Add<Self>`]add().right) rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().rcp_width,
888 -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][Neg]neg().(top rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Add<Self>`]add().+rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Add<Self>`]add(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Add<Self>`]add().bottom) rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().rcp_height,
889 -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][Neg]neg().r rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().near,
890 1.0,
891 ),
892 )
893 }
894
895 /// Creates a right-handed orthographic projection matrix with `[0,1]` depth range.
896 #[inline]
897 pub fn orthographic_rhrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4]orthographic_rh().(
898 left: f64,
899 right: f64,
900 bottom: f64,
901 top: f64,
902 near: f64,
903 far: f64,
904 ) -> Selfrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4] {
905 let rcp_width = 1.0 rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Div<Self>`]div()./rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Div<Self>`]div(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Div<Self>`]div().(right rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Sub<Self>`]sub().-rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Sub<Self>`]sub(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Sub<Self>`]sub().left);
906 let rcp_height = 1.0 rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Div<Self>`]div()./rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Div<Self>`]div(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Div<Self>`]div().(top rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Sub<Self>`]sub().-rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Sub<Self>`]sub(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Sub<Self>`]sub().bottom);
907 let r = 1.0 rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Div<Self>`]div()./rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Div<Self>`]div(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Div<Self>`]div().(near rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Sub<Self>`]sub().-rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Sub<Self>`]sub(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Sub<Self>`]sub().far);
908 Selfrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4]::from_colsrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4]from_cols().(
909 DVec4rust-analyzer cargo glam 0.24.2 f64/dvec4/DVec4#::newrust-analyzer cargo glam 0.24.2 f64/dvec4/impl#[DVec4]new().(rcp_width rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Add<Self>`]add().+rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Add<Self>`]add(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Add<Self>`]add().rcp_width, 0.0, 0.0, 0.0),
910 DVec4rust-analyzer cargo glam 0.24.2 f64/dvec4/DVec4#::newrust-analyzer cargo glam 0.24.2 f64/dvec4/impl#[DVec4]new().(0.0, rcp_height rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Add<Self>`]add().+rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Add<Self>`]add(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Add<Self>`]add().rcp_height, 0.0, 0.0),
911 DVec4rust-analyzer cargo glam 0.24.2 f64/dvec4/DVec4#::newrust-analyzer cargo glam 0.24.2 f64/dvec4/impl#[DVec4]new().(0.0, 0.0, r, 0.0),
912 DVec4rust-analyzer cargo glam 0.24.2 f64/dvec4/DVec4#::newrust-analyzer cargo glam 0.24.2 f64/dvec4/impl#[DVec4]new().(
913 -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][Neg]neg().(left rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Add<Self>`]add().+rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Add<Self>`]add(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Add<Self>`]add().right) rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().rcp_width,
914 -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][Neg]neg().(top rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Add<Self>`]add().+rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Add<Self>`]add(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Add<Self>`]add().bottom) rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().rcp_height,
915 r rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().near,
916 1.0,
917 ),
918 )
919 }
920
921 /// Transforms the given 3D vector as a point, applying perspective correction.
922 ///
923 /// This is the equivalent of multiplying the 3D vector as a 4D vector where `w` is `1.0`.
924 /// The perspective divide is performed meaning the resulting 3D vector is divided by `w`.
925 ///
926 /// This method assumes that `self` contains a projective transform.
927 #[inline]
928 pub fn project_point3rust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4]project_point3().(&self, rhs: DVec3rust-analyzer cargo glam 0.24.2 f64/dvec3/DVec3#) -> DVec3rust-analyzer cargo glam 0.24.2 f64/dvec3/DVec3# {
929 let mut res = self.x_axisrust-analyzer cargo glam 0.24.2 f64/dmat4/DMat4#x_axis..mulrust-analyzer cargo glam 0.24.2 f64/dvec4/impl#[DVec4][`Mul<f64>`]mul().(rhs.xrust-analyzer cargo glam 0.24.2 f64/dvec3/DVec3#x.);
930 res = self.y_axisrust-analyzer cargo glam 0.24.2 f64/dmat4/DMat4#y_axis..mulrust-analyzer cargo glam 0.24.2 f64/dvec4/impl#[DVec4][`Mul<f64>`]mul().(rhs.yrust-analyzer cargo glam 0.24.2 f64/dvec3/DVec3#y.).addrust-analyzer cargo glam 0.24.2 f64/dvec4/impl#[DVec4][`Add<Self>`]add().(res);
931 res = self.z_axisrust-analyzer cargo glam 0.24.2 f64/dmat4/DMat4#z_axis..mulrust-analyzer cargo glam 0.24.2 f64/dvec4/impl#[DVec4][`Mul<f64>`]mul().(rhs.zrust-analyzer cargo glam 0.24.2 f64/dvec3/DVec3#z.).addrust-analyzer cargo glam 0.24.2 f64/dvec4/impl#[DVec4][`Add<Self>`]add().(res);
932 res = self.w_axisrust-analyzer cargo glam 0.24.2 f64/dmat4/DMat4#w_axis..addrust-analyzer cargo glam 0.24.2 f64/dvec4/impl#[DVec4][`Add<Self>`]add().(res);
933 res = res.mulrust-analyzer cargo glam 0.24.2 f64/dvec4/impl#[DVec4][`Mul<Self>`]mul().(res.wwwwrust-analyzer cargo glam 0.24.2 swizzles/dvec4_impl/impl#[DVec4][Vec4Swizzles]wwww().().reciprust-analyzer cargo glam 0.24.2 f64/dvec4/impl#[DVec4]recip().());
934 res.xyzrust-analyzer cargo glam 0.24.2 swizzles/dvec4_impl/impl#[DVec4][Vec4Swizzles]xyz().()
935 }
936
937 /// Transforms the given 3D vector as a point.
938 ///
939 /// This is the equivalent of multiplying the 3D vector as a 4D vector where `w` is
940 /// `1.0`.
941 ///
942 /// This method assumes that `self` contains a valid affine transform. It does not perform
943 /// a persective divide, if `self` contains a perspective transform, or if you are unsure,
944 /// the [`Self::project_point3()`] method should be used instead.
945 ///
946 /// # Panics
947 ///
948 /// Will panic if the 3rd row of `self` is not `(0, 0, 0, 1)` when `glam_assert` is enabled.
949 #[inline]
950 pub fn transform_point3rust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4]transform_point3().(&self, rhs: DVec3rust-analyzer cargo glam 0.24.2 f64/dvec3/DVec3#) -> DVec3rust-analyzer cargo glam 0.24.2 f64/dvec3/DVec3# {
951 glam_assertrust-analyzer cargo glam 0.24.2 macros/glam_assert!!(self.row(3).abs_diff_eq(DVec4::W, 1e-6));
952 let mut res = self.x_axisrust-analyzer cargo glam 0.24.2 f64/dmat4/DMat4#x_axis..mulrust-analyzer cargo glam 0.24.2 f64/dvec4/impl#[DVec4][`Mul<f64>`]mul().(rhs.xrust-analyzer cargo glam 0.24.2 f64/dvec3/DVec3#x.);
953 res = self.y_axisrust-analyzer cargo glam 0.24.2 f64/dmat4/DMat4#y_axis..mulrust-analyzer cargo glam 0.24.2 f64/dvec4/impl#[DVec4][`Mul<f64>`]mul().(rhs.yrust-analyzer cargo glam 0.24.2 f64/dvec3/DVec3#y.).addrust-analyzer cargo glam 0.24.2 f64/dvec4/impl#[DVec4][`Add<Self>`]add().(res);
954 res = self.z_axisrust-analyzer cargo glam 0.24.2 f64/dmat4/DMat4#z_axis..mulrust-analyzer cargo glam 0.24.2 f64/dvec4/impl#[DVec4][`Mul<f64>`]mul().(rhs.zrust-analyzer cargo glam 0.24.2 f64/dvec3/DVec3#z.).addrust-analyzer cargo glam 0.24.2 f64/dvec4/impl#[DVec4][`Add<Self>`]add().(res);
955 res = self.w_axisrust-analyzer cargo glam 0.24.2 f64/dmat4/DMat4#w_axis..addrust-analyzer cargo glam 0.24.2 f64/dvec4/impl#[DVec4][`Add<Self>`]add().(res);
956 res.xyzrust-analyzer cargo glam 0.24.2 swizzles/dvec4_impl/impl#[DVec4][Vec4Swizzles]xyz().()
957 }
958
959 /// Transforms the give 3D vector as a direction.
960 ///
961 /// This is the equivalent of multiplying the 3D vector as a 4D vector where `w` is
962 /// `0.0`.
963 ///
964 /// This method assumes that `self` contains a valid affine transform.
965 ///
966 /// # Panics
967 ///
968 /// Will panic if the 3rd row of `self` is not `(0, 0, 0, 1)` when `glam_assert` is enabled.
969 #[inline]
970 pub fn transform_vector3rust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4]transform_vector3().(&self, rhs: DVec3rust-analyzer cargo glam 0.24.2 f64/dvec3/DVec3#) -> DVec3rust-analyzer cargo glam 0.24.2 f64/dvec3/DVec3# {
971 glam_assertrust-analyzer cargo glam 0.24.2 macros/glam_assert!!(self.row(3).abs_diff_eq(DVec4::W, 1e-6));
972 let mut res = self.x_axisrust-analyzer cargo glam 0.24.2 f64/dmat4/DMat4#x_axis..mulrust-analyzer cargo glam 0.24.2 f64/dvec4/impl#[DVec4][`Mul<f64>`]mul().(rhs.xrust-analyzer cargo glam 0.24.2 f64/dvec3/DVec3#x.);
973 res = self.y_axisrust-analyzer cargo glam 0.24.2 f64/dmat4/DMat4#y_axis..mulrust-analyzer cargo glam 0.24.2 f64/dvec4/impl#[DVec4][`Mul<f64>`]mul().(rhs.yrust-analyzer cargo glam 0.24.2 f64/dvec3/DVec3#y.).addrust-analyzer cargo glam 0.24.2 f64/dvec4/impl#[DVec4][`Add<Self>`]add().(res);
974 res = self.z_axisrust-analyzer cargo glam 0.24.2 f64/dmat4/DMat4#z_axis..mulrust-analyzer cargo glam 0.24.2 f64/dvec4/impl#[DVec4][`Mul<f64>`]mul().(rhs.zrust-analyzer cargo glam 0.24.2 f64/dvec3/DVec3#z.).addrust-analyzer cargo glam 0.24.2 f64/dvec4/impl#[DVec4][`Add<Self>`]add().(res);
975 res.xyzrust-analyzer cargo glam 0.24.2 swizzles/dvec4_impl/impl#[DVec4][Vec4Swizzles]xyz().()
976 }
977
978 /// Transforms a 4D vector.
979 #[inline]
980 pub fn mul_vec4rust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4]mul_vec4().(&self, rhs: DVec4rust-analyzer cargo glam 0.24.2 f64/dvec4/DVec4#) -> DVec4rust-analyzer cargo glam 0.24.2 f64/dvec4/DVec4# {
981 let mut res = self.x_axisrust-analyzer cargo glam 0.24.2 f64/dmat4/DMat4#x_axis..mulrust-analyzer cargo glam 0.24.2 f64/dvec4/impl#[DVec4][`Mul<f64>`]mul().(rhs.xrust-analyzer cargo glam 0.24.2 f64/dvec4/DVec4#x.);
982 res = res.addrust-analyzer cargo glam 0.24.2 f64/dvec4/impl#[DVec4][`Add<Self>`]add().(self.y_axisrust-analyzer cargo glam 0.24.2 f64/dmat4/DMat4#y_axis..mulrust-analyzer cargo glam 0.24.2 f64/dvec4/impl#[DVec4][`Mul<f64>`]mul().(rhs.yrust-analyzer cargo glam 0.24.2 f64/dvec4/DVec4#y.));
983 res = res.addrust-analyzer cargo glam 0.24.2 f64/dvec4/impl#[DVec4][`Add<Self>`]add().(self.z_axisrust-analyzer cargo glam 0.24.2 f64/dmat4/DMat4#z_axis..mulrust-analyzer cargo glam 0.24.2 f64/dvec4/impl#[DVec4][`Mul<f64>`]mul().(rhs.zrust-analyzer cargo glam 0.24.2 f64/dvec4/DVec4#z.));
984 res = res.addrust-analyzer cargo glam 0.24.2 f64/dvec4/impl#[DVec4][`Add<Self>`]add().(self.w_axisrust-analyzer cargo glam 0.24.2 f64/dmat4/DMat4#w_axis..mulrust-analyzer cargo glam 0.24.2 f64/dvec4/impl#[DVec4][`Mul<f64>`]mul().(rhs.wrust-analyzer cargo glam 0.24.2 f64/dvec4/DVec4#w.));
985 res
986 }
987
988 /// Multiplies two 4x4 matrices.
989 #[inline]
990 pub fn mul_mat4rust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4]mul_mat4().(&self, rhs: &Selfrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4]) -> Selfrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4] {
991 Selfrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4]::from_colsrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4]from_cols().(
992 self.mulrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4][`Mul<DVec4>`]mul().(rhs.x_axisrust-analyzer cargo glam 0.24.2 f64/dmat4/DMat4#x_axis.),
993 self.mulrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4][`Mul<DVec4>`]mul().(rhs.y_axisrust-analyzer cargo glam 0.24.2 f64/dmat4/DMat4#y_axis.),
994 self.mulrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4][`Mul<DVec4>`]mul().(rhs.z_axisrust-analyzer cargo glam 0.24.2 f64/dmat4/DMat4#z_axis.),
995 self.mulrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4][`Mul<DVec4>`]mul().(rhs.w_axisrust-analyzer cargo glam 0.24.2 f64/dmat4/DMat4#w_axis.),
996 )
997 }
998
999 /// Adds two 4x4 matrices.
1000 #[inline]
1001 pub fn add_mat4rust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4]add_mat4().(&self, rhs: &Selfrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4]) -> Selfrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4] {
1002 Selfrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4]::from_colsrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4]from_cols().(
1003 self.x_axisrust-analyzer cargo glam 0.24.2 f64/dmat4/DMat4#x_axis..addrust-analyzer cargo glam 0.24.2 f64/dvec4/impl#[DVec4][`Add<Self>`]add().(rhs.x_axisrust-analyzer cargo glam 0.24.2 f64/dmat4/DMat4#x_axis.),
1004 self.y_axisrust-analyzer cargo glam 0.24.2 f64/dmat4/DMat4#y_axis..addrust-analyzer cargo glam 0.24.2 f64/dvec4/impl#[DVec4][`Add<Self>`]add().(rhs.y_axisrust-analyzer cargo glam 0.24.2 f64/dmat4/DMat4#y_axis.),
1005 self.z_axisrust-analyzer cargo glam 0.24.2 f64/dmat4/DMat4#z_axis..addrust-analyzer cargo glam 0.24.2 f64/dvec4/impl#[DVec4][`Add<Self>`]add().(rhs.z_axisrust-analyzer cargo glam 0.24.2 f64/dmat4/DMat4#z_axis.),
1006 self.w_axisrust-analyzer cargo glam 0.24.2 f64/dmat4/DMat4#w_axis..addrust-analyzer cargo glam 0.24.2 f64/dvec4/impl#[DVec4][`Add<Self>`]add().(rhs.w_axisrust-analyzer cargo glam 0.24.2 f64/dmat4/DMat4#w_axis.),
1007 )
1008 }
1009
1010 /// Subtracts two 4x4 matrices.
1011 #[inline]
1012 pub fn sub_mat4rust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4]sub_mat4().(&self, rhs: &Selfrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4]) -> Selfrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4] {
1013 Selfrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4]::from_colsrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4]from_cols().(
1014 self.x_axisrust-analyzer cargo glam 0.24.2 f64/dmat4/DMat4#x_axis..subrust-analyzer cargo glam 0.24.2 f64/dvec4/impl#[DVec4][`Sub<Self>`]sub().(rhs.x_axisrust-analyzer cargo glam 0.24.2 f64/dmat4/DMat4#x_axis.),
1015 self.y_axisrust-analyzer cargo glam 0.24.2 f64/dmat4/DMat4#y_axis..subrust-analyzer cargo glam 0.24.2 f64/dvec4/impl#[DVec4][`Sub<Self>`]sub().(rhs.y_axisrust-analyzer cargo glam 0.24.2 f64/dmat4/DMat4#y_axis.),
1016 self.z_axisrust-analyzer cargo glam 0.24.2 f64/dmat4/DMat4#z_axis..subrust-analyzer cargo glam 0.24.2 f64/dvec4/impl#[DVec4][`Sub<Self>`]sub().(rhs.z_axisrust-analyzer cargo glam 0.24.2 f64/dmat4/DMat4#z_axis.),
1017 self.w_axisrust-analyzer cargo glam 0.24.2 f64/dmat4/DMat4#w_axis..subrust-analyzer cargo glam 0.24.2 f64/dvec4/impl#[DVec4][`Sub<Self>`]sub().(rhs.w_axisrust-analyzer cargo glam 0.24.2 f64/dmat4/DMat4#w_axis.),
1018 )
1019 }
1020
1021 /// Multiplies a 4x4 matrix by a scalar.
1022 #[inline]
1023 pub fn mul_scalarrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4]mul_scalar().(&self, rhs: f64) -> Selfrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4] {
1024 Selfrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4]::from_colsrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4]from_cols().(
1025 self.x_axisrust-analyzer cargo glam 0.24.2 f64/dmat4/DMat4#x_axis..mulrust-analyzer cargo glam 0.24.2 f64/dvec4/impl#[DVec4][`Mul<f64>`]mul().(rhs),
1026 self.y_axisrust-analyzer cargo glam 0.24.2 f64/dmat4/DMat4#y_axis..mulrust-analyzer cargo glam 0.24.2 f64/dvec4/impl#[DVec4][`Mul<f64>`]mul().(rhs),
1027 self.z_axisrust-analyzer cargo glam 0.24.2 f64/dmat4/DMat4#z_axis..mulrust-analyzer cargo glam 0.24.2 f64/dvec4/impl#[DVec4][`Mul<f64>`]mul().(rhs),
1028 self.w_axisrust-analyzer cargo glam 0.24.2 f64/dmat4/DMat4#w_axis..mulrust-analyzer cargo glam 0.24.2 f64/dvec4/impl#[DVec4][`Mul<f64>`]mul().(rhs),
1029 )
1030 }
1031
1032 /// Returns true if the absolute difference of all elements between `self` and `rhs`
1033 /// is less than or equal to `max_abs_diff`.
1034 ///
1035 /// This can be used to compare if two matrices contain similar elements. It works best
1036 /// when comparing with a known value. The `max_abs_diff` that should be used used
1037 /// depends on the values being compared against.
1038 ///
1039 /// For more see
1040 /// [comparing floating point numbers](https://randomascii.wordpress.com/2012/02/25/comparing-floating-point-numbers-2012-edition/).
1041 #[inline]
1042 pub fn abs_diff_eqrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4]abs_diff_eq().(&self, rhs: Selfrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4], max_abs_diff: f64) -> bool {
1043 self.x_axisrust-analyzer cargo glam 0.24.2 f64/dmat4/DMat4#x_axis..abs_diff_eqrust-analyzer cargo glam 0.24.2 f64/dvec4/impl#[DVec4]abs_diff_eq().(rhs.x_axisrust-analyzer cargo glam 0.24.2 f64/dmat4/DMat4#x_axis., max_abs_diff)
1044 && self.y_axisrust-analyzer cargo glam 0.24.2 f64/dmat4/DMat4#y_axis..abs_diff_eqrust-analyzer cargo glam 0.24.2 f64/dvec4/impl#[DVec4]abs_diff_eq().(rhs.y_axisrust-analyzer cargo glam 0.24.2 f64/dmat4/DMat4#y_axis., max_abs_diff)
1045 && self.z_axisrust-analyzer cargo glam 0.24.2 f64/dmat4/DMat4#z_axis..abs_diff_eqrust-analyzer cargo glam 0.24.2 f64/dvec4/impl#[DVec4]abs_diff_eq().(rhs.z_axisrust-analyzer cargo glam 0.24.2 f64/dmat4/DMat4#z_axis., max_abs_diff)
1046 && self.w_axisrust-analyzer cargo glam 0.24.2 f64/dmat4/DMat4#w_axis..abs_diff_eqrust-analyzer cargo glam 0.24.2 f64/dvec4/impl#[DVec4]abs_diff_eq().(rhs.w_axisrust-analyzer cargo glam 0.24.2 f64/dmat4/DMat4#w_axis., max_abs_diff)
1047 }
1048
1049 #[inline]
1050 pub fn as_mat4rust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4]as_mat4().(&self) -> Mat4rust-analyzer cargo glam 0.24.2 f32/sse2/mat4/Mat4# {
1051 Mat4rust-analyzer cargo glam 0.24.2 f32/sse2/mat4/Mat4#::from_colsrust-analyzer cargo glam 0.24.2 f32/sse2/mat4/impl#[Mat4]from_cols().(
1052 self.x_axisrust-analyzer cargo glam 0.24.2 f64/dmat4/DMat4#x_axis..as_vec4rust-analyzer cargo glam 0.24.2 f64/dvec4/impl#[DVec4]as_vec4().(),
1053 self.y_axisrust-analyzer cargo glam 0.24.2 f64/dmat4/DMat4#y_axis..as_vec4rust-analyzer cargo glam 0.24.2 f64/dvec4/impl#[DVec4]as_vec4().(),
1054 self.z_axisrust-analyzer cargo glam 0.24.2 f64/dmat4/DMat4#z_axis..as_vec4rust-analyzer cargo glam 0.24.2 f64/dvec4/impl#[DVec4]as_vec4().(),
1055 self.w_axisrust-analyzer cargo glam 0.24.2 f64/dmat4/DMat4#w_axis..as_vec4rust-analyzer cargo glam 0.24.2 f64/dvec4/impl#[DVec4]as_vec4().(),
1056 )
1057 }
1058 }
1059
1060 impl Defaultrust-analyzer cargo core https://github.com/rust-lang/rust/library/core default/Default# for DMat4rust-analyzer cargo glam 0.24.2 f64/dmat4/DMat4# {
1061 #[inline]
1062 fn defaultrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4][Default]default().() -> Selfrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4][Default] {
1063 Selfrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4][Default]::IDENTITYrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4]IDENTITY.
1064 }
1065 }
1066
1067 impl Addrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Add#<DMat4rust-analyzer cargo glam 0.24.2 f64/dmat4/DMat4#> for DMat4rust-analyzer cargo glam 0.24.2 f64/dmat4/DMat4# {
1068 type Outputrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4][`Add<Self>`]Output# = Selfrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4][`Add<Self>`];
1069 #[inline]
1070 fn addrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4][`Add<Self>`]add().(self, rhs: Selfrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4][`Add<Self>`]) -> Selfrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4][`Add<Self>`]::Outputrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Add#Output# {
1071 self.add_mat4rust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4]add_mat4().(&rhs)
1072 }
1073 }
1074
1075 impl AddAssignrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/AddAssign#<DMat4rust-analyzer cargo glam 0.24.2 f64/dmat4/DMat4#> for DMat4rust-analyzer cargo glam 0.24.2 f64/dmat4/DMat4# {
1076 #[inline]
1077 fn add_assignrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4][`AddAssign<Self>`]add_assign().(&mut self, rhs: Selfrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4][`AddAssign<Self>`]) {
1078 *rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/deref/impl#[`&mut T`][Deref]deref().self = self.add_mat4rust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4]add_mat4().(&rhs);
1079 }
1080 }
1081
1082 impl Subrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Sub#<DMat4rust-analyzer cargo glam 0.24.2 f64/dmat4/DMat4#> for DMat4rust-analyzer cargo glam 0.24.2 f64/dmat4/DMat4# {
1083 type Outputrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4][`Sub<Self>`]Output# = Selfrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4][`Sub<Self>`];
1084 #[inline]
1085 fn subrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4][`Sub<Self>`]sub().(self, rhs: Selfrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4][`Sub<Self>`]) -> Selfrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4][`Sub<Self>`]::Outputrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Sub#Output# {
1086 self.sub_mat4rust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4]sub_mat4().(&rhs)
1087 }
1088 }
1089
1090 impl SubAssignrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/SubAssign#<DMat4rust-analyzer cargo glam 0.24.2 f64/dmat4/DMat4#> for DMat4rust-analyzer cargo glam 0.24.2 f64/dmat4/DMat4# {
1091 #[inline]
1092 fn sub_assignrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4][`SubAssign<Self>`]sub_assign().(&mut self, rhs: Selfrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4][`SubAssign<Self>`]) {
1093 *rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/deref/impl#[`&mut T`][Deref]deref().self = self.sub_mat4rust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4]sub_mat4().(&rhs);
1094 }
1095 }
1096
1097 impl Negrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Neg# for DMat4rust-analyzer cargo glam 0.24.2 f64/dmat4/DMat4# {
1098 type Outputrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4][Neg]Output# = Selfrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4][Neg];
1099 #[inline]
1100 fn negrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4][Neg]neg().(self) -> Selfrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4][Neg]::Outputrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Neg#Output# {
1101 Selfrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4][Neg]::from_colsrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4]from_cols().(
1102 self.x_axisrust-analyzer cargo glam 0.24.2 f64/dmat4/DMat4#x_axis..negrust-analyzer cargo glam 0.24.2 f64/dvec4/impl#[DVec4][Neg]neg().(),
1103 self.y_axisrust-analyzer cargo glam 0.24.2 f64/dmat4/DMat4#y_axis..negrust-analyzer cargo glam 0.24.2 f64/dvec4/impl#[DVec4][Neg]neg().(),
1104 self.z_axisrust-analyzer cargo glam 0.24.2 f64/dmat4/DMat4#z_axis..negrust-analyzer cargo glam 0.24.2 f64/dvec4/impl#[DVec4][Neg]neg().(),
1105 self.w_axisrust-analyzer cargo glam 0.24.2 f64/dmat4/DMat4#w_axis..negrust-analyzer cargo glam 0.24.2 f64/dvec4/impl#[DVec4][Neg]neg().(),
1106 )
1107 }
1108 }
1109
1110 impl Mulrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Mul#<DMat4rust-analyzer cargo glam 0.24.2 f64/dmat4/DMat4#> for DMat4rust-analyzer cargo glam 0.24.2 f64/dmat4/DMat4# {
1111 type Outputrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4][`Mul<Self>`]Output# = Selfrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4][`Mul<Self>`];
1112 #[inline]
1113 fn mulrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4][`Mul<Self>`]mul().(self, rhs: Selfrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4][`Mul<Self>`]) -> Selfrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4][`Mul<Self>`]::Outputrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Mul#Output# {
1114 self.mul_mat4rust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4]mul_mat4().(&rhs)
1115 }
1116 }
1117
1118 impl MulAssignrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/MulAssign#<DMat4rust-analyzer cargo glam 0.24.2 f64/dmat4/DMat4#> for DMat4rust-analyzer cargo glam 0.24.2 f64/dmat4/DMat4# {
1119 #[inline]
1120 fn mul_assignrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4][`MulAssign<Self>`]mul_assign().(&mut self, rhs: Selfrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4][`MulAssign<Self>`]) {
1121 *rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/deref/impl#[`&mut T`][Deref]deref().self = self.mul_mat4rust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4]mul_mat4().(&rhs);
1122 }
1123 }
1124
1125 impl Mulrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Mul#<DVec4rust-analyzer cargo glam 0.24.2 f64/dvec4/DVec4#> for DMat4rust-analyzer cargo glam 0.24.2 f64/dmat4/DMat4# {
1126 type Outputrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4][`Mul<DVec4>`]Output# = DVec4rust-analyzer cargo glam 0.24.2 f64/dvec4/DVec4#;
1127 #[inline]
1128 fn mulrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4][`Mul<DVec4>`]mul().(self, rhs: DVec4rust-analyzer cargo glam 0.24.2 f64/dvec4/DVec4#) -> Selfrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4][`Mul<DVec4>`]::Outputrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Mul#Output# {
1129 self.mul_vec4rust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4]mul_vec4().(rhs)
1130 }
1131 }
1132
1133 impl Mulrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Mul#<DMat4rust-analyzer cargo glam 0.24.2 f64/dmat4/DMat4#> for f64 {
1134 type Outputrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[f64][`Mul<DMat4>`]Output# = DMat4rust-analyzer cargo glam 0.24.2 f64/dmat4/DMat4#;
1135 #[inline]
1136 fn mulrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[f64][`Mul<DMat4>`]mul().(self, rhs: DMat4rust-analyzer cargo glam 0.24.2 f64/dmat4/DMat4#) -> Selfrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[f64][`Mul<DMat4>`]::Outputrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Mul#Output# {
1137 rhs.mul_scalarrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4]mul_scalar().(self)
1138 }
1139 }
1140
1141 impl Mulrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Mul#<f64> for DMat4rust-analyzer cargo glam 0.24.2 f64/dmat4/DMat4# {
1142 type Outputrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4][`Mul<f64>`]Output# = Selfrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4][`Mul<f64>`];
1143 #[inline]
1144 fn mulrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4][`Mul<f64>`]mul().(self, rhs: f64) -> Selfrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4][`Mul<f64>`]::Outputrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/Mul#Output# {
1145 self.mul_scalarrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4]mul_scalar().(rhs)
1146 }
1147 }
1148
1149 impl MulAssignrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/MulAssign#<f64> for DMat4rust-analyzer cargo glam 0.24.2 f64/dmat4/DMat4# {
1150 #[inline]
1151 fn mul_assignrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4][`MulAssign<f64>`]mul_assign().(&mut self, rhs: f64) {
1152 *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 f64/dmat4/impl#[DMat4]mul_scalar().(rhs);
1153 }
1154 }
1155
1156 impl Sumrust-analyzer cargo core https://github.com/rust-lang/rust/library/core iter/traits/accum/Sum#<Selfrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4][`Sum<Self>`]> for DMat4rust-analyzer cargo glam 0.24.2 f64/dmat4/DMat4# {
1157 fn sumrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4][`Sum<Self>`]sum().<I>(iter: I) -> Selfrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4][`Sum<Self>`]
1158 where
1159 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 f64/dmat4/impl#[DMat4][`Sum<Self>`]>,
1160 {
1161 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 f64/dmat4/impl#[DMat4][`Sum<Self>`]::ZEROrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4]ZERO., Selfrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4][`Sum<Self>`]::addrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4][`Add<Self>`]add().)
1162 }
1163 }
1164
1165 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 f64/dmat4/impl#[DMat4][`Sum<&'a DMat4>`]> for DMat4rust-analyzer cargo glam 0.24.2 f64/dmat4/DMat4# {
1166 fn sumrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4][`Sum<&'a DMat4>`]sum().<I>(iter: I) -> Selfrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4][`Sum<&'a DMat4>`]
1167 where
1168 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 f64/dmat4/impl#[DMat4][`Sum<&'a DMat4>`]>,
1169 {
1170 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 f64/dmat4/impl#[DMat4][`Sum<&'a DMat4>`]::ZEROrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4]ZERO., |a, &b| Selfrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4][`Sum<&'a DMat4>`]::addrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4][`Add<Self>`]add().(a, b))
1171 }
1172 }
1173
1174 impl Productrust-analyzer cargo core https://github.com/rust-lang/rust/library/core iter/traits/accum/Product# for DMat4rust-analyzer cargo glam 0.24.2 f64/dmat4/DMat4# {
1175 fn productrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4][`Product<Self>`]product().<I>(iter: I) -> Selfrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4][`Product<Self>`]
1176 where
1177 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 f64/dmat4/impl#[DMat4][`Product<Self>`]>,
1178 {
1179 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 f64/dmat4/impl#[DMat4][`Product<Self>`]::IDENTITYrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4]IDENTITY., Selfrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4][`Product<Self>`]::mulrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4][`Mul<Self>`]mul().)
1180 }
1181 }
1182
1183 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 f64/dmat4/impl#[DMat4][`Product<&'a DMat4>`]> for DMat4rust-analyzer cargo glam 0.24.2 f64/dmat4/DMat4# {
1184 fn productrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4][`Product<&'a DMat4>`]product().<I>(iter: I) -> Selfrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4][`Product<&'a DMat4>`]
1185 where
1186 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 f64/dmat4/impl#[DMat4][`Product<&'a DMat4>`]>,
1187 {
1188 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 f64/dmat4/impl#[DMat4][`Product<&'a DMat4>`]::IDENTITYrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4]IDENTITY., |a, &b| Selfrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4][`Product<&'a DMat4>`]::mulrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4][`Mul<Self>`]mul().(a, b))
1189 }
1190 }
1191
1192 impl PartialEqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/PartialEq# for DMat4rust-analyzer cargo glam 0.24.2 f64/dmat4/DMat4# {
1193 #[inline]
1194 fn eqrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4][`PartialEq<Self>`]eq().(&self, rhs: &Selfrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4][`PartialEq<Self>`]) -> bool {
1195 self.x_axisrust-analyzer cargo glam 0.24.2 f64/dmat4/DMat4#x_axis..eqrust-analyzer cargo glam 0.24.2 f64/dvec4/impl#[DVec4][`PartialEq<Self>`]eq().(&rhs.x_axisrust-analyzer cargo glam 0.24.2 f64/dmat4/DMat4#x_axis.)
1196 && self.y_axisrust-analyzer cargo glam 0.24.2 f64/dmat4/DMat4#y_axis..eqrust-analyzer cargo glam 0.24.2 f64/dvec4/impl#[DVec4][`PartialEq<Self>`]eq().(&rhs.y_axisrust-analyzer cargo glam 0.24.2 f64/dmat4/DMat4#y_axis.)
1197 && self.z_axisrust-analyzer cargo glam 0.24.2 f64/dmat4/DMat4#z_axis..eqrust-analyzer cargo glam 0.24.2 f64/dvec4/impl#[DVec4][`PartialEq<Self>`]eq().(&rhs.z_axisrust-analyzer cargo glam 0.24.2 f64/dmat4/DMat4#z_axis.)
1198 && self.w_axisrust-analyzer cargo glam 0.24.2 f64/dmat4/DMat4#w_axis..eqrust-analyzer cargo glam 0.24.2 f64/dvec4/impl#[DVec4][`PartialEq<Self>`]eq().(&rhs.w_axisrust-analyzer cargo glam 0.24.2 f64/dmat4/DMat4#w_axis.)
1199 }
1200 }
1201
1202 #[cfg(not(target_arch = "spirv"))]
1203 impl AsRefrust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/AsRef#<[f64; 16]> for DMat4rust-analyzer cargo glam 0.24.2 f64/dmat4/DMat4# {
1204 #[inline]
1205 fn as_refrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4][`AsRef<[f64; 16]>`]as_ref().(&self) -> &[f64; 16] {
1206 unsafe { &*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/deref/Deref#deref().(self as *const Selfrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4][`AsRef<[f64; 16]>`] as *const [f64; 16]) }
1207 }
1208 }
1209
1210 #[cfg(not(target_arch = "spirv"))]
1211 impl AsMutrust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/AsMut#<[f64; 16]> for DMat4rust-analyzer cargo glam 0.24.2 f64/dmat4/DMat4# {
1212 #[inline]
1213 fn as_mutrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4][`AsMut<[f64; 16]>`]as_mut().(&mut self) -> &mut [f64; 16] {
1214 unsafe { &mut *rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/deref/Deref#deref().(self as *mut Selfrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4][`AsMut<[f64; 16]>`] as *mut [f64; 16]) }
1215 }
1216 }
1217
1218 #[cfg(not(target_arch = "spirv"))]
1219 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 DMat4rust-analyzer cargo glam 0.24.2 f64/dmat4/DMat4# {
1220 fn fmtrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4][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# {
1221 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!!(DMat4))
1222 .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 f64/dmat4/DMat4#x_axis.)
1223 .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 f64/dmat4/DMat4#y_axis.)
1224 .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 f64/dmat4/DMat4#z_axis.)
1225 .fieldrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/builders/impl#[`DebugStruct<'a, 'b>`]field().("w_axis", &self.w_axisrust-analyzer cargo glam 0.24.2 f64/dmat4/DMat4#w_axis.)
1226 .finishrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/builders/impl#[`DebugStruct<'a, 'b>`]finish().()
1227 }
1228 }
1229
1230 #[cfg(not(target_arch = "spirv"))]
1231 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 DMat4rust-analyzer cargo glam 0.24.2 f64/dmat4/DMat4# {
1232 fn fmtrust-analyzer cargo glam 0.24.2 f64/dmat4/impl#[DMat4][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# {
1233 writerust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/write!!(
1234 f,
1235 "[{}, {}, {}, {}]",
1236 self.x_axisrust-analyzer cargo glam 0.24.2 f64/dmat4/DMat4#x_axis., self.y_axisrust-analyzer cargo glam 0.24.2 f64/dmat4/DMat4#y_axis., self.z_axisrust-analyzer cargo glam 0.24.2 f64/dmat4/DMat4#z_axis., self.w_axisrust-analyzer cargo glam 0.24.2 f64/dmat4/DMat4#w_axis.
1237 )
1238 }
1239 }