summaryrefslogtreecommitdiffstats
path: root/Cuboid.h
blob: 7c4b4c5b106386a32f8fcacc58541bdd34da7e5f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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(/*const Matrix &modelview*/);
  
  private:
    float width, height, depth;
    float x, y, z;

};
#endif /*_CUBOID_H_*/