public class TwoDimensionalFloatArray extends TwoDimensionalFloatReadAccess.Base implements TwoDimensionalFloatAccess
TwoDimensionalFloatReadAccess.BaseEMPTY| Constructor and Description |
|---|
TwoDimensionalFloatArray(int ySize,
float... values)
Constructor.
|
TwoDimensionalFloatArray(int xSize,
int ySize)
Constructor.
|
TwoDimensionalFloatArray(int xSize,
int ySize,
IntToFloatFunction2 filler)
Initializing constructor.
|
| Modifier and Type | Method and Description |
|---|---|
float |
getValueAt(int ix,
int iy)
Get the value at the given indexes.
|
void |
setValueAt(float value,
int ix,
int iy)
Set the value at the given indexes.
|
int |
sizeX()
Get the number of elements in X direction.
|
int |
sizeY()
Get the number of elements in Y direction
|
asBaseequals, hashCode, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitchangeAllValues, changeValueAt, fillValuesByIndex, setElementAt, subAtX, subAtY, transposedasBase, getElementAt, singletonchangeAll, changeAll, createConstant, createIndexed, createNulled, createSupplied, empty, fillByIndex, setElement, zeroX, zeroYequal, getElement, getNumDimensions, getNumElements, getSize, getSizes, hash, toString, view, visitAll, visitAll, xIterable, xIterator, yIterable, yIteratorchange, setAll, setFrom, setFrom, setFromempty, linearizedpublic TwoDimensionalFloatArray(int xSize,
int ySize)
0.0F values.xSize - X size of arrayySize - Y size of arraypublic TwoDimensionalFloatArray(int xSize,
int ySize,
@NotNull
IntToFloatFunction2 filler)
xSize - X size of arrayySize - Y size of arrayfiller - setter function which provides the value to set for each index combinationTwoDimensionalFloatAccess.fillValuesByIndex(IntToFloatFunction2)public TwoDimensionalFloatArray(int ySize,
float... values)
ySize - size in y directionvalues - values in order, the first ySize values
will become row 0, the second ySize values
row 1, and so on. Needs a multiple of ySize values.public void setValueAt(float value,
int ix,
int iy)
setValueAt in interface TwoDimensionalFloatAccessvalue - value to setix - X indexiy - Y indexpublic float getValueAt(int ix,
int iy)
getValueAt in interface TwoDimensionalFloatReadAccessix - X indexiy - Y indexpublic int sizeX()
TwoDimensionalReadAccesssizeX in interface TwoDimensionalReadAccess<java.lang.Float>public int sizeY()
TwoDimensionalReadAccesssizeY in interface TwoDimensionalReadAccess<java.lang.Float>