Project

General

Profile

« Previous | Next » 

Revision 7b832206

Added by Leszek Koltunski over 2 years ago

Progress with serializing object to JSON: cubits.
Only faceColorMap remains now.

View differences:

src/main/java/org/distorted/objectlib/objects/TwistyPyraminx.java
151 151

  
152 152
///////////////////////////////////////////////////////////////////////////////////////////////////
153 153

  
154
  protected int[] getSolvedQuats(int cubit, int[] numLayers)
154
  public int[] getSolvedQuats(int cubit, int[] numLayers)
155 155
    {
156 156
    if( mQuats==null ) initializeQuats();
157 157
    int status = retCubitSolvedStatus(cubit,numLayers);
......
198 198
///////////////////////////////////////////////////////////////////////////////////////////////////
199 199
// there are (n^3-n)/6 octahedrons and ((n+1)^3 - (n+1))/6 tetrahedrons
200 200

  
201
  protected float[][] getCubitPositions(int[] numLayers)
201
  public float[][] getCubitPositions(int[] numLayers)
202 202
    {
203 203
    int numL = numLayers[0];
204 204
    int numOcta = (numL-1)*numL*(numL+1)/6;
......
381 381

  
382 382
///////////////////////////////////////////////////////////////////////////////////////////////////
383 383

  
384
  protected Static4D getQuat(int cubit, int[] numLayers)
384
  public Static4D getQuat(int cubit, int[] numLayers)
385 385
    {
386 386
    if( mQuats==null ) initializeQuats();
387 387
    return mQuats[0];

Also available in: Unified diff