Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed
Cube/Cube.h
- Committer:
- el17cd
- Date:
- 2019-03-19
- Revision:
- 10:07a23afd5088
- Parent:
- 8:a667bc5050c1
- Child:
- 11:2cd6341136ca
File content as of revision 10:07a23afd5088:
#include "mbed.h" #ifndef FACE_H #define FACE_H #include "Face.h" #endif class Cube { private: double verticies[8][3]; Face faces[6]; double xPos, yPos, zPos; public: Cube(double x, double y, double z, double size); Face getFace(int index); void updateFaces(); void rotateX(double angle); void rotateY(double angle); void translate(double x, double y, double z); bool despawn(); };