aboutsummaryrefslogtreecommitdiff
path: root/src/math/mat4.h
diff options
context:
space:
mode:
authorvimene <vincent.menegaux@gmail.com>2023-12-03 09:27:32 +0100
committervimene <vincent.menegaux@gmail.com>2023-12-03 09:27:32 +0100
commit48ec7df0fd27fab05c9918e83a3a7da1cc32d7a0 (patch)
tree259ec6e395e44b0af117adc9605203f8affb4b0f /src/math/mat4.h
parent5a8bc0a4936cdd461c43740437541f8c991ff117 (diff)
downloadengine-48ec7df0fd27fab05c9918e83a3a7da1cc32d7a0.tar.gz
renamed MathVector{2,3,4} to Vector{2,3,4} and Mat4 to Matrix4 in engine::math
Diffstat (limited to 'src/math/mat4.h')
-rw-r--r--src/math/mat4.h34
1 files changed, 17 insertions, 17 deletions
diff --git a/src/math/mat4.h b/src/math/mat4.h
index d8b66c4..66d6cd2 100644
--- a/src/math/mat4.h
+++ b/src/math/mat4.h
@@ -2,32 +2,32 @@
#define MATH_MAT4_H
#include <array>
-#include "math/math_vector.h"
+#include "math/vector.h"
namespace engine::math {
-class Mat4 {
+class Matrix4 {
public:
- static Mat4 idty();
- static Mat4 translate(MathVector3 v);
- static Mat4 scale(float fac);
- static Mat4 rot_x(float a);
- static Mat4 rot_y(float a);
- static Mat4 rot_z(float a);
- static Mat4 projection(float aspect_ratio, float min_z, float max_z);
+ static Matrix4 idty();
+ static Matrix4 translate(Vector3 v);
+ static Matrix4 scale(float fac);
+ static Matrix4 rot_x(float a);
+ static Matrix4 rot_y(float a);
+ static Matrix4 rot_z(float a);
+ static Matrix4 projection(float aspect_ratio, float min_z, float max_z);
std::array<float, 16> values;
- Mat4 operator+();
- Mat4 operator-();
- Mat4 operator+(Mat4 m);
- Mat4 operator-(Mat4 m);
- Mat4 operator*(Mat4 m);
- MathVector4 operator*(MathVector4 v);
- std::array<MathVector4, 4> to_vecs();
+ Matrix4 operator+();
+ Matrix4 operator-();
+ Matrix4 operator+(Matrix4 m);
+ Matrix4 operator-(Matrix4 m);
+ Matrix4 operator*(Matrix4 m);
+ Vector4 operator*(Vector4 v);
+ std::array<Vector4, 4> to_vecs();
};
-Mat4 operator*(float fac, Mat4 m);
+Matrix4 operator*(float fac, Matrix4 m);
}