public class GridPoint extends Object implements IGridPoint
Constructor and Description |
---|
GridPoint(double row,
double column)
Standard constructor.
|
GridPoint(double row,
double column,
int iRow,
int iColumn)
Standard constructor.
|
Modifier and Type | Method and Description |
---|---|
double |
getColumn()
Get the column value associated with the grid point
|
int |
getColumnInt()
Gets the column index associated with the grid point
|
double |
getRow()
Get the row value associated with the grid point
|
int |
getRowInt()
Gets the row index associated with the grid point
|
double |
getX()
Returns the floating point value associated with the columnar position
of the grid point.
|
double |
getY()
Returns the floating point value associated with the row position
of the grid point.
|
String |
toString() |
public GridPoint(double row, double column)
The grid coordinates are a real-valued and potentially fractional row and column value.
row
- a finite, real-valued coordinate in the grid systemcolumn
- a finite, real-valued coordinate in the grid systempublic GridPoint(double row, double column, int iRow, int iColumn)
The grid coordinates are a real-valued and potentially fractional row and column value.
row
- a finite, real-valued coordinate in the grid systemcolumn
- a finite, real-valued coordinate in the grid systemiRow
- an integer value, usually derived from the row valueiColumn
- an integer value, usual derived from the column valuepublic double getRow()
getRow
in interface IGridPoint
public double getColumn()
getColumn
in interface IGridPoint
public int getRowInt()
getRowInt
in interface IGridPoint
public int getColumnInt()
getColumnInt
in interface IGridPoint
public double getX()
public double getY()
Copyright © 2022. All rights reserved.