@Test public void sphericalDistance_originToNearOfSriLanka_returnQuarterOfEarthEquatorCircumference() { LatLong zeroZero = new LatLong(0d, 0d); LatLong nearSriLanka = new LatLong(0d, 90d); double spherical = LatLongUtils.sphericalDistance(zeroZero, nearSriLanka); assertEquals(EARTH_EQUATOR_CIRCUMFERENCE / 4, spherical, 0d); }
public double sphericalDistance(LatLong other) { return LatLongUtils.sphericalDistance(this, other); }
LatLong implements Comparable<LatLong> { public double sphericalDistance(LatLong other) { return LatLongUtils.sphericalDistance(this, other); } }
LatLong implements Comparable<LatLong> { public double sphericalDistance(LatLong other) { return LatLongUtils.sphericalDistance(this, other); } LatLong(double latitude, double longitude);  LatLong(String wellKnownText); }
LatLong implements Comparable<LatLong> { public double sphericalDistance(LatLong other) { return LatLongUtils.sphericalDistance(this, other); } LatLong(double latitude, double longitude);  LatLong(String wellKnownText); @Override int compareTo(LatLong latLong); LatLong destinationPoint(double distance, float bearing); double distance(LatLong other); @Override boolean equals(Object obj); static LatLong fromMicroDegrees(int latitudeE6, int longitudeE6); static LatLong fromString(String latLonString); double getLatitude(); int getLatitudeE6(); double getLongitude(); int getLongitudeE6(); @Override int hashCode(); double sphericalDistance(LatLong other); @Override String toString(); double vincentyDistance(LatLong other); }
LatLong implements Comparable<LatLong> { public double sphericalDistance(LatLong other) { return LatLongUtils.sphericalDistance(this, other); } LatLong(double latitude, double longitude);  LatLong(String wellKnownText); @Override int compareTo(LatLong latLong); LatLong destinationPoint(double distance, float bearing); double distance(LatLong other); @Override boolean equals(Object obj); static LatLong fromMicroDegrees(int latitudeE6, int longitudeE6); static LatLong fromString(String latLonString); double getLatitude(); int getLatitudeE6(); double getLongitude(); int getLongitudeE6(); @Override int hashCode(); double sphericalDistance(LatLong other); @Override String toString(); double vincentyDistance(LatLong other); final double latitude; final double longitude; }