CommonLibSSE (Parapets fork)
Loading...
Searching...
No Matches
GMatrix2D.h
Go to the documentation of this file.
1#pragma once
2
3namespace RE
4{
6 {
7 public:
9 {
11 }
12
14 {
15 for (std::size_t i = 0; i < std::extent<decltype(data), 0>::value; ++i) {
16 for (std::size_t j = 0; j < std::extent<decltype(data), 1>::value; ++j) {
17 data[i][j] = a_rhs.data[i][j];
18 }
19 }
20 return *this;
21 }
22
23 inline void SetMatrix(const GMatrix2D& a_matrix)
24 {
25 data[0][0] = a_matrix.data[0][0];
26 data[0][1] = a_matrix.data[0][1];
27 data[0][2] = a_matrix.data[0][2];
28 data[1][0] = a_matrix.data[1][0];
29 data[1][1] = a_matrix.data[1][1];
30 data[1][2] = a_matrix.data[1][2];
31 }
32
33 inline void SetMatrix(float a_v0, float a_v1, float a_v2, float a_v3, float a_v4, float a_v5)
34 {
35 data[0][0] = a_v0;
36 data[0][1] = a_v1;
37 data[0][2] = a_v4;
38 data[1][0] = a_v2;
39 data[1][1] = a_v3;
40 data[1][2] = a_v5;
41 }
42
44 {
45 data[0][0] = 1.0f;
46 data[0][1] = 0.0f;
47 data[0][2] = 0.0f;
48 data[1][0] = 0.0f;
49 data[1][1] = 1.0f;
50 data[1][2] = 0.0f;
51 }
52
53 float data[2][3]; // 00
54 };
55 static_assert(sizeof(GMatrix2D) == 0x18);
56}
Definition: GMatrix2D.h:6
void SetIdentity()
Definition: GMatrix2D.h:43
void SetMatrix(float a_v0, float a_v1, float a_v2, float a_v3, float a_v4, float a_v5)
Definition: GMatrix2D.h:33
void SetMatrix(const GMatrix2D &a_matrix)
Definition: GMatrix2D.h:23
GMatrix2D()
Definition: GMatrix2D.h:8
float data[2][3]
Definition: GMatrix2D.h:53
GMatrix2D & operator=(const GMatrix2D &a_rhs)
Definition: GMatrix2D.h:13
Definition: AbsorbEffect.h:6