diff --git a/net.wolfgangwerner.geo/src/net/wolfgangwerner/geo/distance/DistanceCalculationAlgorithm.java b/net.wolfgangwerner.geo/src/net/wolfgangwerner/geo/distance/DistanceCalculationAlgorithm.java deleted file mode 100644 index aaf4ebe..0000000 --- a/net.wolfgangwerner.geo/src/net/wolfgangwerner/geo/distance/DistanceCalculationAlgorithm.java +++ /dev/null @@ -1,7 +0,0 @@ -package net.wolfgangwerner.geo.distance; - -import net.wolfgangwerner.geo.model.GeoPoint; - -public interface DistanceCalculationAlgorithm { - public double distanceInKilometres(GeoPoint from, GeoPoint to); -} \ No newline at end of file diff --git a/net.wolfgangwerner.geo/src/net/wolfgangwerner/geo/distance/GreatCircleDistanceAlgorithm.java b/net.wolfgangwerner.geo/src/net/wolfgangwerner/geo/distance/GreatCircleDistanceAlgorithm.java deleted file mode 100644 index 4003a85..0000000 --- a/net.wolfgangwerner.geo/src/net/wolfgangwerner/geo/distance/GreatCircleDistanceAlgorithm.java +++ /dev/null @@ -1,21 +0,0 @@ -package net.wolfgangwerner.geo.distance; - -import static net.wolfgangwerner.geo.GeoConstants.EARTH_RADIUS_IN_KM; -import net.wolfgangwerner.geo.model.GeoPoint; - -public class GreatCircleDistanceAlgorithm implements - DistanceCalculationAlgorithm { - - @Override - public double distanceInKilometres(GeoPoint from, GeoPoint to) { - - double d = Math.acos((Math.cos(from.getLatitudeRadians()) * Math.cos(to - .getLatitudeRadians())) - + (Math.sin(from.getLatitudeRadians()) * Math.sin(to - .getLatitudeRadians())) - * (Math.cos(from.getLongitudeRadians() - - to.getLongitudeRadians()))); - return (d * EARTH_RADIUS_IN_KM); - } - -}