public class Gridder
extends java.lang.Object
| Constructor | Description |
|---|---|
Gridder(int nx,
int ny) |
Constructor.
|
| Modifier and Type | Method | Description |
|---|---|---|
int |
getHeight() |
Returns grid height.
|
int |
getIndex(int ix,
int iy) |
Returns the 1-d index corresponding to a given x,y position.
|
int |
getLength() |
Returns the number of points in the grid and array.
|
int |
getWidth() |
Returns grid width.
|
int |
getX(int index) |
Returns the X index corresponding to a pixel index.
|
int |
getY(int index) |
Returns the Y index corresponding to a pixel index.
|
static Gridder |
transpose(Gridder base) |
Returns a Gridder instance that is the transpose of the supplied one.
|
public Gridder(int nx,
int ny)
nx - grid widthny - grid heightpublic int getWidth()
public int getHeight()
public int getIndex(int ix,
int iy)
ix - x positioniy - y positionpublic int getX(int index)
index - 1-d indexpublic int getY(int index)
index - 1-d indexpublic int getLength()
Copyright © 2018 Central Laboratory of the Research Councils. All Rights Reserved.