-
- All Implemented Interfaces:
-
it.unibo.alchemist.model.interfaces.Position,it.unibo.alchemist.model.interfaces.Position2D,java.io.Serializable
public interface GeoPosition implements Position2D<GeoPosition>
Represents a specific point on the Earth's surface.
-
-
Method Summary
Modifier and Type Method Description abstract doublegetLatitude()abstract doublegetLongitude()abstract doublegetCoordinate(int dim)Allows to access the value of a coordinate. abstract GeoPositionplus(GeoPosition other)Adds two GeoPosition. abstract GeoPositionminus(GeoPosition other)Subtracts the provided GeoPosition from this GeoPosition. -
Methods inherited from class it.unibo.alchemist.model.interfaces.Position2D
getX, getY -
Methods inherited from class it.unibo.alchemist.model.interfaces.Position
boundingBox, distanceTo, getCoordinates, getDimensions, minus, plus -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
getLatitude
abstract double getLatitude()
-
getLongitude
abstract double getLongitude()
-
getCoordinate
@Deprecated() abstract double getCoordinate(int dim)
Allows to access the value of a coordinate.
- Parameters:
dim-the dimension. E.g., in a 2-dimensional implementation, 0 could be the X-axis and 1 the Y-axis
-
plus
abstract GeoPosition plus(GeoPosition other)
Adds two GeoPosition.
- Parameters:
other- the position to sum to
-
minus
abstract GeoPosition minus(GeoPosition other)
Subtracts the provided GeoPosition from this GeoPosition.
- Parameters:
other- the position to subtract to this one
-
-
-
-