Project

General

Profile

« Previous | Next » 

Revision cda32fc1

Added by Leszek Koltunski over 2 years ago

Convert the Redi to the new scrambling paradigm.

View differences:

src/main/java/org/distorted/helpers/ScrambleState.java
138 138
    {
139 139
    return ( indexExcluded>=0 && indexExcluded<mNumAxis ) ? mTotal-mNum[indexExcluded] : mTotal;
140 140
    }
141

  
142
///////////////////////////////////////////////////////////////////////////////////////////////////
143

  
144
  public int[] getInfo(int num, int indexExcluded)
145
    {
146
    int index = getIndex(num,indexExcluded);
147

  
148
    mTmp[0] = mInfo[LEN*index  ];   // axis
149
    mTmp[1] = mInfo[LEN*index+1];   // row
150
    mTmp[2] = mInfo[LEN*index+2];   // angle
151
    mTmp[3] = mInfo[LEN*index+3];   // next state
152

  
153
    return mTmp;
154
    }
155 141
}

Also available in: Unified diff