|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xith3d.utility.interpolate.DistanceInterpolater
public class DistanceInterpolater
Handles changes in distance over time. Time values must always be in microseconds!
| Constructor Summary | |
|---|---|
DistanceInterpolater()
|
|
DistanceInterpolater(float speed,
float min,
float max)
Constructs the DistanceInterpolator. |
|
DistanceInterpolater(float speed,
float min,
float max,
boolean turnsBack)
Constructs the DistanceInterpolator. |
|
DistanceInterpolater(float value,
float speed,
float min,
float max)
Constructs the DistanceInterpolator. |
|
DistanceInterpolater(float value,
float speed,
float min,
float max,
boolean turnsBack)
Constructs the DistanceInterpolator. |
|
| Method Summary | |
|---|---|
float |
getMaxValue()
|
float |
getMinValue()
|
float |
getSpeed()
|
float |
getStartValue()
|
long |
getTicks(long curTime)
|
boolean |
getTurnsBack()
|
float |
getValue(long gameMicros)
|
float |
getValue(long gameTime,
UpdatingThread.TimingMode timingMode)
|
boolean |
isDecreasing()
|
boolean |
isIncreasing()
|
boolean |
isStarted()
|
void |
resetDecreasing(long startTime)
|
void |
resetIncreasing(long startTime)
|
void |
setMaxValue(float max)
|
void |
setMinValue(float min)
|
void |
setSpeed(float speed)
|
void |
setStartValue(float startVal)
|
void |
setTurnsBack(boolean turnsBack)
|
void |
setValue(float value)
|
void |
startDecreasing(long startTime)
|
void |
startIncreasing(long startTime)
|
void |
stop()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DistanceInterpolater(float value,
float speed,
float min,
float max,
boolean turnsBack)
value - Current anglespeed - meters per second that we changemin - Minimum acceptable angle in radiansmax - Maximum acceptable angle in radiansturnsBack - if true, the interpolation will invert when max or min is hit
public DistanceInterpolater(float speed,
float min,
float max,
boolean turnsBack)
speed - meters per second that we changemin - Minimum acceptable angle in radiansmax - Maximum acceptable angle in radiansturnsBack - if true, the interpolation will invert when max or min is hit
public DistanceInterpolater(float value,
float speed,
float min,
float max)
speed - meters per second that we changemin - Minimum acceptable angle in radiansmax - Maximum acceptable angle in radians
public DistanceInterpolater(float speed,
float min,
float max)
speed - meters per second that we changemin - Minimum acceptable angle in radiansmax - Maximum acceptable angle in radianspublic DistanceInterpolater()
| Method Detail |
|---|
public void stop()
public void startIncreasing(long startTime)
public void resetIncreasing(long startTime)
public void resetDecreasing(long startTime)
public void startDecreasing(long startTime)
public void setValue(float value)
public final float getValue(long gameMicros)
public final float getValue(long gameTime,
UpdatingThread.TimingMode timingMode)
public void setStartValue(float startVal)
public float getStartValue()
public void setSpeed(float speed)
public float getSpeed()
public void setMinValue(float min)
public float getMinValue()
public void setMaxValue(float max)
public float getMaxValue()
public void setTurnsBack(boolean turnsBack)
public boolean getTurnsBack()
public boolean isStarted()
public boolean isIncreasing()
public boolean isDecreasing()
public long getTicks(long curTime)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||