Position extends Location { @Override public boolean equals(Object o) { if (o == null || this.getClass() != o.getClass()) { return false; } Position that = (Position) o; return this.latitude == that.latitude && this.longitude == that.longitude && this.altitude == that.altitude; } Position();  Position(double latitude, double longitude, double altitude);  Position(Position position); static Position fromDegrees(double latitudeDegrees, double longitudeDegrees, double altitude); static Position fromRadians(double latitudeRadians, double longitudeRadians, double altitude); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString(); Position set(double latitude, double longitude, double altitude); Position set(Position position); Position interpolateAlongPath(Position endPosition, @WorldWind.PathType int pathType, double amount,
                                         Position result); public double altitude; }
@Test public void testEquals() throws Exception { double lat = 34.2; double lon = -119.2; double elev = 13.7; Position a = new Position(lat, lon, elev); Position b = new Position(lat, lon, elev); assertEquals("equality: latitude", b.latitude, a.latitude, 0); assertEquals("equality: longitude", b.longitude, a.longitude, 0); assertEquals("equality: altitude", b.altitude, a.altitude, 0); assertEquals("equality", a, b); }