mirror of https://github.com/apache/lucene.git
LUCENE-8089: Add PlanetModel method that returns true if planetmodel is a sphere.
This commit is contained in:
parent
ca84ca2f79
commit
952f4c4e59
|
@ -122,6 +122,13 @@ public class PlanetModel implements SerializableObject {
|
||||||
SerializableObject.writeDouble(outputStream, c);
|
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.
|
/** Find the minimum magnitude of all points on the ellipsoid.
|
||||||
* @return the minimum magnitude for the planet.
|
* @return the minimum magnitude for the planet.
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in New Issue