Project

General

Profile

« Previous | Next » 

Revision 75a21cd6

Added by Leszek Koltunski over 3 years ago

Comment.

View differences:

src/main/java/org/distorted/objects/TwistyDiamond.java
517 517
    }
518 518

  
519 519
///////////////////////////////////////////////////////////////////////////////////////////////////
520
// The (2 and 3-layered) Diamond is solved if and only if:
520
// The Diamond is solved if and only if:
521 521
//
522 522
// 1) all octahedrons are rotated with the same quat
523 523
// 2) all tetrahedrons might be also optionally rotated by a 'face neutral' pair of quats
524 524
//    (indexes of those are kept in the 'mFaceNeutralQuattIndex' table)
525 525
//
526
// Note: this doesn't work for numLayers > 3, because then we have some 'internal' octahedrons,
527
// which also might be rotate by 'face neutral' pair of quats. We don't care about this (yet?)
526
// Note: this works for any size, because even if layers>3 - and then there are 'face-internal'
527
// octahedrons which, it would seem, can be rotated by those 'face neutral' pairs of quats - but
528
// in reality no, because if they were, the octahedrons would then not fit in the lattice...
528 529

  
529 530
  public boolean isSolved()
530 531
    {

Also available in: Unified diff