ELEC2645 (2018/19) / Mbed 2 deprecated el17cd

Dependencies:   mbed

Cube/Cube.h

Committer:
el17cd
Date:
2019-02-23
Revision:
6:75031d14fc0d
Parent:
5:54d3b36fec2c
Child:
7:15543cb10a14

File content as of revision 6:75031d14fc0d:

#include "mbed.h"
#ifndef FACE_H
#define FACE_H
#include "Face.h"
#endif

class Cube {
  private:
    float verticies[8][3];
    Face faces[6];
  public:
   Cube(float x, float y, float z, float size);
   Face getFace(int index);
   void rotateX(float angle);
   void translate(float x, float y, float z);
};