Project

General

Profile

« Previous | Next » 

Revision f9a81f52

Added by Leszek Koltunski over 2 years ago

Progress with serializing object to JSON: scrambling.

View differences:

src/main/java/org/distorted/objectlib/helpers/ScrambleState.java
29 29
  private final int[] mNum;
30 30
  private final int[] mInfo;
31 31
  private final int[] mTmp;
32
  private final int[][] mOrigAxis;
32 33
  private final int LEN = 4;
33 34

  
34 35
///////////////////////////////////////////////////////////////////////////////////////////////////
35 36

  
36 37
  public ScrambleState(int[][] axis)
37 38
    {
39
    mOrigAxis = axis;
40

  
38 41
    mTmp = new int[LEN];
39 42

  
40 43
    mNumAxis = axis.length;
......
137 140
    return mTmp;
138 141
    }
139 142

  
143
///////////////////////////////////////////////////////////////////////////////////////////////////
144

  
145
  public int getNumAxis()
146
    {
147
    return mNumAxis;
148
    }
149

  
150
///////////////////////////////////////////////////////////////////////////////////////////////////
151

  
152
  public int[] getAx(int numAx)
153
    {
154
    return (numAx>=0 && numAx<mNumAxis) ? mOrigAxis[numAx] : null;
155
    }
156

  
140 157
///////////////////////////////////////////////////////////////////////////////////////////////////
141 158

  
142 159
  public int getTotal(int indexExcluded)

Also available in: Unified diff