Project

General

Profile

« Previous | Next » 

Revision 8c893ffc

Added by Leszek Koltunski almost 8 years ago

Further reduce the distortedObject's API - now only 26 methods, 1/4 of the 104 before the reorganization.

View differences:

src/main/java/org/distorted/library/type/Dynamic1D.java
212 212
 */
213 213
  public Dynamic1D()
214 214
    {
215
    vv = new Vector<Static1D>();
216
    vc = new Vector<VectorCache>();
215
    vv = new Vector<>();
216
    vc = new Vector<>();
217 217
    vn = null;
218 218
    numPoints = 0;
219 219
    cacheDirty = false;
......
221 221
    mDuration = 0;
222 222
    mCount = 0.5f;
223 223
    }
224
  
224

  
225
///////////////////////////////////////////////////////////////////////////////////////////////////
226

  
227
/**
228
 * Default constructor.
229
 *
230
 * @param duration number of milliseconds it takes to do a full loop/path from first vector to the
231
 *                 last and back to the first
232
 * @param count    number of loops/paths we will do; mCount = 1.5 means we go from the first vector
233
 *                 to the last, back to first, and to the last again.
234
 */
235
  public Dynamic1D(int duration, float count)
236
    {
237
    vv = new Vector<>();
238
    vc = new Vector<>();
239
    vn = null;
240
    numPoints = 0;
241
    cacheDirty = false;
242
    mMode = MODE_LOOP;
243
    mDuration = duration;
244
    mCount = count;
245
    }
246

  
225 247
///////////////////////////////////////////////////////////////////////////////////////////////////
226 248
/**
227 249
 * Returns the location'th Static1D.

Also available in: Unified diff