|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xith3d.utility.interpolate.AngleInterpolater
public class AngleInterpolater
Creates a time based interpolator for angles. The result is an angle in radians appropriate to use as a euler angle. The speed is specfied in radians/second. The interpolator can be increasing or decreasing. Time values must always be in microseconds!
| Constructor Summary | |
|---|---|
AngleInterpolater()
|
|
AngleInterpolater(float speed)
Constructs the AngleInterpolator. |
|
AngleInterpolater(float speed,
boolean wraps)
Constructs the AngleInterpolator. |
|
AngleInterpolater(float speed,
float min,
float max,
boolean wraps)
Constructs the AngleInterpolator. |
|
AngleInterpolater(float value,
float speed,
float min,
float max,
boolean wraps)
Constructs the AngleInterpolator. |
|
| Method Summary | |
|---|---|
float |
getMaxValue()
|
float |
getMinValue()
|
float |
getSpeed()
|
float |
getStartValue()
|
float |
getValue(long gameMicros)
|
float |
getValue(long gameTime,
UpdatingThread.TimingMode timingMode)
|
boolean |
getWraps()
|
boolean |
isStopped()
|
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 |
setValue(float angle)
|
void |
setWraps(boolean wraps)
|
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 AngleInterpolater(float value,
float speed,
float min,
float max,
boolean wraps)
value - Current anglespeed - Radians per second that we changemin - Minimum acceptable angle in radiansmax - Maximum acceptable angle in radianswraps - Determines if the angle wraps to MIN when it reaches MAX and visa versa
public AngleInterpolater(float speed,
float min,
float max,
boolean wraps)
speed - Radians per second that we changemin - Minimum acceptable angle in radiansmax - Maximum acceptable angle in radianswraps - Determines if the angle wraps to MIN when it reaches MAX and visa versa
public AngleInterpolater(float speed,
boolean wraps)
speed - Radians per second that we changewraps - Determines if the angle wraps to MIN when it reaches MAX and visa versapublic AngleInterpolater(float speed)
speed - Radians per second that we changepublic AngleInterpolater()
| Method Detail |
|---|
public void stop()
public boolean isStopped()
public void startIncreasing(long startTime)
public void resetIncreasing(long startTime)
public void resetDecreasing(long startTime)
public void startDecreasing(long startTime)
public void setValue(float angle)
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 setWraps(boolean wraps)
public boolean getWraps()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||