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/Dynamic2D.java
239 239
 */
240 240
  public Dynamic2D()
241 241
    {
242
    vv = new Vector<Static2D>();
243
    vc = new Vector<VectorCache>();
242
    vv = new Vector<>();
243
    vc = new Vector<>();
244 244
    vn = null;
245 245
    numPoints = 0;
246 246
    cacheDirty = false;
......
249 249
    mCount = 0.5f;
250 250
    mNoise = 0.0f;
251 251
    }
252
  
252

  
253
///////////////////////////////////////////////////////////////////////////////////////////////////
254

  
255
/**
256
 * Default constructor.
257
 *
258
 * @param duration number of milliseconds it takes to do a full loop/path from first vector to the
259
 *                 last and back to the first
260
 * @param count    number of loops/paths we will do; mCount = 1.5 means we go from the first vector
261
 *                 to the last, back to first, and to the last again.
262
 */
263
  public Dynamic2D(int duration, float count)
264
    {
265
    vv = new Vector<>();
266
    vc = new Vector<>();
267
    vn = null;
268
    numPoints = 0;
269
    cacheDirty = false;
270
    mMode = MODE_LOOP;
271
    mDuration = duration;
272
    mCount = count;
273
    }
274

  
253 275
///////////////////////////////////////////////////////////////////////////////////////////////////
254 276
/**
255 277
 * Returns the location'th Static2D.

Also available in: Unified diff