|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.commons.math3.geometry.euclidean.threed.Ellipsoid org.apache.commons.math3.geometry.euclidean.threed.Spheroid
public final class Spheroid
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
IEllipsoid
,
SolidShape
,
Serialized FormConstructor 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 |
---|
public Spheroid(Vector3D myPosition, Vector3D myRevAxis, double equatorialRadius, double polarRadius)
myPosition
- The position of the spheroids centermyRevAxis
- The axis of revolution of the spheroidequatorialRadius
- Equatorial radius : semi axis of the spheroid along a direction orthogonal to the axis of revolutionpolarRadius
- Polar radius : semi axis of the spheroid along the axis of revolution
IllegalArgumentException
- if semi-axis or norm of revolution axis is nullMethod Detail |
---|
public double getEquatorialRadius()
public double getPolarRadius()
public String toString()
toString
in class Ellipsoid
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |