public class ConstantPVCoordinatesProvider extends Object implements PVCoordinatesProvider
getPVCoordinates(AbsoluteDate, Frame)
is called, the constant
point will be translated to the destination frame and returned. This behavior is
different than AbsolutePVCoordinates.getPVCoordinates(AbsoluteDate, Frame)
(which
uses shiftedBy()
internally.). Use
this class when no shifting should be performed (e.g. representing a fixed point on the ground).Constructor and Description |
---|
ConstantPVCoordinatesProvider(GeodeticPoint pos,
OneAxisEllipsoid body)
Create a the provider from a fixed lat/lon/alt on a central body.
|
ConstantPVCoordinatesProvider(PVCoordinates pva,
Frame frame)
Create the PVCoordinatesProvider from a fixed point in a frame.
|
ConstantPVCoordinatesProvider(Vector3D pos,
Frame frame)
Create the PVCoordinatesProvider from a fixed point in a frame.
|
Modifier and Type | Method and Description |
---|---|
TimeStampedPVCoordinates |
getPVCoordinates(AbsoluteDate date,
Frame frame)
Get the
PVCoordinates of the body in the selected frame. |
public ConstantPVCoordinatesProvider(Vector3D pos, Frame frame)
pos
- the fixed position in the frameframe
- the frame in which pva
is definedpublic ConstantPVCoordinatesProvider(GeodeticPoint pos, OneAxisEllipsoid body)
new ConstantPVCoordinatesProvider(body.transform(pos), body.getBodyFrame())
.pos
- the position relative to the ellipsoid's surfacebody
- the reference ellipsoidpublic ConstantPVCoordinatesProvider(PVCoordinates pva, Frame frame)
pva
- the point in the frameframe
- the frame in which pva
is definedpublic TimeStampedPVCoordinates getPVCoordinates(AbsoluteDate date, Frame frame)
PVCoordinatesProvider
PVCoordinates
of the body in the selected frame.getPVCoordinates
in interface PVCoordinatesProvider
date
- current dateframe
- the frame where to define the positionCopyright © 2002-2023 CS GROUP. All rights reserved.