Position extends Location { public static Position fromRadians(double latitudeRadians, double longitudeRadians, double altitude) { Position pos = new Position(); pos.latitude = Math.toDegrees(latitudeRadians); pos.longitude = Math.toDegrees(longitudeRadians); pos.altitude = altitude; return pos; } 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 testFromRadians() throws Exception { double lat = 34.2; double lon = -119.2; double elev = 13.7; double latRad = Math.toRadians(lat); double lonRad = Math.toRadians(lon); Position oxr = Position.fromRadians(latRad, lonRad, elev); assertNotNull(oxr); assertEquals("latitude", lat, oxr.latitude, TOLERANCE); assertEquals("longitude", lon, oxr.longitude, TOLERANCE); assertEquals("altitude", elev, oxr.altitude, 0); }