Project

General

Profile

« Previous | Next » 

Revision fb1e9a31

Added by Leszek Koltunski 12 months ago

move the returnRotationFactor() method from touchControl to TwistyObject (where it can be overridden)

View differences:

src/main/java/org/distorted/objectlib/touchcontrol/TouchControlTetrahedron.java
101 101
    return 0;
102 102
    }
103 103

  
104
///////////////////////////////////////////////////////////////////////////////////////////////////
105
// Jing has nL=2
106

  
107
  public float returnRotationFactor(int[] numLayers, int row)
108
    {
109
    int numL = numLayers[0];
110
    return numL==2 ? 1.0f : ((float)numL)/(numL-row);
111
    }
112

  
113 104
///////////////////////////////////////////////////////////////////////////////////////////////////
114 105

  
115 106
  boolean isInsideFace(int face, float[] point)

Also available in: Unified diff