|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.newdawn.slick.particles.ConfigurableEmitter.LinearInterpolator
public class ConfigurableEmitter.LinearInterpolator
A value computed based on linear interpolation between a set of points
| Constructor Summary | |
|---|---|
ConfigurableEmitter.LinearInterpolator(java.util.ArrayList curve,
int min,
int max)
Create a new interpolated value |
|
| Method Summary | |
|---|---|
java.util.ArrayList |
getCurve()
The list of data points to interpolate between |
int |
getMax()
Get the maxmimum value possible in this data set |
int |
getMin()
Get the minimum value possible in this data set |
float |
getValue(float t)
Get the value to use at a given time value |
boolean |
isActive()
Check if this interpolated value should be used |
void |
setActive(boolean active)
Indicate if this interpoalte value should be used |
void |
setCurve(java.util.ArrayList curve)
Set the collection of data points to interpolate between |
void |
setMax(int max)
Set the maximum value possible in this data set |
void |
setMin(int min)
Set the minimum value possible in this data set |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ConfigurableEmitter.LinearInterpolator(java.util.ArrayList curve,
int min,
int max)
curve - The set of points to interpolate betweenmin - The minimum value in the datasetmax - The maximum value possible in the dataset| Method Detail |
|---|
public void setCurve(java.util.ArrayList curve)
curve - The list of data points to interpolate betweenpublic java.util.ArrayList getCurve()
public float getValue(float t)
getValue in interface ConfigurableEmitter.Valuet - The time value (expecting t in [0,1])
public boolean isActive()
public void setActive(boolean active)
active - True if this value should be usedpublic int getMax()
public void setMax(int max)
max - The maximum value possible in this data setpublic int getMin()
public void setMin(int min)
min - The minimum value possible in this data set
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||