#include <PositionVelocity.h>
Inheritance diagram for O_SESSAME::PositionVelocity:
The PositionVelocity class stores the position and velocity components of an orbital position. This should be used in an OrbitState object to also store the appropriate reference frame.
Definition at line 32 of file PositionVelocity.h.
Public Member Functions | |
PositionVelocity () | |
Create an initially empty PositionVelocity orbit state representation. | |
PositionVelocity (const Vector &_State) | |
Create a PositionVelocity orbit state representation from a vector of the position & velocity elements. | |
PositionVelocity (const Vector &_Position, const Vector &_Velocity) | |
Create a PositionVelocity orbit state representation from the position & velocity vectors. | |
virtual | ~PositionVelocity () |
Default Deconstructor. | |
void | SetPositionVelocity (const Vector &_Position, const Vector &_Velocity) |
Set the PositionVelocity representation directly from the position and velocity vectors. | |
void | SetPositionVelocity (const Vector &_PositionVelocity) |
Set the PositionVelocity representation by converting the position and velocity vector. | |
Vector | GetPositionVelocity () const |
Return the stored position and velocity vector. | |
void | GetPositionVelocity (Vector &_Position, Vector &_Velocity) const |
Return the stored position and velocity vectors by reference. | |
virtual PositionVelocity * | NewPointer () |
Return a pointer to a new instance of a PositionVelocity orbit state representation type. | |
virtual PositionVelocity * | Clone () |
Return a pointer to a copy of the PositionVelocity orbit state representation instance. | |
virtual void | SetState (const Vector &_State) |
Set the vector of the representation's state vector. | |
virtual void | SetState (const Vector &_Position, const Vector &_Velocity) |
virtual Vector | GetState () const |
Return a vector of the representation's state vector. | |
virtual void | GetState (Vector &_Position, Vector &_Velocity) const |
Private Attributes | |
Vector | m_Elements |
|
Create an initially empty PositionVelocity orbit state representation.
Definition at line 15 of file PositionVelocity.cpp. |
|
Create a PositionVelocity orbit state representation from a vector of the position & velocity elements.
Definition at line 24 of file PositionVelocity.cpp. |
|
Create a PositionVelocity orbit state representation from the position & velocity vectors.
Definition at line 29 of file PositionVelocity.cpp. |
|
Default Deconstructor.
Definition at line 20 of file PositionVelocity.cpp. |
|
Set the PositionVelocity representation directly from the position and velocity vectors.
Implements O_SESSAME::OrbitStateRepresentation. Definition at line 59 of file PositionVelocity.cpp. |
|
Set the PositionVelocity representation by converting the position and velocity vector.
Implements O_SESSAME::OrbitStateRepresentation. Definition at line 60 of file PositionVelocity.h. |
|
Return the stored position and velocity vector.
Implements O_SESSAME::OrbitStateRepresentation. Definition at line 65 of file PositionVelocity.h. |
|
Return the stored position and velocity vectors by reference.
Implements O_SESSAME::OrbitStateRepresentation. Definition at line 71 of file PositionVelocity.h. |
|
Return a pointer to a new instance of a PositionVelocity orbit state representation type. This is used to request memory for a new instance of a PositionVelocity. It is necessary when attempting to get a pointer from the abstract data type OrbitStateRepresentation and the actual representation type isn't known.
Implements O_SESSAME::OrbitStateRepresentation. Definition at line 65 of file PositionVelocity.cpp. |
|
Return a pointer to a copy of the PositionVelocity orbit state representation instance. This is used to request memory for a copy of this instance of PositionVelocity. It is necessary when attempting to get a pointer from the abstract data type OrbitStateRepresentation and the actual representation type isn't known.
Implements O_SESSAME::OrbitStateRepresentation. Definition at line 70 of file PositionVelocity.cpp. |
|
Set the vector of the representation's state vector.
Implements O_SESSAME::OrbitStateRepresentation. Definition at line 34 of file PositionVelocity.cpp. |
|
Definition at line 39 of file PositionVelocity.cpp. |
|
Return a vector of the representation's state vector.
Implements O_SESSAME::OrbitStateRepresentation. Definition at line 45 of file PositionVelocity.cpp. |
|
Definition at line 50 of file PositionVelocity.cpp. |
|
6x1 vector of position and velocity vector components (km, km/s) Definition at line 98 of file PositionVelocity.h. |