Project

General

Profile

« Previous | Next » 

Revision 05fa94d9

Added by Leszek Koltunski almost 5 years ago

RubikCube: detect if the cube is solved.

In order to do this correctly, we also needed to keep correcting each mQuatScramble quaternions after each quatMultiplication in order to avoid multiplication errors accumulating. This turns out to be easy, because each quaternion representing a legal combination of rotations of a RubikCube must have each of the 4 to its components be equal to one of only 7 possible floats.

  • added
  • modified
  • copied
  • renamed
  • deleted