Project

General

Profile

« Previous | Next » 

Revision a57e6870

Added by Leszek Koltunski over 2 years ago

make numLayers into an int[] (preparation for Cuboids)
Caution: because of previous changes to cubit order in cube, the Solver is broken!

View differences:

src/main/java/org/distorted/objectlib/main/Movement4.java
86 86
///////////////////////////////////////////////////////////////////////////////////////////////////
87 87
// Jing has nL=2
88 88

  
89
  public float returnRotationFactor(int numLayers, int row)
89
  public float returnRotationFactor(int[] numLayers, int row)
90 90
    {
91
    return numLayers==2 ? 1.0f : ((float)numLayers)/(numLayers-row);
91
    int numL = numLayers[0];
92

  
93
    return numL==2 ? 1.0f : ((float)numL)/(numL-row);
92 94
    }
93 95

  
94 96
///////////////////////////////////////////////////////////////////////////////////////////////////

Also available in: Unified diff