public class Subsample2D extends ScalarField2D.Default
ScalarField2D.Default, ScalarField2D.Empty, ScalarField2D.Test
Constructor and Description |
---|
Subsample2D(ScalarField2D field,
int step)
Instantiates a new subsample 2 D.
|
Subsample2D(ScalarField2D field,
int step_x,
int step_y)
Instantiates a new subsample 2 D.
|
Modifier and Type | Method and Description |
---|---|
int |
getHeight() |
float |
getValue(int x,
int y)
Gets the value.
|
int |
getWidth() |
getCoordinate, getNeighbors, getSize, getValue, isValid, toPImage
getValueRange
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getValueRange
public Subsample2D(ScalarField2D field, int step)
field
- the fieldstep
- the steppublic Subsample2D(ScalarField2D field, int step_x, int step_y)
field
- the fieldstep_x
- the step xstep_y
- the step ypublic int getWidth()
public int getHeight()
public float getValue(int x, int y)
ScalarField2D
x
- the xy
- the y