Loading src/UsgsAstroPushFrameSensorModel.cpp +5 −0 Original line number Diff line number Diff line Loading @@ -518,6 +518,11 @@ void UsgsAstroPushFrameSensorModel::applyTransformToState(ale::Rotation const& r applyRotationTranslationToXyzVec(r, zero_t, velocities); j["m_velocities"] = velocities; // Apply the transform to the reference point std::vector<double> refPt = j["m_referencePointXyz"]; applyRotationTranslationToXyzVec(r, t, refPt); j["m_referencePointXyz"] = refPt; // We do not change the Sun position or velocity. The idea is that // the Sun is so far, that minor camera adjustments won't affect // where the Sun is. Loading src/Utilities.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -34,7 +34,7 @@ void calculateRotationMatrixFromEuler(double euler[], double rotationMatrix[]) { rotationMatrix[8] = cos_a * cos_b; } // uses a quaternion to calclate a rotation matrix. // uses a quaternion to calculate a rotation matrix. // in - q[4] // out - rotationMatrix[9] void calculateRotationMatrixFromQuaternions(double q[4], Loading Loading
src/UsgsAstroPushFrameSensorModel.cpp +5 −0 Original line number Diff line number Diff line Loading @@ -518,6 +518,11 @@ void UsgsAstroPushFrameSensorModel::applyTransformToState(ale::Rotation const& r applyRotationTranslationToXyzVec(r, zero_t, velocities); j["m_velocities"] = velocities; // Apply the transform to the reference point std::vector<double> refPt = j["m_referencePointXyz"]; applyRotationTranslationToXyzVec(r, t, refPt); j["m_referencePointXyz"] = refPt; // We do not change the Sun position or velocity. The idea is that // the Sun is so far, that minor camera adjustments won't affect // where the Sun is. Loading
src/Utilities.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -34,7 +34,7 @@ void calculateRotationMatrixFromEuler(double euler[], double rotationMatrix[]) { rotationMatrix[8] = cos_a * cos_b; } // uses a quaternion to calclate a rotation matrix. // uses a quaternion to calculate a rotation matrix. // in - q[4] // out - rotationMatrix[9] void calculateRotationMatrixFromQuaternions(double q[4], Loading