Debian Codegraph @

debian/missing-sources/glam-0.16.0/src/core/scalar/matrix.rs

raw symbols SCIP
1 use craterust-analyzer cargo glam 0.16.0 crate/::corerust-analyzer cargo glam 0.16.0 core/::{
2 storagerust-analyzer cargo glam 0.16.0 core/storage/::{Columns2rust-analyzer cargo glam 0.16.0 core/storage/Columns2#, Columns3rust-analyzer cargo glam 0.16.0 core/storage/Columns3#, Columns4rust-analyzer cargo glam 0.16.0 core/storage/Columns4#, XYrust-analyzer cargo glam 0.16.0 core/storage/XY#, XYZrust-analyzer cargo glam 0.16.0 core/storage/XYZ#, XYZF32A16rust-analyzer cargo glam 0.16.0 core/storage/XYZF32A16#, XYZWrust-analyzer cargo glam 0.16.0 core/storage/XYZW#},
3 traitsrust-analyzer cargo glam 0.16.0 core/traits/::{
4 matrixrust-analyzer cargo glam 0.16.0 core/traits/matrix/::{
5 FloatMatrix2x2rust-analyzer cargo glam 0.16.0 core/traits/matrix/FloatMatrix2x2#, FloatMatrix3x3rust-analyzer cargo glam 0.16.0 core/traits/matrix/FloatMatrix3x3#, FloatMatrix4x4rust-analyzer cargo glam 0.16.0 core/traits/matrix/FloatMatrix4x4#, Matrixrust-analyzer cargo glam 0.16.0 core/traits/matrix/Matrix#, Matrix2x2rust-analyzer cargo glam 0.16.0 core/traits/matrix/Matrix2x2#, Matrix3x3rust-analyzer cargo glam 0.16.0 core/traits/matrix/Matrix3x3#,
6 Matrix4x4rust-analyzer cargo glam 0.16.0 core/traits/matrix/Matrix4x4#, MatrixConstrust-analyzer cargo glam 0.16.0 core/traits/matrix/MatrixConst#,
7 },
8 projectionrust-analyzer cargo glam 0.16.0 core/traits/projection/::ProjectionMatrixrust-analyzer cargo glam 0.16.0 core/traits/projection/ProjectionMatrix#,
9 scalarrust-analyzer cargo glam 0.16.0 core/traits/scalar/::{FloatExrust-analyzer cargo glam 0.16.0 core/traits/scalar/FloatEx#, NumExrust-analyzer cargo glam 0.16.0 core/traits/scalar/NumEx#},
10 vectorrust-analyzer cargo glam 0.16.0 core/traits/vector/::*,
11 },
12 };
13
14 impl<T: NumExrust-analyzer cargo glam 0.16.0 core/traits/scalar/NumEx#> MatrixConstrust-analyzer cargo glam 0.16.0 core/traits/matrix/MatrixConst# for Columns2rust-analyzer cargo glam 0.16.0 core/storage/Columns2#<XYrust-analyzer cargo glam 0.16.0 core/storage/XY#<T>> {
15 const ZEROrust-analyzer cargo glam 0.16.0 core/scalar/matrix/impl#[`Columns2<XY<T>>`][MatrixConst]ZERO.: Selfrust-analyzer cargo glam 0.16.0 core/scalar/matrix/impl#[`Columns2<XY<T>>`][MatrixConst] = Selfrust-analyzer cargo glam 0.16.0 core/scalar/matrix/impl#[`Columns2<XY<T>>`][MatrixConst] {
16 x_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns2#x_axis.: XYrust-analyzer cargo glam 0.16.0 core/storage/XY#::ZEROrust-analyzer cargo glam 0.16.0 core/scalar/vector/impl#[`XY<T>`][VectorConst]ZERO.,
17 y_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns2#y_axis.: XYrust-analyzer cargo glam 0.16.0 core/storage/XY#::ZEROrust-analyzer cargo glam 0.16.0 core/scalar/vector/impl#[`XY<T>`][VectorConst]ZERO.,
18 };
19 const IDENTITYrust-analyzer cargo glam 0.16.0 core/scalar/matrix/impl#[`Columns2<XY<T>>`][MatrixConst]IDENTITY.: Selfrust-analyzer cargo glam 0.16.0 core/scalar/matrix/impl#[`Columns2<XY<T>>`][MatrixConst] = Selfrust-analyzer cargo glam 0.16.0 core/scalar/matrix/impl#[`Columns2<XY<T>>`][MatrixConst] {
20 x_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns2#x_axis.: XYrust-analyzer cargo glam 0.16.0 core/storage/XY#::Xrust-analyzer cargo glam 0.16.0 core/scalar/vector/impl#[`XY<T>`][Vector2Const]X.,
21 y_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns2#y_axis.: XYrust-analyzer cargo glam 0.16.0 core/storage/XY#::Yrust-analyzer cargo glam 0.16.0 core/scalar/vector/impl#[`XY<T>`][Vector2Const]Y.,
22 };
23 }
24
25 impl<T: NumExrust-analyzer cargo glam 0.16.0 core/traits/scalar/NumEx#> Matrixrust-analyzer cargo glam 0.16.0 core/traits/matrix/Matrix#<T> for Columns2rust-analyzer cargo glam 0.16.0 core/storage/Columns2#<XYrust-analyzer cargo glam 0.16.0 core/storage/XY#<T>> {}
26
27 impl<T: NumExrust-analyzer cargo glam 0.16.0 core/traits/scalar/NumEx#> Matrix2x2rust-analyzer cargo glam 0.16.0 core/traits/matrix/Matrix2x2#<T, XYrust-analyzer cargo glam 0.16.0 core/storage/XY#<T>> for Columns2rust-analyzer cargo glam 0.16.0 core/storage/Columns2#<XYrust-analyzer cargo glam 0.16.0 core/storage/XY#<T>> {
28 #[inline(always)]
29 fn from_colsrust-analyzer cargo glam 0.16.0 core/scalar/matrix/impl#[`Columns2<XY<T>>`][`Matrix2x2<T, XY<T>>`]from_cols().(x_axis: XYrust-analyzer cargo glam 0.16.0 core/storage/XY#<T>, y_axis: XYrust-analyzer cargo glam 0.16.0 core/storage/XY#<T>) -> Selfrust-analyzer cargo glam 0.16.0 core/scalar/matrix/impl#[`Columns2<XY<T>>`][`Matrix2x2<T, XY<T>>`] {
30 Selfrust-analyzer cargo glam 0.16.0 core/scalar/matrix/impl#[`Columns2<XY<T>>`][`Matrix2x2<T, XY<T>>`] { x_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns2#x_axis., y_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns2#y_axis. }
31 }
32
33 #[inline(always)]
34 fn x_axisrust-analyzer cargo glam 0.16.0 core/scalar/matrix/impl#[`Columns2<XY<T>>`][`Matrix2x2<T, XY<T>>`]x_axis().(&self) -> &XYrust-analyzer cargo glam 0.16.0 core/storage/XY#<T> {
35 &self.x_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns2#x_axis.
36 }
37
38 #[inline(always)]
39 fn y_axisrust-analyzer cargo glam 0.16.0 core/scalar/matrix/impl#[`Columns2<XY<T>>`][`Matrix2x2<T, XY<T>>`]y_axis().(&self) -> &XYrust-analyzer cargo glam 0.16.0 core/storage/XY#<T> {
40 &self.y_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns2#y_axis.
41 }
42 }
43
44 impl<T: FloatExrust-analyzer cargo glam 0.16.0 core/traits/scalar/FloatEx#> FloatMatrix2x2rust-analyzer cargo glam 0.16.0 core/traits/matrix/FloatMatrix2x2#<T, XYrust-analyzer cargo glam 0.16.0 core/storage/XY#<T>> for Columns2rust-analyzer cargo glam 0.16.0 core/storage/Columns2#<XYrust-analyzer cargo glam 0.16.0 core/storage/XY#<T>> {}
45
46 impl<T: NumExrust-analyzer cargo glam 0.16.0 core/traits/scalar/NumEx#> MatrixConstrust-analyzer cargo glam 0.16.0 core/traits/matrix/MatrixConst# for Columns3rust-analyzer cargo glam 0.16.0 core/storage/Columns3#<XYZrust-analyzer cargo glam 0.16.0 core/storage/XYZ#<T>> {
47 const ZEROrust-analyzer cargo glam 0.16.0 core/scalar/matrix/impl#[`Columns3<XYZ<T>>`][MatrixConst]ZERO.: Selfrust-analyzer cargo glam 0.16.0 core/scalar/matrix/impl#[`Columns3<XYZ<T>>`][MatrixConst] = Selfrust-analyzer cargo glam 0.16.0 core/scalar/matrix/impl#[`Columns3<XYZ<T>>`][MatrixConst] {
48 x_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns3#x_axis.: XYZrust-analyzer cargo glam 0.16.0 core/storage/XYZ#::ZEROrust-analyzer cargo glam 0.16.0 core/scalar/vector/impl#[`XYZ<T>`][VectorConst]ZERO.,
49 y_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns3#y_axis.: XYZrust-analyzer cargo glam 0.16.0 core/storage/XYZ#::ZEROrust-analyzer cargo glam 0.16.0 core/scalar/vector/impl#[`XYZ<T>`][VectorConst]ZERO.,
50 z_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns3#z_axis.: XYZrust-analyzer cargo glam 0.16.0 core/storage/XYZ#::ZEROrust-analyzer cargo glam 0.16.0 core/scalar/vector/impl#[`XYZ<T>`][VectorConst]ZERO.,
51 };
52 const IDENTITYrust-analyzer cargo glam 0.16.0 core/scalar/matrix/impl#[`Columns3<XYZ<T>>`][MatrixConst]IDENTITY.: Selfrust-analyzer cargo glam 0.16.0 core/scalar/matrix/impl#[`Columns3<XYZ<T>>`][MatrixConst] = Selfrust-analyzer cargo glam 0.16.0 core/scalar/matrix/impl#[`Columns3<XYZ<T>>`][MatrixConst] {
53 x_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns3#x_axis.: XYZrust-analyzer cargo glam 0.16.0 core/storage/XYZ#::Xrust-analyzer cargo glam 0.16.0 core/scalar/vector/impl#[`XYZ<T>`][Vector3Const]X.,
54 y_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns3#y_axis.: XYZrust-analyzer cargo glam 0.16.0 core/storage/XYZ#::Yrust-analyzer cargo glam 0.16.0 core/scalar/vector/impl#[`XYZ<T>`][Vector3Const]Y.,
55 z_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns3#z_axis.: XYZrust-analyzer cargo glam 0.16.0 core/storage/XYZ#::Zrust-analyzer cargo glam 0.16.0 core/scalar/vector/impl#[`XYZ<T>`][Vector3Const]Z.,
56 };
57 }
58
59 impl<T: NumExrust-analyzer cargo glam 0.16.0 core/traits/scalar/NumEx#> Matrixrust-analyzer cargo glam 0.16.0 core/traits/matrix/Matrix#<T> for Columns3rust-analyzer cargo glam 0.16.0 core/storage/Columns3#<XYZrust-analyzer cargo glam 0.16.0 core/storage/XYZ#<T>> {}
60
61 impl<T: NumExrust-analyzer cargo glam 0.16.0 core/traits/scalar/NumEx#> Matrix3x3rust-analyzer cargo glam 0.16.0 core/traits/matrix/Matrix3x3#<T, XYZrust-analyzer cargo glam 0.16.0 core/storage/XYZ#<T>> for Columns3rust-analyzer cargo glam 0.16.0 core/storage/Columns3#<XYZrust-analyzer cargo glam 0.16.0 core/storage/XYZ#<T>> {
62 #[inline(always)]
63 fn from_colsrust-analyzer cargo glam 0.16.0 core/scalar/matrix/impl#[`Columns3<XYZ<T>>`][`Matrix3x3<T, XYZ<T>>`]from_cols().(x_axis: XYZrust-analyzer cargo glam 0.16.0 core/storage/XYZ#<T>, y_axis: XYZrust-analyzer cargo glam 0.16.0 core/storage/XYZ#<T>, z_axis: XYZrust-analyzer cargo glam 0.16.0 core/storage/XYZ#<T>) -> Selfrust-analyzer cargo glam 0.16.0 core/scalar/matrix/impl#[`Columns3<XYZ<T>>`][`Matrix3x3<T, XYZ<T>>`] {
64 Selfrust-analyzer cargo glam 0.16.0 core/scalar/matrix/impl#[`Columns3<XYZ<T>>`][`Matrix3x3<T, XYZ<T>>`] {
65 x_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns3#x_axis.,
66 y_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns3#y_axis.,
67 z_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns3#z_axis.,
68 }
69 }
70
71 #[inline(always)]
72 fn x_axisrust-analyzer cargo glam 0.16.0 core/scalar/matrix/impl#[`Columns3<XYZ<T>>`][`Matrix3x3<T, XYZ<T>>`]x_axis().(&self) -> &XYZrust-analyzer cargo glam 0.16.0 core/storage/XYZ#<T> {
73 &self.x_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns3#x_axis.
74 }
75
76 #[inline(always)]
77 fn y_axisrust-analyzer cargo glam 0.16.0 core/scalar/matrix/impl#[`Columns3<XYZ<T>>`][`Matrix3x3<T, XYZ<T>>`]y_axis().(&self) -> &XYZrust-analyzer cargo glam 0.16.0 core/storage/XYZ#<T> {
78 &self.y_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns3#y_axis.
79 }
80
81 #[inline(always)]
82 fn z_axisrust-analyzer cargo glam 0.16.0 core/scalar/matrix/impl#[`Columns3<XYZ<T>>`][`Matrix3x3<T, XYZ<T>>`]z_axis().(&self) -> &XYZrust-analyzer cargo glam 0.16.0 core/storage/XYZ#<T> {
83 &self.z_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns3#z_axis.
84 }
85
86 #[inline]
87 fn mul_vectorrust-analyzer cargo glam 0.16.0 core/scalar/matrix/impl#[`Columns3<XYZ<T>>`][`Matrix3x3<T, XYZ<T>>`]mul_vector().(&self, other: XYZrust-analyzer cargo glam 0.16.0 core/storage/XYZ#<T>) -> XYZrust-analyzer cargo glam 0.16.0 core/storage/XYZ#<T> {
88 // default implementation uses splat_x etc, which might not be optimial. Need to check.
89 let mut res = self.x_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns3#x_axis..mul_scalarrust-analyzer cargo glam 0.16.0 core/scalar/vector/impl#[`XYZ<T>`][`Vector<T>`]mul_scalar().(other.xrust-analyzer cargo glam 0.16.0 core/storage/XYZ#x.);
90 res = self.y_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns3#y_axis..mul_scalarrust-analyzer cargo glam 0.16.0 core/scalar/vector/impl#[`XYZ<T>`][`Vector<T>`]mul_scalar().(other.yrust-analyzer cargo glam 0.16.0 core/storage/XYZ#y.).addrust-analyzer cargo glam 0.16.0 core/scalar/vector/impl#[`XYZ<T>`][`Vector<T>`]add().(res);
91 res = self.z_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns3#z_axis..mul_scalarrust-analyzer cargo glam 0.16.0 core/scalar/vector/impl#[`XYZ<T>`][`Vector<T>`]mul_scalar().(other.zrust-analyzer cargo glam 0.16.0 core/storage/XYZ#z.).addrust-analyzer cargo glam 0.16.0 core/scalar/vector/impl#[`XYZ<T>`][`Vector<T>`]add().(res);
92 res
93 }
94 }
95
96 impl<T: FloatExrust-analyzer cargo glam 0.16.0 core/traits/scalar/FloatEx#> FloatMatrix3x3rust-analyzer cargo glam 0.16.0 core/traits/matrix/FloatMatrix3x3#<T, XYZrust-analyzer cargo glam 0.16.0 core/storage/XYZ#<T>> for Columns3rust-analyzer cargo glam 0.16.0 core/storage/Columns3#<XYZrust-analyzer cargo glam 0.16.0 core/storage/XYZ#<T>> {
97 #[inline]
98 fn transform_point2rust-analyzer cargo glam 0.16.0 core/scalar/matrix/impl#[`Columns3<XYZ<T>>`][`FloatMatrix3x3<T, XYZ<T>>`]transform_point2().(&self, other: XYrust-analyzer cargo glam 0.16.0 core/storage/XY#<T>) -> XYrust-analyzer cargo glam 0.16.0 core/storage/XY#<T> {
99 // TODO: This is untested, probably slower than the high level code that uses a SIMD mat2
100 Columns2rust-analyzer cargo glam 0.16.0 core/storage/Columns2#::from_colsrust-analyzer cargo glam 0.16.0 core/scalar/matrix/impl#[`Columns2<XY<T>>`][`Matrix2x2<T, XY<T>>`]from_cols().(self.x_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns3#x_axis..intorust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/impl#[T][`Into<U>`]into().(), self.y_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns3#y_axis..intorust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/impl#[T][`Into<U>`]into().())
101 .mul_vectorrust-analyzer cargo glam 0.16.0 core/traits/matrix/Matrix2x2#mul_vector().(other)
102 .addrust-analyzer cargo glam 0.16.0 core/scalar/vector/impl#[`XY<T>`][`Vector<T>`]add().(self.z_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns3#z_axis..intorust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/impl#[T][`Into<U>`]into().())
103 }
104
105 #[inline]
106 fn transform_vector2rust-analyzer cargo glam 0.16.0 core/scalar/matrix/impl#[`Columns3<XYZ<T>>`][`FloatMatrix3x3<T, XYZ<T>>`]transform_vector2().(&self, other: XYrust-analyzer cargo glam 0.16.0 core/storage/XY#<T>) -> XYrust-analyzer cargo glam 0.16.0 core/storage/XY#<T> {
107 // TODO: This is untested, probably slower than the high level code that uses a SIMD mat2
108 Columns2rust-analyzer cargo glam 0.16.0 core/storage/Columns2#::from_colsrust-analyzer cargo glam 0.16.0 core/scalar/matrix/impl#[`Columns2<XY<T>>`][`Matrix2x2<T, XY<T>>`]from_cols().(self.x_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns3#x_axis..intorust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/impl#[T][`Into<U>`]into().(), self.y_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns3#y_axis..intorust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/impl#[T][`Into<U>`]into().()).mul_vectorrust-analyzer cargo glam 0.16.0 core/traits/matrix/Matrix2x2#mul_vector().(other)
109 }
110 }
111
112 impl MatrixConstrust-analyzer cargo glam 0.16.0 core/traits/matrix/MatrixConst# for Columns3rust-analyzer cargo glam 0.16.0 core/storage/Columns3#<XYZF32A16rust-analyzer cargo glam 0.16.0 core/storage/XYZF32A16#> {
113 const ZEROrust-analyzer cargo glam 0.16.0 core/scalar/matrix/impl#[`Columns3<XYZF32A16>`][MatrixConst]ZERO.: Selfrust-analyzer cargo glam 0.16.0 core/scalar/matrix/impl#[`Columns3<XYZF32A16>`][MatrixConst] = Selfrust-analyzer cargo glam 0.16.0 core/scalar/matrix/impl#[`Columns3<XYZF32A16>`][MatrixConst] {
114 x_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns3#x_axis.: XYZF32A16rust-analyzer cargo glam 0.16.0 core/storage/XYZF32A16#::ZEROrust-analyzer cargo glam 0.16.0 core/scalar/vector/impl#[XYZF32A16][VectorConst]ZERO.,
115 y_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns3#y_axis.: XYZF32A16rust-analyzer cargo glam 0.16.0 core/storage/XYZF32A16#::ZEROrust-analyzer cargo glam 0.16.0 core/scalar/vector/impl#[XYZF32A16][VectorConst]ZERO.,
116 z_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns3#z_axis.: XYZF32A16rust-analyzer cargo glam 0.16.0 core/storage/XYZF32A16#::ZEROrust-analyzer cargo glam 0.16.0 core/scalar/vector/impl#[XYZF32A16][VectorConst]ZERO.,
117 };
118 const IDENTITYrust-analyzer cargo glam 0.16.0 core/scalar/matrix/impl#[`Columns3<XYZF32A16>`][MatrixConst]IDENTITY.: Selfrust-analyzer cargo glam 0.16.0 core/scalar/matrix/impl#[`Columns3<XYZF32A16>`][MatrixConst] = Selfrust-analyzer cargo glam 0.16.0 core/scalar/matrix/impl#[`Columns3<XYZF32A16>`][MatrixConst] {
119 x_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns3#x_axis.: XYZF32A16rust-analyzer cargo glam 0.16.0 core/storage/XYZF32A16#::Xrust-analyzer cargo glam 0.16.0 core/scalar/vector/impl#[XYZF32A16][Vector3Const]X.,
120 y_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns3#y_axis.: XYZF32A16rust-analyzer cargo glam 0.16.0 core/storage/XYZF32A16#::Yrust-analyzer cargo glam 0.16.0 core/scalar/vector/impl#[XYZF32A16][Vector3Const]Y.,
121 z_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns3#z_axis.: XYZF32A16rust-analyzer cargo glam 0.16.0 core/storage/XYZF32A16#::Zrust-analyzer cargo glam 0.16.0 core/scalar/vector/impl#[XYZF32A16][Vector3Const]Z.,
122 };
123 }
124
125 impl Matrixrust-analyzer cargo glam 0.16.0 core/traits/matrix/Matrix#<f32> for Columns3rust-analyzer cargo glam 0.16.0 core/storage/Columns3#<XYZF32A16rust-analyzer cargo glam 0.16.0 core/storage/XYZF32A16#> {}
126
127 impl Matrix3x3rust-analyzer cargo glam 0.16.0 core/traits/matrix/Matrix3x3#<f32, XYZF32A16rust-analyzer cargo glam 0.16.0 core/storage/XYZF32A16#> for Columns3rust-analyzer cargo glam 0.16.0 core/storage/Columns3#<XYZF32A16rust-analyzer cargo glam 0.16.0 core/storage/XYZF32A16#> {
128 #[inline(always)]
129 fn from_colsrust-analyzer cargo glam 0.16.0 core/scalar/matrix/impl#[`Columns3<XYZF32A16>`][`Matrix3x3<f32, XYZF32A16>`]from_cols().(x_axis: XYZF32A16rust-analyzer cargo glam 0.16.0 core/storage/XYZF32A16#, y_axis: XYZF32A16rust-analyzer cargo glam 0.16.0 core/storage/XYZF32A16#, z_axis: XYZF32A16rust-analyzer cargo glam 0.16.0 core/storage/XYZF32A16#) -> Selfrust-analyzer cargo glam 0.16.0 core/scalar/matrix/impl#[`Columns3<XYZF32A16>`][`Matrix3x3<f32, XYZF32A16>`] {
130 Selfrust-analyzer cargo glam 0.16.0 core/scalar/matrix/impl#[`Columns3<XYZF32A16>`][`Matrix3x3<f32, XYZF32A16>`] {
131 x_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns3#x_axis.,
132 y_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns3#y_axis.,
133 z_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns3#z_axis.,
134 }
135 }
136
137 #[inline(always)]
138 fn x_axisrust-analyzer cargo glam 0.16.0 core/scalar/matrix/impl#[`Columns3<XYZF32A16>`][`Matrix3x3<f32, XYZF32A16>`]x_axis().(&self) -> &XYZF32A16rust-analyzer cargo glam 0.16.0 core/storage/XYZF32A16# {
139 &self.x_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns3#x_axis.
140 }
141
142 #[inline(always)]
143 fn y_axisrust-analyzer cargo glam 0.16.0 core/scalar/matrix/impl#[`Columns3<XYZF32A16>`][`Matrix3x3<f32, XYZF32A16>`]y_axis().(&self) -> &XYZF32A16rust-analyzer cargo glam 0.16.0 core/storage/XYZF32A16# {
144 &self.y_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns3#y_axis.
145 }
146
147 #[inline(always)]
148 fn z_axisrust-analyzer cargo glam 0.16.0 core/scalar/matrix/impl#[`Columns3<XYZF32A16>`][`Matrix3x3<f32, XYZF32A16>`]z_axis().(&self) -> &XYZF32A16rust-analyzer cargo glam 0.16.0 core/storage/XYZF32A16# {
149 &self.z_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns3#z_axis.
150 }
151 }
152
153 impl FloatMatrix3x3rust-analyzer cargo glam 0.16.0 core/traits/matrix/FloatMatrix3x3#<f32, XYZF32A16rust-analyzer cargo glam 0.16.0 core/storage/XYZF32A16#> for Columns3rust-analyzer cargo glam 0.16.0 core/storage/Columns3#<XYZF32A16rust-analyzer cargo glam 0.16.0 core/storage/XYZF32A16#> {
154 #[inline]
155 fn transform_point2rust-analyzer cargo glam 0.16.0 core/scalar/matrix/impl#[`Columns3<XYZF32A16>`][`FloatMatrix3x3<f32, XYZF32A16>`]transform_point2().(&self, other: XYrust-analyzer cargo glam 0.16.0 core/storage/XY#<f32>) -> XYrust-analyzer cargo glam 0.16.0 core/storage/XY#<f32> {
156 // TODO: This is untested, probably slower than the high level code that uses a SIMD mat2
157 Columns2rust-analyzer cargo glam 0.16.0 core/storage/Columns2#::from_colsrust-analyzer cargo glam 0.16.0 core/scalar/matrix/impl#[`Columns2<XY<T>>`][`Matrix2x2<T, XY<T>>`]from_cols().(self.x_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns3#x_axis..into_xyrust-analyzer cargo glam 0.16.0 core/traits/vector/Vector3#into_xy().(), self.y_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns3#y_axis..into_xyrust-analyzer cargo glam 0.16.0 core/traits/vector/Vector3#into_xy().())
158 .mul_vectorrust-analyzer cargo glam 0.16.0 core/traits/matrix/Matrix2x2#mul_vector().(other)
159 .addrust-analyzer cargo glam 0.16.0 core/scalar/vector/impl#[`XY<T>`][`Vector<T>`]add().(self.z_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns3#z_axis..into_xyrust-analyzer cargo glam 0.16.0 core/traits/vector/Vector3#into_xy().())
160 }
161
162 #[inline]
163 fn transform_vector2rust-analyzer cargo glam 0.16.0 core/scalar/matrix/impl#[`Columns3<XYZF32A16>`][`FloatMatrix3x3<f32, XYZF32A16>`]transform_vector2().(&self, other: XYrust-analyzer cargo glam 0.16.0 core/storage/XY#<f32>) -> XYrust-analyzer cargo glam 0.16.0 core/storage/XY#<f32> {
164 // TODO: This is untested, probably slower than the high level code that uses a SIMD mat2
165 Columns2rust-analyzer cargo glam 0.16.0 core/storage/Columns2#::from_colsrust-analyzer cargo glam 0.16.0 core/scalar/matrix/impl#[`Columns2<XY<T>>`][`Matrix2x2<T, XY<T>>`]from_cols().(self.x_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns3#x_axis..into_xyrust-analyzer cargo glam 0.16.0 core/traits/vector/Vector3#into_xy().(), self.y_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns3#y_axis..into_xyrust-analyzer cargo glam 0.16.0 core/traits/vector/Vector3#into_xy().()).mul_vectorrust-analyzer cargo glam 0.16.0 core/traits/matrix/Matrix2x2#mul_vector().(other)
166 }
167 }
168
169 impl<T: NumExrust-analyzer cargo glam 0.16.0 core/traits/scalar/NumEx#> MatrixConstrust-analyzer cargo glam 0.16.0 core/traits/matrix/MatrixConst# for Columns4rust-analyzer cargo glam 0.16.0 core/storage/Columns4#<XYZWrust-analyzer cargo glam 0.16.0 core/storage/XYZW#<T>> {
170 const ZEROrust-analyzer cargo glam 0.16.0 core/scalar/matrix/impl#[`Columns4<XYZW<T>>`][MatrixConst]ZERO.: Selfrust-analyzer cargo glam 0.16.0 core/scalar/matrix/impl#[`Columns4<XYZW<T>>`][MatrixConst] = Selfrust-analyzer cargo glam 0.16.0 core/scalar/matrix/impl#[`Columns4<XYZW<T>>`][MatrixConst] {
171 x_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns4#x_axis.: XYZWrust-analyzer cargo glam 0.16.0 core/storage/XYZW#::ZEROrust-analyzer cargo glam 0.16.0 core/scalar/vector/impl#[`XYZW<T>`][VectorConst]ZERO.,
172 y_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns4#y_axis.: XYZWrust-analyzer cargo glam 0.16.0 core/storage/XYZW#::ZEROrust-analyzer cargo glam 0.16.0 core/scalar/vector/impl#[`XYZW<T>`][VectorConst]ZERO.,
173 z_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns4#z_axis.: XYZWrust-analyzer cargo glam 0.16.0 core/storage/XYZW#::ZEROrust-analyzer cargo glam 0.16.0 core/scalar/vector/impl#[`XYZW<T>`][VectorConst]ZERO.,
174 w_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns4#w_axis.: XYZWrust-analyzer cargo glam 0.16.0 core/storage/XYZW#::ZEROrust-analyzer cargo glam 0.16.0 core/scalar/vector/impl#[`XYZW<T>`][VectorConst]ZERO.,
175 };
176 const IDENTITYrust-analyzer cargo glam 0.16.0 core/scalar/matrix/impl#[`Columns4<XYZW<T>>`][MatrixConst]IDENTITY.: Selfrust-analyzer cargo glam 0.16.0 core/scalar/matrix/impl#[`Columns4<XYZW<T>>`][MatrixConst] = Selfrust-analyzer cargo glam 0.16.0 core/scalar/matrix/impl#[`Columns4<XYZW<T>>`][MatrixConst] {
177 x_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns4#x_axis.: XYZWrust-analyzer cargo glam 0.16.0 core/storage/XYZW#::Xrust-analyzer cargo glam 0.16.0 core/scalar/vector/impl#[`XYZW<T>`][Vector4Const]X.,
178 y_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns4#y_axis.: XYZWrust-analyzer cargo glam 0.16.0 core/storage/XYZW#::Yrust-analyzer cargo glam 0.16.0 core/scalar/vector/impl#[`XYZW<T>`][Vector4Const]Y.,
179 z_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns4#z_axis.: XYZWrust-analyzer cargo glam 0.16.0 core/storage/XYZW#::Zrust-analyzer cargo glam 0.16.0 core/scalar/vector/impl#[`XYZW<T>`][Vector4Const]Z.,
180 w_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns4#w_axis.: XYZWrust-analyzer cargo glam 0.16.0 core/storage/XYZW#::Wrust-analyzer cargo glam 0.16.0 core/scalar/vector/impl#[`XYZW<T>`][Vector4Const]W.,
181 };
182 }
183
184 impl<T: NumExrust-analyzer cargo glam 0.16.0 core/traits/scalar/NumEx#> Matrixrust-analyzer cargo glam 0.16.0 core/traits/matrix/Matrix#<T> for Columns4rust-analyzer cargo glam 0.16.0 core/storage/Columns4#<XYZWrust-analyzer cargo glam 0.16.0 core/storage/XYZW#<T>> {}
185
186 impl<T: NumExrust-analyzer cargo glam 0.16.0 core/traits/scalar/NumEx#> Matrix4x4rust-analyzer cargo glam 0.16.0 core/traits/matrix/Matrix4x4#<T, XYZWrust-analyzer cargo glam 0.16.0 core/storage/XYZW#<T>> for Columns4rust-analyzer cargo glam 0.16.0 core/storage/Columns4#<XYZWrust-analyzer cargo glam 0.16.0 core/storage/XYZW#<T>> {
187 #[rustfmt::skip]
188 #[inline(always)]
189 fn from_colsrust-analyzer cargo glam 0.16.0 core/scalar/matrix/impl#[`Columns4<XYZW<T>>`][`Matrix4x4<T, XYZW<T>>`]from_cols().(x_axis: XYZWrust-analyzer cargo glam 0.16.0 core/storage/XYZW#<T>, y_axis: XYZWrust-analyzer cargo glam 0.16.0 core/storage/XYZW#<T>, z_axis: XYZWrust-analyzer cargo glam 0.16.0 core/storage/XYZW#<T>, w_axis: XYZWrust-analyzer cargo glam 0.16.0 core/storage/XYZW#<T>) -> Selfrust-analyzer cargo glam 0.16.0 core/scalar/matrix/impl#[`Columns4<XYZW<T>>`][`Matrix4x4<T, XYZW<T>>`] {
190 Selfrust-analyzer cargo glam 0.16.0 core/scalar/matrix/impl#[`Columns4<XYZW<T>>`][`Matrix4x4<T, XYZW<T>>`] { x_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns4#x_axis., y_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns4#y_axis., z_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns4#z_axis., w_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns4#w_axis. }
191 }
192
193 #[inline(always)]
194 fn x_axisrust-analyzer cargo glam 0.16.0 core/scalar/matrix/impl#[`Columns4<XYZW<T>>`][`Matrix4x4<T, XYZW<T>>`]x_axis().(&self) -> &XYZWrust-analyzer cargo glam 0.16.0 core/storage/XYZW#<T> {
195 &self.x_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns4#x_axis.
196 }
197
198 #[inline(always)]
199 fn y_axisrust-analyzer cargo glam 0.16.0 core/scalar/matrix/impl#[`Columns4<XYZW<T>>`][`Matrix4x4<T, XYZW<T>>`]y_axis().(&self) -> &XYZWrust-analyzer cargo glam 0.16.0 core/storage/XYZW#<T> {
200 &self.y_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns4#y_axis.
201 }
202
203 #[inline(always)]
204 fn z_axisrust-analyzer cargo glam 0.16.0 core/scalar/matrix/impl#[`Columns4<XYZW<T>>`][`Matrix4x4<T, XYZW<T>>`]z_axis().(&self) -> &XYZWrust-analyzer cargo glam 0.16.0 core/storage/XYZW#<T> {
205 &self.z_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns4#z_axis.
206 }
207
208 #[inline(always)]
209 fn w_axisrust-analyzer cargo glam 0.16.0 core/scalar/matrix/impl#[`Columns4<XYZW<T>>`][`Matrix4x4<T, XYZW<T>>`]w_axis().(&self) -> &XYZWrust-analyzer cargo glam 0.16.0 core/storage/XYZW#<T> {
210 &self.w_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns4#w_axis.
211 }
212 }
213
214 impl<T: FloatExrust-analyzer cargo glam 0.16.0 core/traits/scalar/FloatEx#> FloatMatrix4x4rust-analyzer cargo glam 0.16.0 core/traits/matrix/FloatMatrix4x4#<T, XYZWrust-analyzer cargo glam 0.16.0 core/storage/XYZW#<T>> for Columns4rust-analyzer cargo glam 0.16.0 core/storage/Columns4#<XYZWrust-analyzer cargo glam 0.16.0 core/storage/XYZW#<T>> {
215 type SIMDVector3rust-analyzer cargo glam 0.16.0 core/scalar/matrix/impl#[`Columns4<XYZW<T>>`][`FloatMatrix4x4<T, XYZW<T>>`]SIMDVector3# = XYZrust-analyzer cargo glam 0.16.0 core/storage/XYZ#<T>;
216
217 #[inline(always)]
218 fn transform_float4_as_point3rust-analyzer cargo glam 0.16.0 core/scalar/matrix/impl#[`Columns4<XYZW<T>>`][`FloatMatrix4x4<T, XYZW<T>>`]transform_float4_as_point3().(&self, other: XYZrust-analyzer cargo glam 0.16.0 core/storage/XYZ#<T>) -> XYZrust-analyzer cargo glam 0.16.0 core/storage/XYZ#<T> {
219 self.transform_point3rust-analyzer cargo glam 0.16.0 core/traits/matrix/FloatMatrix4x4#transform_point3().(other)
220 }
221
222 #[inline(always)]
223 fn transform_float4_as_vector3rust-analyzer cargo glam 0.16.0 core/scalar/matrix/impl#[`Columns4<XYZW<T>>`][`FloatMatrix4x4<T, XYZW<T>>`]transform_float4_as_vector3().(&self, other: XYZrust-analyzer cargo glam 0.16.0 core/storage/XYZ#<T>) -> XYZrust-analyzer cargo glam 0.16.0 core/storage/XYZ#<T> {
224 self.transform_vector3rust-analyzer cargo glam 0.16.0 core/traits/matrix/FloatMatrix4x4#transform_vector3().(other)
225 }
226
227 #[inline(always)]
228 fn project_float4_as_point3rust-analyzer cargo glam 0.16.0 core/scalar/matrix/impl#[`Columns4<XYZW<T>>`][`FloatMatrix4x4<T, XYZW<T>>`]project_float4_as_point3().(&self, other: XYZrust-analyzer cargo glam 0.16.0 core/storage/XYZ#<T>) -> XYZrust-analyzer cargo glam 0.16.0 core/storage/XYZ#<T> {
229 self.project_point3rust-analyzer cargo glam 0.16.0 core/traits/matrix/FloatMatrix4x4#project_point3().(other)
230 }
231 }
232
233 impl<T: FloatExrust-analyzer cargo glam 0.16.0 core/traits/scalar/FloatEx#> ProjectionMatrixrust-analyzer cargo glam 0.16.0 core/traits/projection/ProjectionMatrix#<T, XYZWrust-analyzer cargo glam 0.16.0 core/storage/XYZW#<T>> for Columns4rust-analyzer cargo glam 0.16.0 core/storage/Columns4#<XYZWrust-analyzer cargo glam 0.16.0 core/storage/XYZW#<T>> {}
234
235 impl Fromrust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/From#<Columns3rust-analyzer cargo glam 0.16.0 core/storage/Columns3#<XYZrust-analyzer cargo glam 0.16.0 core/storage/XYZ#<f32>>> for Columns3rust-analyzer cargo glam 0.16.0 core/storage/Columns3#<XYZF32A16rust-analyzer cargo glam 0.16.0 core/storage/XYZF32A16#> {
236 fn fromrust-analyzer cargo glam 0.16.0 core/scalar/matrix/impl#[`Columns3<XYZF32A16>`][`From<Columns3<XYZ<f32>>>`]from().(v: Columns3rust-analyzer cargo glam 0.16.0 core/storage/Columns3#<XYZrust-analyzer cargo glam 0.16.0 core/storage/XYZ#<f32>>) -> Columns3rust-analyzer cargo glam 0.16.0 core/storage/Columns3#<XYZF32A16rust-analyzer cargo glam 0.16.0 core/storage/XYZF32A16#> {
237 Selfrust-analyzer cargo glam 0.16.0 core/scalar/matrix/impl#[`Columns3<XYZF32A16>`][`From<Columns3<XYZ<f32>>>`] {
238 x_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns3#x_axis.: v.x_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns3#x_axis..intorust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/impl#[T][`Into<U>`]into().(),
239 y_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns3#y_axis.: v.y_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns3#y_axis..intorust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/impl#[T][`Into<U>`]into().(),
240 z_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns3#z_axis.: v.z_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns3#z_axis..intorust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/impl#[T][`Into<U>`]into().(),
241 }
242 }
243 }
244
245 impl Fromrust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/From#<Columns3rust-analyzer cargo glam 0.16.0 core/storage/Columns3#<XYZF32A16rust-analyzer cargo glam 0.16.0 core/storage/XYZF32A16#>> for Columns3rust-analyzer cargo glam 0.16.0 core/storage/Columns3#<XYZrust-analyzer cargo glam 0.16.0 core/storage/XYZ#<f32>> {
246 fn fromrust-analyzer cargo glam 0.16.0 core/scalar/matrix/impl#[`Columns3<XYZ<f32>>`][`From<Columns3<XYZF32A16>>`]from().(v: Columns3rust-analyzer cargo glam 0.16.0 core/storage/Columns3#<XYZF32A16rust-analyzer cargo glam 0.16.0 core/storage/XYZF32A16#>) -> Columns3rust-analyzer cargo glam 0.16.0 core/storage/Columns3#<XYZrust-analyzer cargo glam 0.16.0 core/storage/XYZ#<f32>> {
247 Selfrust-analyzer cargo glam 0.16.0 core/scalar/matrix/impl#[`Columns3<XYZ<f32>>`][`From<Columns3<XYZF32A16>>`] {
248 x_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns3#x_axis.: v.x_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns3#x_axis..intorust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/impl#[T][`Into<U>`]into().(),
249 y_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns3#y_axis.: v.y_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns3#y_axis..intorust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/impl#[T][`Into<U>`]into().(),
250 z_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns3#z_axis.: v.z_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns3#z_axis..intorust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/impl#[T][`Into<U>`]into().(),
251 }
252 }
253 }