ELEC2645 (2018/19) / Mbed 2 deprecated el17cd

Dependencies:   mbed

Revision:
25:3995271e411c
Parent:
23:eb50ab95bb53
Child:
32:9c250eda7f3f
--- a/Cube/Cube.h	Wed Apr 03 16:19:05 2019 +0000
+++ b/Cube/Cube.h	Wed Apr 03 20:03:47 2019 +0000
@@ -13,8 +13,23 @@
     float verticies[8][3];
     Face faces[6];
     float xPos, yPos, zPos;
+    void updateFacesVerticies(float (&vert)[8][3]);
+    /** @brief sets the verticies of all the cubes faces depending on the location and size of the cube
+    *@param The memory address of the two dimentional float array which stores all x, y, z coordinates for each 8 verticies
+    */
+    void assignFacesVerticies(float (&face0Points)[4][3],
+    float (&face1Points)[4][3], float (&face2Points)[4][3],
+    float (&face3Points)[4][3], float (&face4Points)[4][3],
+    float (&face5Points)[4][3]);
+    /** @brief sets the verticies of an individual face of the cube
+    *@param The memory address of the two dimentional float array which stores all x, y, z coordinates for the first face verticies
+    *@param The memory address of the two dimentional float array which stores all x, y, z coordinates for the second face verticies
+    *@param The memory address of the two dimentional float array which stores all x, y, z coordinates for the third face verticies
+    *@param The memory address of the two dimentional float array which stores all x, y, z coordinates for the fourth face verticies
+    *@param The memory address of the two dimentional float array which stores all x, y, z coordinates for the fifth face verticies
+    *@param The memory address of the two dimentional float array which stores all x, y, z coordinates for the sixth faces verticies
+    */
   public:
-
     Cube();
     /**brief The constructor of the Cube class which instantiates the cube object.
     *No parameters are required as the cube is initially created with a size of 5 and a position at the origin.
@@ -27,22 +42,6 @@
     void setVisible();
     /** @brief Sets the faces of the cube to be visible so that they will be rendered
     */
-    void updateFacesVerticies(float (&vert)[8][3]);
-    /** @brief sets the verticies of all the cubes faces depending on the location and size of the cube
-    *@param The memory address of the two dimentional float array which stores all x, y, z coordinates for each 8 verticies
-    */
-    void assignFacesVerticies(float (&face0Points)[4][3],
-    float (&face1Points)[4][3], float (&face2Points)[4][3],
-    float (&face3Points)[4][3], float (&face4Points)[4][3],
-    float (&face5Points)[4][3]);
-    /** @brief sets the verticies of an individual face of the cube
-    *@param The memory address of the two dimentional float array which stores all x, y, z coordinates for the first faces verticies
-    *@param The memory address of the two dimentional float array which stores all x, y, z coordinates for the second faces verticies
-    *@param The memory address of the two dimentional float array which stores all x, y, z coordinates for the third faces verticies
-    *@param The memory address of the two dimentional float array which stores all x, y, z coordinates for the fourth faces verticies
-    *@param The memory address of the two dimentional float array which stores all x, y, z coordinates for the fifth faces verticies
-    *@param The memory address of the two dimentional float array which stores all x, y, z coordinates for the sixth faces verticies
-    */
     bool tooClose();
     /** @brief Returns whether the cube is too close to the perspective of the user
     *@returns a boolean indicating whether it is too close or not