|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--iicm.vrml.pwutils.FloatArray
FloatArray - dynamic array of float type values better time and memory efficiency than Vector, float[] accessible in native code Copyright (c) 1996 IICM
Constructor Summary | |
FloatArray()
create with default length |
|
FloatArray(float[] dat)
copy initial data from another float[]. |
|
FloatArray(FloatArray dat)
copy initial data from another FloatArray (non-null). do not use the above constructor in this case, as it would use all values, not just the used length (count); again: values are *copied* |
|
FloatArray(int len)
create with initial buffer length |
Method Summary | |
void |
append(float d)
append one float element |
void |
append(float[] d,
int num)
append several float elements |
boolean |
clearData()
clear the array |
int |
getCount()
get count of used array members. |
float[] |
getData()
get data array. |
float[] |
getTrimmedArray()
get data array with proper length. |
void |
setData(float[] dat)
copy data from a float[] |
void |
setData(float[] dat,
int n)
copy first n elements of a float[] |
void |
setData(FloatArray dat)
copy data from another FloatArray |
void |
setSize(int n)
set number of used array elements (ensures there is enough storage) |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public FloatArray()
public FloatArray(int len)
public FloatArray(float[] dat)
public FloatArray(FloatArray dat)
Method Detail |
public void setData(FloatArray dat)
public void setData(float[] dat)
public void setData(float[] dat, int n)
public final int getCount()
public final float[] getData()
public final float[] getTrimmedArray()
public void append(float d)
public void append(float[] d, int num)
public void setSize(int n)
public boolean clearData()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |