public interface MapPosition
| Modifier and Type | Interface and Description |
|---|---|
static class |
MapPosition.Double
A position in double precision.
|
static class |
MapPosition.Float
A position in simple precision.
|
static class |
MapPosition.Int
A position defined in int precision.
|
| Modifier and Type | Method and Description |
|---|---|
default MapPosition |
convertTo(short unit)
Convert this map position to another unit.
|
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.
|
short getUnit()
default MapPosition convertTo(short unit)
unit - the new unitvoid setLocation(float x,
float y)
x - the X parametery - the Y parameterfloat getFirstCoord()
float getSecondCoord()
double getFirstCoordDouble()
double getSecondCoordDouble()
Copyright ©2017-2023 Dassault Aviation. All Rights Reserved. Documentation and source under the LGPL v3 licence