org.apache.commons.math3.geometry.euclidean.threed
Class Spheroid

java.lang.Object
  extended by org.apache.commons.math3.geometry.euclidean.threed.Ellipsoid
      extended by org.apache.commons.math3.geometry.euclidean.threed.Spheroid
All Implemented Interfaces:
Serializable, IEllipsoid, Shape, SolidShape

public final class Spheroid
extends Ellipsoid
implements Serializable

This is the Spheroid (also called Revolved Ellipsoid) class. Spheroids are ellipsoids that are revolved around an axis. Thus, this class cannot represent all ellipsoid objects.

It creates a spheroid object.

Usage: With two Vector3D for position and Rev. Axis and two doubles for the two semi axes, call

Spheroid mySpheroid = new Spheroid(position, axis, a, b)

Since:
1.0
Version:
$Id: Spheroid.java 17583 2017-05-10 13:05:10Z bignon $
Author:
Rami Houdroge
See Also:
IEllipsoid, SolidShape, Serialized Form
Concurrency :
immutable

Constructor Summary
Spheroid(Vector3D myPosition, Vector3D myRevAxis, double equatorialRadius, double polarRadius)
          This constructor builds a spheroid from its centers position, its revolution axis and its equatorial and polar radius.
 
Method Summary
 double getEquatorialRadius()
          Get equatorial radius of Spheroid.
 double getPolarRadius()
          Get polar radius of Spheroid.
 String toString()
          Get a representation for this spheroid.
 
Methods inherited from class org.apache.commons.math3.geometry.euclidean.threed.Ellipsoid
closestPointTo, closestPointTo, distanceTo, distanceTo, getAffineLocalExpression, getAffineStandardExpression, getCartesianCoordinates, getCenter, getEllipsoidicCoordinates, getIntersectionPoints, getLocalBasisTransform, getNormal, getSemiA, getSemiB, getSemiC, getSemiPrincipalX, getSemiPrincipalY, getSemiPrincipalZ, getStandardBasisTransform, getVectorialLocalExpression, getVectorialStandardExpression, intersects, setNewtonThreshold
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Spheroid

public Spheroid(Vector3D myPosition,
                Vector3D myRevAxis,
                double equatorialRadius,
                double polarRadius)
This constructor builds a spheroid from its centers position, its revolution axis and its equatorial and polar radius. A spheroid, or ellipsoid of revolution, is a quadric surface obtained by rotating an ellipse about one of its principal axes.

Parameters:
myPosition - The position of the spheroids center
myRevAxis - The axis of revolution of the spheroid
equatorialRadius - Equatorial radius : semi axis of the spheroid along a direction orthogonal to the axis of revolution
polarRadius - Polar radius : semi axis of the spheroid along the axis of revolution
Throws:
IllegalArgumentException - if semi-axis or norm of revolution axis is null
Since:
1.0
Method Detail

getEquatorialRadius

public double getEquatorialRadius()
Get equatorial radius of Spheroid.

Returns:
equatorial radius value

getPolarRadius

public double getPolarRadius()
Get polar radius of Spheroid.

Returns:
b polar radius value

toString

public String toString()
Get a representation for this spheroid. The given parameters are in the same order as in the constructor.

Overrides:
toString in class Ellipsoid
Returns:
a representation for this spheroid


Copyright © 2017 CNES. All Rights Reserved.