Commit ec41ad97 authored by Jesse Mapel's avatar Jesse Mapel
Browse files

Added scaled knot accessors to SpicePosition and SpiceRotation.

parent f2d0218f
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -1812,6 +1812,16 @@ namespace Isis {
  }


  /**
   * Return the knots in the polynomial in scaled time.
   * 
   * @return @b std::vector<double> A vector containing the polynomial knots in scaled time.
   */
  std::vector<double> SpicePosition::scaledPolynomialKnots() const {
    return m_polynomial.knots();
  }


  /**
   * Return the index of the polynomial segment that contains a given time.
   * 
+1 −0
Original line number Diff line number Diff line
@@ -271,6 +271,7 @@ namespace Isis {

      int numPolynomialSegments() const;
      std::vector<double> polynomialKnots() const;
      std::vector<double> scaledPolynomialKnots() const;
      int polySegmentIndex(double et) const;

      Histogram computeError(PiecewisePolynomial poly);
+10 −0
Original line number Diff line number Diff line
@@ -2347,6 +2347,16 @@ namespace Isis {
  }


  /**
   * Return the knots in the polynomial in scaled time.
   * 
   * @return @b std::vector<double> A vector containing the polynomial knots in scaled time.
   */
  std::vector<double> SpiceRotation::scaledPolynomialKnots() const {
    return m_polynomial.knots();
  }


  /**
   * Return the index of the polynomial segment that contains a given time.
   * 
+1 −0
Original line number Diff line number Diff line
@@ -388,6 +388,7 @@ namespace Isis {
      void setPolynomialSegments(int segmentCount);
      int numPolynomialSegments() const;
      std::vector<double> polynomialKnots() const;
      std::vector<double> scaledPolynomialKnots() const;
      int polySegmentIndex(double et) const;
      Histogram computeError(PiecewisePolynomial poly);
      Source GetSource();