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
Diff: Cube/Cube.h
- Revision:
- 17:3c9672c6e532
- Parent:
- 16:64cd7bc094f9
- Child:
- 20:3ca430241df0
--- a/Cube/Cube.h Sun Mar 31 18:05:01 2019 +0000 +++ b/Cube/Cube.h Sun Mar 31 18:10:18 2019 +0000 @@ -6,18 +6,18 @@ class Cube { private: - double verticies[8][3]; + float verticies[8][3]; Face faces[6]; - double xPos, yPos, zPos; + float xPos, yPos, zPos; public: Cube(); - Cube(double x, double y, double z, double size); + Cube(float x, float y, float z, float size); Face getFace(int index); - void updateFaceVerticies(double (&verticies)[8][3]); + void updateFaceVerticies(float (&verticies)[8][3]); bool tooClose(); - void rotateX(double angle); - void rotateY(double angle); - void rotateZ(double angle); - void translate(double x, double y, double z); + void rotateX(float angle); + void rotateY(float angle); + void rotateZ(float angle); + void translate(float x, float y, float z); bool despawn(); }; \ No newline at end of file