![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
FINAL PROJECT isn't it
Fork of ELEC351 by
ROTATE.cpp
- Committer:
- thomasmorris
- Date:
- 2018-07-16
- Revision:
- 56:bc5345bc6650
File content as of revision 56:bc5345bc6650:
#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 { }