public class Subset2D extends ScalarField2D.Default
ScalarField2D.Default, ScalarField2D.Empty, ScalarField2D.Test
Constructor and Description |
---|
Subset2D(ScalarField2D src,
int[] x_range,
int[] y_range)
Instantiates a new subset 2 D.
|
Modifier and Type | Method and Description |
---|---|
double[] |
getCoordinate(int x,
int y) |
int |
getHeight() |
float |
getValue(int x,
int y)
Gets the value.
|
int |
getWidth() |
getNeighbors, getSize, getValue, isValid, toPImage
getValueRange
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getValueRange
public Subset2D(ScalarField2D src, int[] x_range, int[] y_range)
src
- the srcx_range
- the x rangey_range
- the y rangepublic int getWidth()
public int getHeight()
public float getValue(int x, int y)
ScalarField2D
x
- the xy
- the ypublic double[] getCoordinate(int x, int y)
getCoordinate
in interface ScalarField2D
getCoordinate
in class ScalarField2D.Default