public class Gridder extends Object
Constructor and Description |
---|
Gridder(int nx,
int ny)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
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.
|
int |
hashCode() |
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 © 2024 Central Laboratory of the Research Councils. All Rights Reserved.