public class UserCelestialBody extends AbstractCelestialBody
PVCoordinatesProvider
providing body position-velocity through timeConstructor and Description |
---|
UserCelestialBody(String name,
PVCoordinatesProvider aPVCoordinateProvider,
double gm,
IAUPole iauPole)
Build an instance and the underlying frame.
|
Modifier and Type | Method and Description |
---|---|
PVCoordinates |
getPVCoordinates(AbsoluteDate date,
Frame frame)
Get the
PVCoordinates of the body in the selected frame. |
getBodyOrientedFrame, getGM, getInertiallyOrientedFrame, getName
public UserCelestialBody(String name, PVCoordinatesProvider aPVCoordinateProvider, double gm, IAUPole iauPole)
name
- name of the bodyaPVCoordinateProvider
- Position-Velocity of celestial bodygm
- attraction coefficient (in m3/s2)iauPole
- IAU pole implementationpublic PVCoordinates getPVCoordinates(AbsoluteDate date, Frame frame) throws PatriusException
PVCoordinates
of the body in the selected frame.getPVCoordinates
in interface PVCoordinatesProvider
getPVCoordinates
in class AbstractCelestialBody
date
- current dateframe
- the frame where to define the positionPatriusException
- if position cannot be computed in given frameCopyright © 2019 CNES. All rights reserved.