LUCENE-8089: Add PlanetModel method that returns true if planetmodel is a sphere.

This commit is contained in:
Karl Wright 2017-12-11 04:21:52 -05:00
parent ca84ca2f79
commit 952f4c4e59
1 changed files with 7 additions and 0 deletions

View File

@ -122,6 +122,13 @@ public class PlanetModel implements SerializableObject {
SerializableObject.writeDouble(outputStream, c);
}
/** Does this planet model describe a sphere?
*@return true if so.
*/
public boolean isSphere() {
return this.ab == this.c;
}
/** Find the minimum magnitude of all points on the ellipsoid.
* @return the minimum magnitude for the planet.
*/