diff options
author | MatejaMaric <matejamaricz@gmail.com> | 2019-07-09 00:26:42 +0200 |
---|---|---|
committer | MatejaMaric <matejamaricz@gmail.com> | 2019-07-09 00:26:42 +0200 |
commit | a7c9aeee1e68235af406e30654e4b2e5f0f7fda2 (patch) | |
tree | 492e4860bf17d196b5a79a83004aec217e69cf1e /source/Matrix4f.h | |
download | erender-a7c9aeee1e68235af406e30654e4b2e5f0f7fda2.tar.gz erender-a7c9aeee1e68235af406e30654e4b2e5f0f7fda2.zip |
First commit
Diffstat (limited to 'source/Matrix4f.h')
-rw-r--r-- | source/Matrix4f.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/source/Matrix4f.h b/source/Matrix4f.h new file mode 100644 index 0000000..85946c0 --- /dev/null +++ b/source/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);
+};
+
|