@Test public void vincentyDistance_originToNorthPole_returnDistanceFromPoleToEquator() { LatLong zeroZero = new LatLong(0d, 0d); LatLong northPole = new LatLong(90d, 0d); double vincenty = LatLongUtils.vincentyDistance(zeroZero, northPole); assertEquals(DISTANCE_POLE_TO_EQUATOR, vincenty, 1); }
public double vincentyDistance(LatLong other) { return LatLongUtils.vincentyDistance(this, other); }
LatLong implements Comparable<LatLong> { public double vincentyDistance(LatLong other) { return LatLongUtils.vincentyDistance(this, other); } }
LatLong implements Comparable<LatLong> { public double vincentyDistance(LatLong other) { return LatLongUtils.vincentyDistance(this, other); } LatLong(double latitude, double longitude);  LatLong(String wellKnownText); }
LatLong implements Comparable<LatLong> { public double vincentyDistance(LatLong other) { return LatLongUtils.vincentyDistance(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 vincentyDistance(LatLong other) { return LatLongUtils.vincentyDistance(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; }