Serializable
, BodyShape
ReferenceEllipsoid
public class OneAxisEllipsoid extends Ellipsoid implements BodyShape
One-axis ellipsoids is a good approximate model for most planet-size and larger natural bodies. It is the equilibrium shape reached by a fluid body under its own gravity field when it rotates. The symmetry axis is the rotation or polar axis.
Constructor | Description |
---|---|
OneAxisEllipsoid(double ae,
double f,
Frame bodyFrame) |
Simple constructor.
|
Modifier and Type | Method | Description |
---|---|---|
Frame |
getBodyFrame() |
Get body frame related to body shape.
|
double |
getEquatorialRadius() |
Get the equatorial radius of the body.
|
double |
getFlattening() |
Get the flattening of the body: f = (a-b)/a.
|
<T extends RealFieldElement<T>> |
getIntersectionPoint(FieldLine<T> line,
FieldVector3D<T> close,
Frame frame,
FieldAbsoluteDate<T> date) |
Get the intersection point of a line with the surface of the body.
|
GeodeticPoint |
getIntersectionPoint(Line line,
Vector3D close,
Frame frame,
AbsoluteDate date) |
Get the intersection point of a line with the surface of the body.
|
Vector3D |
projectToGround(Vector3D point,
AbsoluteDate date,
Frame frame) |
Project a point to the ground.
|
TimeStampedPVCoordinates |
projectToGround(TimeStampedPVCoordinates pv,
Frame frame) |
Project a moving point to the ground.
|
void |
setAngularThreshold(double angularThreshold) |
Set the angular convergence threshold.
|
<T extends RealFieldElement<T>> |
transform(FieldVector3D<T> point,
Frame frame,
FieldAbsoluteDate<T> date) |
Transform a Cartesian point to a surface-relative point.
|
GeodeticPoint |
transform(Vector3D point,
Frame frame,
AbsoluteDate date) |
Transform a Cartesian point to a surface-relative point.
|
<T extends RealFieldElement<T>> |
transform(FieldGeodeticPoint<T> point) |
Transform a surface-relative point to a Cartesian point.
|
Vector3D |
transform(GeodeticPoint point) |
Transform a surface-relative point to a Cartesian point.
|
FieldGeodeticPoint<DerivativeStructure> |
transform(PVCoordinates point,
Frame frame,
AbsoluteDate date) |
Transform a Cartesian point to a surface-relative point.
|
getA, getB, getC, getFrame, getPlaneSection, isInside, pointOnLimb
public OneAxisEllipsoid(double ae, double f, Frame bodyFrame)
Standard values for Earth models can be found in the Constants
class:
model | ae (m) | f |
---|---|---|
GRS 80 | Constants.GRS80_EARTH_EQUATORIAL_RADIUS |
Constants.GRS80_EARTH_FLATTENING |
WGS84 | Constants.WGS84_EARTH_EQUATORIAL_RADIUS |
Constants.WGS84_EARTH_FLATTENING |
ae
- equatorial radiusf
- the flattening (f = (a-b)/a)bodyFrame
- body frame related to body shapeFramesFactory.getITRF(org.orekit.utils.IERSConventions, boolean)
public void setAngularThreshold(double angularThreshold)
The angular threshold is used both to identify points close to
the ellipse axes and as the convergence threshold used to
stop the iterations in the transform(Vector3D, Frame,
AbsoluteDate)
method.
If this method is not called, the default value is set to 10-12.
angularThreshold
- angular convergence threshold (rad)public double getEquatorialRadius()
public double getFlattening()
public Frame getBodyFrame()
getBodyFrame
in interface BodyShape
public GeodeticPoint getIntersectionPoint(Line line, Vector3D close, Frame frame, AbsoluteDate date) throws OrekitException
A line may have several intersection points with a closed surface (we consider the one point case as a degenerated two points case). The close parameter is used to select which of these points should be returned. The selected point is the one that is closest to the close point.
getIntersectionPoint
in interface BodyShape
line
- test line (may intersect the body or not)close
- point used for intersections selectionframe
- frame in which line is expresseddate
- date of the line in given frameOrekitException
- if line cannot be converted to body framepublic <T extends RealFieldElement<T>> FieldGeodeticPoint<T> getIntersectionPoint(FieldLine<T> line, FieldVector3D<T> close, Frame frame, FieldAbsoluteDate<T> date) throws OrekitException
A line may have several intersection points with a closed surface (we consider the one point case as a degenerated two points case). The close parameter is used to select which of these points should be returned. The selected point is the one that is closest to the close point.
getIntersectionPoint
in interface BodyShape
T
- type of the field elementsline
- test line (may intersect the body or not)close
- point used for intersections selectionframe
- frame in which line is expresseddate
- date of the line in given frameOrekitException
- if line cannot be converted to body framepublic Vector3D transform(GeodeticPoint point)
public <T extends RealFieldElement<T>> FieldVector3D<T> transform(FieldGeodeticPoint<T> point)
public Vector3D projectToGround(Vector3D point, AbsoluteDate date, Frame frame) throws OrekitException
projectToGround
in interface BodyShape
point
- point to projectdate
- current dateframe
- frame in which moving point is expressedOrekitException
- if point cannot be converted to body frameBodyShape.projectToGround(TimeStampedPVCoordinates, Frame)
public TimeStampedPVCoordinates projectToGround(TimeStampedPVCoordinates pv, Frame frame) throws OrekitException
projectToGround
in interface BodyShape
pv
- moving pointframe
- frame in which moving point is expressedOrekitException
- if point cannot be converted to body frameBodyShape.projectToGround(Vector3D, AbsoluteDate, Frame)
public GeodeticPoint transform(Vector3D point, Frame frame, AbsoluteDate date) throws OrekitException
This method is based on Toshio Fukushima's algorithm which uses Halley's method. transformation from Cartesian to Geodetic Coordinates Accelerated by Halley's Method, Toshio Fukushima, Journal of Geodesy 9(12):689-693, February 2006
Some changes have been added to the original method:
transform
in interface BodyShape
point
- Cartesian pointframe
- frame in which Cartesian point is expresseddate
- date of the computation (used for frames conversions)OrekitException
- if point cannot be converted to body framepublic <T extends RealFieldElement<T>> FieldGeodeticPoint<T> transform(FieldVector3D<T> point, Frame frame, FieldAbsoluteDate<T> date) throws OrekitException
This method is based on Toshio Fukushima's algorithm which uses Halley's method. transformation from Cartesian to Geodetic Coordinates Accelerated by Halley's Method, Toshio Fukushima, Journal of Geodesy 9(12):689-693, February 2006
Some changes have been added to the original method:
transform
in interface BodyShape
T
- type fo the filed elementspoint
- Cartesian pointframe
- frame in which Cartesian point is expresseddate
- date of the computation (used for frames conversions)OrekitException
- if point cannot be converted to body framepublic FieldGeodeticPoint<DerivativeStructure> transform(PVCoordinates point, Frame frame, AbsoluteDate date) throws OrekitException
point
- Cartesian pointframe
- frame in which Cartesian point is expresseddate
- date of the computation (used for frames conversions)OrekitException
- if point cannot be converted to body frameCopyright © 2002-2018 CS Systèmes d'information. All rights reserved.