public static class MapPosition.Int extends java.lang.Object implements MapPosition
MapPosition.Double, MapPosition.Float, MapPosition.Int| Constructor and Description |
|---|
Int() |
Int(int coordFirst,
int coordSecond) |
Int(int coordFirst,
int coordSecond,
short unit) |
Int(MapPosition p) |
| Modifier and Type | Method and Description |
|---|---|
float |
getFirstCoord()
Return the first coordinate (which is normally a X position).
|
double |
getFirstCoordDouble()
Return the first coordinate in double precision.
|
float |
getSecondCoord()
Return the second coordinate (which is normally a Y position).
|
double |
getSecondCoordDouble()
Return the second coordinate in double precision.
|
short |
getUnit()
Return the position unit.
|
void |
setLocation(float x,
float y)
Set the position.
|
java.lang.String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitconvertTopublic Int()
public Int(MapPosition p)
public Int(int coordFirst,
int coordSecond)
public Int(int coordFirst,
int coordSecond,
short unit)
public short getUnit()
MapPositiongetUnit in interface MapPositionpublic void setLocation(float x,
float y)
setLocation in interface MapPositionx - the X parametery - the Y parameterpublic java.lang.String toString()
toString in class java.lang.Objectpublic float getFirstCoord()
getFirstCoord in interface MapPositionpublic float getSecondCoord()
getSecondCoord in interface MapPositionpublic double getFirstCoordDouble()
getFirstCoordDouble in interface MapPositionpublic double getSecondCoordDouble()
getSecondCoordDouble in interface MapPositionCopyright ©2017-2023 Dassault Aviation. All Rights Reserved. Documentation and source under the LGPL v3 licence