diff options
author | Wolfgang Draxinger <Wolfgang.Draxinger@draxit.de> | 2012-04-27 20:43:08 +0200 |
---|---|---|
committer | Wolfgang Draxinger <Wolfgang.Draxinger@draxit.de> | 2012-04-27 20:43:08 +0200 |
commit | 623fc8c73de35bef0785f09bae8a3f607f8ed087 (patch) | |
tree | 8d14f7bff925e01e90557db6b8ffb282b9784c3d /samples/OpenGL/qt_terr/vecmath.h | |
parent | 91925ccf445f27ba98a1292e77cda208cbf86551 (diff) | |
download | codesamples-623fc8c73de35bef0785f09bae8a3f607f8ed087.tar.gz codesamples-623fc8c73de35bef0785f09bae8a3f607f8ed087.tar.bz2 |
qt_terr - a simple quadtree based terrain renderer with LOD
Diffstat (limited to 'samples/OpenGL/qt_terr/vecmath.h')
-rw-r--r-- | samples/OpenGL/qt_terr/vecmath.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/samples/OpenGL/qt_terr/vecmath.h b/samples/OpenGL/qt_terr/vecmath.h new file mode 100644 index 0000000..0c27eff --- /dev/null +++ b/samples/OpenGL/qt_terr/vecmath.h @@ -0,0 +1,16 @@ +#ifndef VECMATH_H
+#define VECMATH_H
+
+double DOT(double a[3], double b[3]);
+
+void ADD(double out[3], double a[3], double b[3]);
+
+void SUB(double out[3], double a[3], double b[3]);
+
+void SCALE(double out[3], double v[3], double scalar);
+
+double length(double v[3]);
+
+void normalize(double out[3], double in[3]);
+
+#endif/*VECMATH_H*/
|