ELEC2645 (2018/19) / Mbed 2 deprecated el17cd

Dependencies:   mbed

Committer:
el17cd
Date:
Sat Feb 23 16:19:29 2019 +0000
Revision:
6:75031d14fc0d
Parent:
5:54d3b36fec2c
Child:
7:15543cb10a14
Translation of cubes working;

Who changed what in which revision?

UserRevisionLine numberNew contents of line
el17cd 4:759a5c34e239 1 #include "mbed.h"
el17cd 4:759a5c34e239 2 #ifndef FACE_H
el17cd 4:759a5c34e239 3 #define FACE_H
el17cd 4:759a5c34e239 4 #include "Face.h"
el17cd 4:759a5c34e239 5 #endif
el17cd 4:759a5c34e239 6
el17cd 4:759a5c34e239 7 class Cube {
el17cd 4:759a5c34e239 8 private:
el17cd 4:759a5c34e239 9 float verticies[8][3];
el17cd 4:759a5c34e239 10 Face faces[6];
el17cd 4:759a5c34e239 11 public:
el17cd 4:759a5c34e239 12 Cube(float x, float y, float z, float size);
el17cd 4:759a5c34e239 13 Face getFace(int index);
el17cd 5:54d3b36fec2c 14 void rotateX(float angle);
el17cd 6:75031d14fc0d 15 void translate(float x, float y, float z);
el17cd 4:759a5c34e239 16 };