summaryrefslogtreecommitdiff
path: root/hcoord.h
diff options
context:
space:
mode:
authorVegard Storheil Eriksen <zyp@jvnv.net>2010-04-08 15:27:31 +0200
committerVegard Storheil Eriksen <zyp@jvnv.net>2010-04-08 15:27:31 +0200
commitf281f316627b163489ecb39d837144142c9353f9 (patch)
treed104aa60e2e108b8cb80589f846f81770c62b859 /hcoord.h
parent834a37d1975b5baa609e93839947430d554a7f5f (diff)
Added HVector and HMatrix classes.
Diffstat (limited to 'hcoord.h')
-rw-r--r--hcoord.h28
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