Project

General

Profile

« Previous | Next » 

Revision 0e5ad27c

Added by Leszek Koltunski about 4 years ago

Add a 'withdraw move' button to the Solving UI state.

View differences:

src/main/java/org/distorted/objects/RubikObject.java
567 567
    return currentBest;
568 568
    }
569 569

  
570
///////////////////////////////////////////////////////////////////////////////////////////////////
571

  
572
  public int computeNearestAngle(float angle)
573
    {
574
    final int NEAREST = 360/getBasicAngle();
575

  
576
    int tmp = (int)((angle+NEAREST/2)/NEAREST);
577
    if( angle< -(NEAREST*0.5) ) tmp-=1;
578

  
579
    return NEAREST*tmp;
580
    }
581

  
570 582
///////////////////////////////////////////////////////////////////////////////////////////////////
571 583

  
572 584
  public RubikObjectList getObjectList()

Also available in: Unified diff