Revision 8c893ffc
Added by Leszek Koltunski almost 8 years ago
src/main/java/org/distorted/library/type/Dynamic4D.java | ||
---|---|---|
446 | 446 |
*/ |
447 | 447 |
public Dynamic4D() |
448 | 448 |
{ |
449 |
vv = new Vector<Static4D>();
|
|
450 |
vc = new Vector<VectorCache>();
|
|
449 |
vv = new Vector<>(); |
|
450 |
vc = new Vector<>(); |
|
451 | 451 |
vn = null; |
452 | 452 |
numPoints = 0; |
453 | 453 |
cacheDirty = false; |
... | ... | |
456 | 456 |
mCount = 0.5f; |
457 | 457 |
mNoise = 0.0f; |
458 | 458 |
} |
459 |
|
|
459 |
|
|
460 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
461 |
|
|
462 |
/** |
|
463 |
* Default constructor. |
|
464 |
* |
|
465 |
* @param duration number of milliseconds it takes to do a full loop/path from first vector to the |
|
466 |
* last and back to the first |
|
467 |
* @param count number of loops/paths we will do; mCount = 1.5 means we go from the first vector |
|
468 |
* to the last, back to first, and to the last again. |
|
469 |
*/ |
|
470 |
public Dynamic4D(int duration, float count) |
|
471 |
{ |
|
472 |
vv = new Vector<>(); |
|
473 |
vc = new Vector<>(); |
|
474 |
vn = null; |
|
475 |
numPoints = 0; |
|
476 |
cacheDirty = false; |
|
477 |
mMode = MODE_LOOP; |
|
478 |
mDuration = duration; |
|
479 |
mCount = count; |
|
480 |
} |
|
481 |
|
|
460 | 482 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
461 | 483 |
/** |
462 | 484 |
* Returns the location'th Static4D. |
Also available in: Unified diff
Further reduce the distortedObject's API - now only 26 methods, 1/4 of the 104 before the reorganization.