From f281f316627b163489ecb39d837144142c9353f9 Mon Sep 17 00:00:00 2001 From: Vegard Storheil Eriksen Date: Thu, 8 Apr 2010 15:27:31 +0200 Subject: Added HVector and HMatrix classes. --- hcoord.h | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 hcoord.h (limited to 'hcoord.h') 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 -- cgit v1.2.3