|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.threerings.opengl.effect.PositionHistory
public final class PositionHistory
Stores all of the positions occupied by a particle up to a maximum interval and provides a means of retrieving an interpolated historical position.
| Constructor Summary | |
|---|---|
PositionHistory()
|
|
| Method Summary | |
|---|---|
Vector3f |
get(float t,
Vector3f result)
Computes the position at some point in the past. |
void |
init(Vector3f initial,
Transform3D transform)
(Re)initializes the history. |
void |
record(Vector3f position,
float elapsed,
float length)
Records a position occupied by the particle. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PositionHistory()
| Method Detail |
|---|
public void init(Vector3f initial,
Transform3D transform)
initial - the initial position.transform - the transform to apply to new entries, or null for none.
public void record(Vector3f position,
float elapsed,
float length)
public Vector3f get(float t,
Vector3f result)
t - the time parameter: zero for the oldest location, one for the newest.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||