Globe { public double getPolarRadius() { return this.ellipsoid.semiMinorAxis(); } Globe(Ellipsoid ellipsoid, GeographicProjection projection); Ellipsoid getEllipsoid(); void setEllipsoid(Ellipsoid ellipsoid); double getEquatorialRadius(); double getPolarRadius(); double getRadiusAt(double latitude, double longitude); double getEccentricitySquared(); ElevationModel getElevationModel(); void setElevationModel(ElevationModel elevationModel); GeographicProjection getProjection(); void setProjection(GeographicProjection projection); Vec3 geographicToCartesian(double latitude, double longitude, double altitude, Vec3 result); Vec3 geographicToCartesianNormal(double latitude, double longitude, Vec3 result); Matrix4 geographicToCartesianTransform(double latitude, double longitude, double altitude, Matrix4 result); float[] geographicToCartesianGrid(Sector sector, int numLat, int numLon, float[] height, float verticalExaggeration,
                                             Vec3 origin, float[] result, int offset, int rowStride); float[] geographicToCartesianBorder(Sector sector, int numLat, int numLon, float height,
                                               Vec3 origin, float[] result); Position cartesianToGeographic(double x, double y, double z, Position result); Matrix4 cartesianToLocalTransform(double x, double y, double z, Matrix4 result); @SuppressWarnings("UnnecessaryLocalVariable") double horizonDistance(double height); boolean intersect(Line line, Vec3 result);  }
@Test public void testGetPolarRadius() throws Exception { double polarRadius = globe.getPolarRadius(); assertEquals("polar radius", OFFICIAL_WGS84_SEMI_MINOR_AXIS, polarRadius, 1.0e-4); }