7#include "IsisIlluminator.h"
9#include "SpicePosition.h"
27 bool timeChanged = oldTime != time;
29 m_pos->SetEphemerisTime(time);
31 vector<double> coord = m_pos->Coordinate();
33 m_pos->SetEphemerisTime(oldTime);
36 return {coord[0] * 1000.0, coord[1] * 1000.0, coord[2] * 1000.0};
44 double oldTime = m_pos->EphemerisTime();
45 bool timeChanged = oldTime != time;
47 m_pos->SetEphemerisTime(time);
49 vector<double> vel = m_pos->Velocity();
51 m_pos->SetEphemerisTime(oldTime);
54 return {vel[0] * 1000.0, vel[1] * 1000.0, vel[2] * 1000.0};
IsisIlluminator(SpicePosition *pos)
Create an IsisIlluminator that wraps a SpicePosition.
SensorUtilities::Vec position(double time)
Get the position in meters at a given time.
SensorUtilities::Vec velocity(double time)
Get the velocity in meters at a given time.
Obtain SPICE position information for a body.
virtual double EphemerisTime() const
Return the current ephemeris time.
This is free and unencumbered software released into the public domain.
Namespace for the standard library.