it.unibo.alchemist.model.interfaces.GeoPosition Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of alchemist-interfaces Show documentation
Show all versions of alchemist-interfaces Show documentation
Interfaces of core and model components of Alchemist
/*
* Copyright (C) 2010-2019, Danilo Pianini and contributors listed in the main project's alchemist/build.gradle file.
*
* This file is part of Alchemist, and is distributed under the terms of the
* GNU General Public License, with a linking exception,
* as described in the file LICENSE in the Alchemist distribution's top directory.
*/
package it.unibo.alchemist.model.interfaces;
/**
* Represents a specific point on the Earth's surface.
*/
public interface GeoPosition extends Position2D {
/**
* @return the latitude
*/
double getLatitude();
/**
* @return the longitude
*/
double getLongitude();
@Deprecated
@Override
double getCoordinate(int dim);
/**
* Adds two {@link GeoPosition}.
*
* @param other the position to sum to
* @return the sum.
*/
GeoPosition plus(GeoPosition other);
/**
* Subtracts the provided {@link GeoPosition} from this {@link GeoPosition}.
*
* @param other the position to subtract to this one
* @return the difference.
*/
GeoPosition minus(GeoPosition other);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy