|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.starlink.ttools.plot2.layer.Gridder
public class Gridder
Maps positions on a 2-d grid to a 1-d index.
Constructor Summary | |
---|---|
Gridder(int nx,
int ny)
Constructor. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Gridder(int nx, int ny)
nx
- grid widthny
- grid heightMethod Detail |
---|
public int getWidth()
public int getHeight()
public int getIndex(int ix, int iy)
ix
- x positioniy
- y position
public int getLength()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |