Project

General

Profile

« Previous | Next » 

Revision 9cd7695f

Added by Leszek Koltunski about 4 years ago

Improve RubikCubeMovement

View differences:

src/main/java/org/distorted/object/RubikObject.java
394 394

  
395 395
  public void beginNewRotation(int axis, int row )
396 396
    {
397
    if( axis<0 || axis>=ROTATION_AXIS.length )
398
      {
399
      android.util.Log.e("object", "invalid rotation axis: "+axis);
400
      return;
401
      }
402
    if( row<0 || row>=mSize )
403
      {
404
      android.util.Log.e("object", "invalid rotation row: "+row);
405
      return;
406
      }
407

  
397 408
    mRotAxis = axis;
398 409
    mRotRow  = row;
399 410

  

Also available in: Unified diff