summaryrefslogtreecommitdiff
path: root/hcoord.h
blob: b7ddbd70ed5c49850cd0fffc33d5e469398702f0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#ifndef HCOORD_H
#define HCOORD_H

class HVector {
	public:
		double x, y, z, w;
		
		HVector();
		HVector(double _x, double _y, double _z, double _w = 1.0);
		
};

class HMatrix {
	public:
		double m[4][4];
		
		HMatrix();
		
		HMatrix invtr();
		HMatrix invtrs();
		
		HVector operator*(const HVector& vec);
		
		HVector getTranslation();
		
		void glLoad();
};

#endif