![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Proj 324 Final
Fork of ELEC351_Group_T by
Diff: ROTATE.cpp
- Revision:
- 56:bc5345bc6650
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/ROTATE.cpp Mon Jul 16 10:51:47 2018 +0000 @@ -0,0 +1,85 @@ +#include "ROTATE.hpp" + +ROTATE::ROTATE()//Constructor +{ + +} +ROTATE::~ROTATE()//Destructor +{ + +} +//static Colours CubeMap[6][3][3];//The colours of each section on the cube map +void ROTATE::CU()//Clockwise upper face +{ + //Rotate middle face + CubeMap[0][0][0] == CubeMap[0][0][2]; + CubeMap[0][0][1] == CubeMap[0][1][2]; + CubeMap[0][0][2] == CubeMap[0][2][2]; + CubeMap[0][1][0] == CubeMap[0][0][1]; + CubeMap[0][1][1] == CubeMap[0][1][1]; + CubeMap[0][1][2] == CubeMap[0][2][1]; + CubeMap[0][2][0] == CubeMap[0][0][0]; + CubeMap[0][2][1] == CubeMap[0][1][0]; + CubeMap[0][2][2] == CubeMap[0][2][0]; + //Rotate left face + CubeMap[1][2][0] == CubeMap[0][0][0]; + CubeMap[1][2][1] == CubeMap[0][1][0]; + CubeMap[1][2][2] == CubeMap[0][2][0]; + //Rotate right face + CubeMap[2][2][0] == CubeMap[0][0][0]; + CubeMap[2][2][1] == CubeMap[0][1][0]; + CubeMap[2][2][2] == CubeMap[0][2][0]; + //Rotate top face + CubeMap[3][2][0] == CubeMap[0][0][0]; + CubeMap[3][2][1] == CubeMap[0][1][0]; + CubeMap[3][2][2] == CubeMap[0][2][0]; + //Rotate bottom face + CubeMap[4][2][0] == CubeMap[0][0][0]; + CubeMap[4][2][1] == CubeMap[0][1][0]; + CubeMap[4][2][2] == CubeMap[0][2][0]; + +} +void ROTATE::AU()//AntiClockwise upper face +{ + +} +void ROTATE::CF()//Clockwise front face +{ + +} +void ROTATE::AF()//AntiClockwise front face +{ + +} +void ROTATE::CL()//Clockwise left face +{ + +} +void ROTATE::AL()//AntiClockwise left face +{ + +} +void ROTATE::CR()//Clockwise right face +{ + +} +void ROTATE::AR()//AntiClockwise right face +{ + +} +void ROTATE::CB()//Clockwise back face +{ + +} +void ROTATE::AB()//AntiClockwise back face +{ + +} +void ROTATE::CD()//Clockwise down face +{ + +} +void ROTATE::AD()//AntiClockwise down face +{ + +} \ No newline at end of file