aboutsummaryrefslogtreecommitdiff
path: root/src/Matrix4f.h
blob: 85946c03fdda4e42c6fff8cf8e9fce57b9ae7578 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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);
};