9#include "SpiceRotation.h"
22 std::vector<double> IsisBody::rotation(
double time) {
24 bool timeChanged = oldTime != time;
28 vector<double> bodyRotMat = m_rot->
Matrix();
33 for (
int i = 0; i < 9; i++ ){
34 bodyRotMat[i] = bodyRotMat[i] * 1000.0;
39 SensorUtilities::Vec IsisBody::fixedVector(SensorUtilities::Vec pos) {
40 std::vector<double> instPos(pos);
43 return {sB[0] * 1000.0, sB[1] * 1000.0, sB[2] * 1000.0};
IsisBody(SpiceRotation *rot)
Create an IsisBody that wraps a SpiceRotation.
Obtain SPICE rotation information for a body.
std::vector< double > Matrix()
Return the full rotation TJ as a matrix.
double EphemerisTime() const
Accessor method to get current ephemeris time.
std::vector< double > ReferenceVector(const std::vector< double > &jVec)
Given a direction vector in J2000, return a reference frame direction.
void SetEphemerisTime(double et)
Return the J2000 to reference frame quaternion at given time.
This is free and unencumbered software released into the public domain.
Namespace for the standard library.