|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.orekit.bodies.ExtendedOneAxisEllipsoid
public class ExtendedOneAxisEllipsoid
implementation of the PatriusBodyShape interface : this an extended spheroid model to represent celestial bodies shapes.
GeometricBodyShape
,
Serialized FormConstructor Summary | |
---|---|
ExtendedOneAxisEllipsoid(double ae,
double f,
Frame bodyFrame,
String name)
Constructor for the body spheroid. |
Method Summary | |
---|---|
double |
distanceTo(Line line,
Frame frame,
AbsoluteDate date)
Computes the distance to a line. |
Frame |
getBodyFrame()
Get body frame related to body shape. |
double |
getConjugateRadius()
Return conjugate radius (minor semi axis) |
double |
getEquatorialRadius()
Get the equatorial radius of the body. |
double |
getFlattening()
Return the flattening |
GeodeticPoint |
getIntersectionPoint(Line line,
Vector3D close,
Frame frame,
AbsoluteDate date)
Get the intersection point of a line with the surface of the body. |
Vector3D[] |
getIntersectionPoints(Line line,
Frame frame,
AbsoluteDate date)
Compute the intersection points with a line. |
double |
getLocalRadius(Vector3D position,
Frame frame,
AbsoluteDate date,
PVCoordinatesProvider occultedBody)
Calculate the apparent radius. |
String |
getName()
|
Vector3D |
getNormal(Vector3D point)
Return the normal vector to the surface from the ellipsoid |
PVCoordinates |
getPVCoordinates(AbsoluteDate date,
Frame frame)
Get the PVCoordinates of the body in the selected frame. |
double |
getTransverseRadius()
Return transverse radius (major semi axis) |
Vector3D |
transform(GeodeticPoint point)
Transform a surface-relative point to a cartesian point. |
GeodeticPoint |
transform(Vector3D point,
Frame frame,
AbsoluteDate date)
Transform a cartesian point to a surface-relative point. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ExtendedOneAxisEllipsoid(double ae, double f, Frame bodyFrame, String name)
ae
- equatorial radiusf
- the flattening (f = (a-b)/a)bodyFrame
- body frame related to body shapename
- the name of this shapeMethod Detail |
---|
public Frame getBodyFrame()
BodyShape
getBodyFrame
in interface BodyShape
public GeodeticPoint getIntersectionPoint(Line line, Vector3D close, Frame frame, AbsoluteDate date) throws OrekitException
BodyShape
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 frame
OrekitException
- if line cannot be converted to body framepublic GeodeticPoint transform(Vector3D point, Frame frame, AbsoluteDate date) throws OrekitException
BodyShape
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 Vector3D transform(GeodeticPoint point)
BodyShape
transform
in interface BodyShape
point
- surface-relative point
public Vector3D[] getIntersectionPoints(Line line, Frame frame, AbsoluteDate date) throws OrekitException
GeometricBodyShape
getIntersectionPoints
in interface GeometricBodyShape
line
- the lineframe
- in which line is expresseddate
- date of the line in given frame
OrekitException
- if line cannot be converted to body framepublic double distanceTo(Line line, Frame frame, AbsoluteDate date) throws OrekitException
GeometricBodyShape
distanceTo
in interface GeometricBodyShape
line
- the lineframe
- in which line is expresseddate
- date of the line in given frame
OrekitException
- if line cannot be converted to body framepublic String getName()
getName
in interface GeometricBodyShape
public PVCoordinates getPVCoordinates(AbsoluteDate date, Frame frame) throws OrekitException
PVCoordinatesProvider
PVCoordinates
of the body in the selected frame.
getPVCoordinates
in interface PVCoordinatesProvider
date
- current dateframe
- the frame where to define the position
OrekitException
- if position cannot be computed in given framepublic double getTransverseRadius()
public double getConjugateRadius()
public double getLocalRadius(Vector3D position, Frame frame, AbsoluteDate date, PVCoordinatesProvider occultedBody) throws OrekitException
getLocalRadius
in interface GeometricBodyShape
position
- spacecraft positionframe
- frame in which position is expresseddate
- date of positionoccultedBody
- body occulted by this
OrekitException
- if PVCoordinatesProvider
computation failspublic double getEquatorialRadius()
public double getFlattening()
public Vector3D getNormal(Vector3D point)
point
- Point as a Vector3D in local basis
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |