Revision ea16dc89
Added by Leszek Koltunski over 7 years ago
src/main/java/org/distorted/library/type/Dynamic.java | ||
---|---|---|
23 | 23 |
import java.util.Vector; |
24 | 24 |
|
25 | 25 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
26 |
/** A class to interpolate between a List of Static{1,2,3,4}Ds.
|
|
26 |
/** A class to interpolate between a list of Statics.
|
|
27 | 27 |
* <p><ul> |
28 | 28 |
* <li>if there is only one Point, just jump to it. |
29 | 29 |
* <li>if there are two Points, linearly bounce between them |
... | ... | |
524 | 524 |
|
525 | 525 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
526 | 526 |
/** |
527 |
* Returns the number of Static{1,2,3,4}Ds this Dynamic has been fed with.
|
|
527 |
* Returns the number of Statics this Dynamic has been fed with. |
|
528 | 528 |
* |
529 |
* @return the number of Static{1,2,3,4}Ds we are currently interpolating through.
|
|
529 |
* @return the number of Statics we are currently interpolating through. |
|
530 | 530 |
*/ |
531 | 531 |
public synchronized int getNumPoints() |
532 | 532 |
{ |
... | ... | |
537 | 537 |
/** |
538 | 538 |
* Controls how many times we want to interpolate. |
539 | 539 |
* <p> |
540 |
* Count equal to 1 means 'go from the first Static{1,2,3,4}D to the last and back'. Does not have to be an
|
|
540 |
* Count equal to 1 means 'go from the first Static to the last and back'. Does not have to be an |
|
541 | 541 |
* integer - i.e. count=1.5 would mean 'start at the first Point, go to the last, come back to the first, |
542 | 542 |
* go to the last again and stop'. |
543 | 543 |
* Count<=0 means 'go on interpolating indefinitely'. |
544 | 544 |
* |
545 |
* @param count the number of times we want to interpolate between our collection of Static{1,2,3,4}Ds.
|
|
545 |
* @param count the number of times we want to interpolate between our collection of Statics. |
|
546 | 546 |
*/ |
547 | 547 |
public void setCount(float count) |
548 | 548 |
{ |
Also available in: Unified diff
minor stuff