|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.sunflow.math.MovingMatrix4
public final class MovingMatrix4
This class describes a transformation matrix that changes over time. Note that while unlimited motion segments are supported, it is assumed that these segments represent equidistant samples within a given time range.
Constructor Summary | |
---|---|
MovingMatrix4(Matrix4 m)
Constructs a simple static matrix. |
Method Summary | |
---|---|
Matrix4 |
getData(int i)
Get the matrix for the given time step. |
MovingMatrix4 |
inverse()
|
int |
numSegments()
Get the number of matrix segments |
Matrix4 |
sample(float time)
|
void |
setSteps(int n)
Redefines the number of steps in the matrix. |
void |
updateData(int i,
Matrix4 m)
Updates the matrix for the given time step. |
void |
updateTimes(float t0,
float t1)
Update the time extents over which the matrix data is changing. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MovingMatrix4(Matrix4 m)
m
- matrix value at all timesMethod Detail |
---|
public void setSteps(int n)
n
- public void updateData(int i, Matrix4 m)
i
- time step to updatem
- new value for the matrix at this time steppublic Matrix4 getData(int i)
i
- time step to get
public int numSegments()
public void updateTimes(float t0, float t1)
t0
- t1
- public MovingMatrix4 inverse()
public Matrix4 sample(float time)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |