public class Static2D extends Static implements Data2D
Constructor and Description |
---|
Static2D(float ox,
float oy)
Constructor that initialises the value of the two floats to (ox,oy).
|
Modifier and Type | Method and Description |
---|---|
boolean |
get(float[] buffer,
int offset,
long time,
long step)
'Interpolation' between the single Point (i.e.
|
float |
get0()
Return the value of the first float contained.
|
float |
get1()
Return the value of the second float contained.
|
void |
set(float ox,
float oy)
Reset the value of the floats to (ox,oy).
|
void |
set(Static2D s)
Copy a Static2D.
|
void |
set0(float ox)
Resets the value of the first float.
|
void |
set1(float oy)
Resets the value of the second float.
|
getDimension
public Static2D(float ox, float oy)
ox
- value of the first float.oy
- value of the second float.public void set(float ox, float oy)
ox
- new value of the first floatoy
- new value of the seond floatpublic void set(Static2D s)
public void set0(float ox)
ox
- new value of the first float.public void set1(float oy)
oy
- new value of the second float.public float get0()
public float get1()
public boolean get(float[] buffer, int offset, long time, long step)