diff options
Diffstat (limited to 'hcoord.h')
-rw-r--r-- | hcoord.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/hcoord.h b/hcoord.h new file mode 100644 index 0000000..075d180 --- /dev/null +++ b/hcoord.h @@ -0,0 +1,28 @@ +#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 inverse(); + + HVector operator*(const HVector& vec); + + HVector getTranslation(); + + void glLoad(); +}; + +#endif |