diff options
author | Mateja <mail@matejamaric.com> | 2020-12-27 00:09:34 +0100 |
---|---|---|
committer | Mateja <mail@matejamaric.com> | 2020-12-27 00:09:34 +0100 |
commit | 0a2da4f82435a49212e276d9d603e84ac298246d (patch) | |
tree | 1fea3b94712df18d1229f4f3492b540c90f6f302 /src/Matrix4f.h | |
parent | a84debff887c3e3d930665db140b7a287d3879d4 (diff) | |
download | erender-0a2da4f82435a49212e276d9d603e84ac298246d.tar.gz erender-0a2da4f82435a49212e276d9d603e84ac298246d.zip |
Reorganize entire project.
Diffstat (limited to 'src/Matrix4f.h')
-rw-r--r-- | src/Matrix4f.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/Matrix4f.h b/src/Matrix4f.h new file mode 100644 index 0000000..85946c0 --- /dev/null +++ b/src/Matrix4f.h @@ -0,0 +1,15 @@ +#include<math.h>
+class Matrix4f
+{
+public:
+ float m[4][4];
+ Matrix4f();
+ Matrix4f multiply(Matrix4f& a);
+ Matrix4f operator* (Matrix4f& a);
+ static Matrix4f identity();
+ static Matrix4f move(float kx, float ky, float kz);
+ static Matrix4f rotate(float xs, float ys, float zs);
+ static Matrix4f scale(float px, float py, float pz);
+ static Matrix4f perspective(float near, float far, float fov, float aspectRatio);
+};
+
|