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, wait
convertTo
public Int()
public Int(MapPosition p)
public Int(int coordFirst, int coordSecond)
public Int(int coordFirst, int coordSecond, short unit)
public short getUnit()
MapPosition
getUnit
in interface MapPosition
public void setLocation(float x, float y)
setLocation
in interface MapPosition
x
- the X parametery
- the Y parameterpublic java.lang.String toString()
toString
in class java.lang.Object
public float getFirstCoord()
getFirstCoord
in interface MapPosition
public float getSecondCoord()
getSecondCoord
in interface MapPosition
public double getFirstCoordDouble()
getFirstCoordDouble
in interface MapPosition
public double getSecondCoordDouble()
getSecondCoordDouble
in interface MapPosition
Copyright ©2017-2023 Dassault Aviation. All Rights Reserved. Documentation and source under the LGPL v3 licence