summaryrefslogtreecommitdiffstats
path: root/Cuboid.h
diff options
context:
space:
mode:
authorConstantin Riß <constantin.riss@dre.de>2010-03-01 23:30:40 +0100
committerConstantin Riß <constantin.riss@dre.de>2010-03-01 23:30:40 +0100
commit070051b8759806873267cff46ceb2be7d6a3262f (patch)
treea19b03e51847d3dee10514e456a4c7921b306b3e /Cuboid.h
downloadheadshot-070051b8759806873267cff46ceb2be7d6a3262f.tar
headshot-070051b8759806873267cff46ceb2be7d6a3262f.zip
initial commit
Diffstat (limited to 'Cuboid.h')
-rw-r--r--Cuboid.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/Cuboid.h b/Cuboid.h
new file mode 100644
index 0000000..d1c600d
--- /dev/null
+++ b/Cuboid.h
@@ -0,0 +1,30 @@
+#ifndef _CUBOID_H_
+#define _CUBOID_H_
+
+#include "Triangle.h"
+
+#include <list>
+
+class Cuboid
+{
+ public:
+ Cuboid() : width(0), height(0), depth(0), x(0), y(0), z(0) {}
+ Cuboid(float width, float height, float depth);
+ Cuboid(float width, float height, float depth, float x, float y, float z);
+ float getHeight();
+ float getWidth();
+ float getDepth();
+ float getPosX();
+ float getPosY();
+ float getPosZ();
+ void setSize(float w, float h, float d);
+ void setPos(float x, float y, float z);
+ std::list<Triangle> getTriangles();
+
+ private:
+ float width, height, depth;
+ float x, y, z;
+
+};
+#endif /*_CUBOID_H_*/
+