ELEC2645 (2018/19) / Mbed 2 deprecated el17cd

Dependencies:   mbed

Cube/Cube.h

Committer:
el17cd
Date:
2019-03-31
Revision:
17:3c9672c6e532
Parent:
16:64cd7bc094f9
Child:
20:3ca430241df0

File content as of revision 17:3c9672c6e532:

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

class Cube {
  private:
    float verticies[8][3];
    Face faces[6];
    float xPos, yPos, zPos;
  public:
    Cube();
    Cube(float x, float y, float z, float size);
    Face getFace(int index);
    void updateFaceVerticies(float (&verticies)[8][3]);
    bool tooClose();
    void rotateX(float angle);
    void rotateY(float angle);
    void rotateZ(float angle);
    void translate(float x, float y, float z);
    bool despawn();
};