Revision 8c893ffc
Added by Leszek Koltunski almost 8 years ago
src/main/java/org/distorted/library/type/Dynamic3D.java | ||
---|---|---|
350 | 350 |
*/ |
351 | 351 |
public Dynamic3D() |
352 | 352 |
{ |
353 |
vv = new Vector<Static3D>();
|
|
354 |
vc = new Vector<VectorCache>();
|
|
353 |
vv = new Vector<>(); |
|
354 |
vc = new Vector<>(); |
|
355 | 355 |
vn = null; |
356 | 356 |
numPoints = 0; |
357 | 357 |
cacheDirty = false; |
... | ... | |
360 | 360 |
mCount = 0.5f; |
361 | 361 |
mNoise = 0.0f; |
362 | 362 |
} |
363 |
|
|
363 |
|
|
364 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
365 |
|
|
366 |
/** |
|
367 |
* Default constructor. |
|
368 |
* |
|
369 |
* @param duration number of milliseconds it takes to do a full loop/path from first vector to the |
|
370 |
* last and back to the first |
|
371 |
* @param count number of loops/paths we will do; mCount = 1.5 means we go from the first vector |
|
372 |
* to the last, back to first, and to the last again. |
|
373 |
*/ |
|
374 |
public Dynamic3D(int duration, float count) |
|
375 |
{ |
|
376 |
vv = new Vector<>(); |
|
377 |
vc = new Vector<>(); |
|
378 |
vn = null; |
|
379 |
numPoints = 0; |
|
380 |
cacheDirty = false; |
|
381 |
mMode = MODE_LOOP; |
|
382 |
mDuration = duration; |
|
383 |
mCount = count; |
|
384 |
} |
|
385 |
|
|
364 | 386 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
365 | 387 |
/** |
366 | 388 |
* Returns the location'th Static3D. |
Also available in: Unified diff
Further reduce the distortedObject's API - now only 26 methods, 1/4 of the 104 before the reorganization.