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/TwistyDiamond.java
132 132

  
133 133
///////////////////////////////////////////////////////////////////////////////////////////////////
134 134

  
135
  protected int[] getSolvedQuats(int cubit, int[] numLayers)
135
  public int[] getSolvedQuats(int cubit, int[] numLayers)
136 136
    {
137 137
    if( mQuats==null ) initializeQuats();
138 138
    if( mFaceMap==null ) mFaceMap = new int[] {4,0,6,2,7,3,5,1};
......
350 350

  
351 351
///////////////////////////////////////////////////////////////////////////////////////////////////
352 352

  
353
  protected float[][] getCubitPositions(int[] numLayers)
353
  public float[][] getCubitPositions(int[] numLayers)
354 354
    {
355 355
    int layers = numLayers[0];
356 356
    int numO = getNumOctahedrons(layers);
......
452 452

  
453 453
///////////////////////////////////////////////////////////////////////////////////////////////////
454 454

  
455
  protected Static4D getQuat(int cubit, int[] numLayers)
455
  public Static4D getQuat(int cubit, int[] numLayers)
456 456
    {
457 457
    if( mQuats==null ) initializeQuats();
458 458

  

Also available in: Unified diff