summaryrefslogtreecommitdiffstats
path: root/Cuboid.h
blob: 661dc0df1f9cf61a95a1f176553c934783ebd6a5 (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
#ifndef _CUBOID_H_
#define _CUBOID_H_

#include "Triangle.h"
#include "Matrix.h"

#include <iostream>
#include <list>

class Cuboid
{
  public:
    Cuboid(float height, float width, float depth, float x, float y, float z);
    float getHeight();
    float getWidth();
    float getDepth();
    float getPosX();
    float getPosY();
    float getPosZ();
    void setSize(float h, float w, float d);
    void setPos(float x, float y, float z);
    std::list<Triangle> getTriangles(const Matrix &modelview);
  
  private:
    float height, width, depth;
    float x, y, z;
};
#endif /*_CUBOID_H_*/