mis en place la PR de simon sur les couleurs
This commit is contained in:
@@ -13,14 +13,16 @@ enum Rotation {
|
||||
|
||||
|
||||
/**
|
||||
* Addition operator, returns a rotation corresponding to doing both rotations
|
||||
* Addition operator
|
||||
* @return A rotation corresponding to doing both rotations
|
||||
*/
|
||||
inline Rotation operator+(const Rotation& left, const Rotation& right) {
|
||||
return Rotation((left + right) % 4);
|
||||
}
|
||||
|
||||
/**
|
||||
* Additive assignation operator, rotate the left rotation by the right rotation
|
||||
* Additive assignation operator, rotates the left rotation by the right rotation
|
||||
* @return A reference to the left rotation
|
||||
*/
|
||||
inline Rotation& operator+=(Rotation& left, const Rotation& right) {
|
||||
left = left + right;
|
||||
|
||||
Reference in New Issue
Block a user