Commit df98b65b authored by Makayla Shepherd's avatar Makayla Shepherd
Browse files

Updated documentation for AffineMatrix. References #4807.

git-svn-id: http://subversion.wr.usgs.gov/repos/prog/isis3/trunk@7808 41f8697f-d340-4b68-9986-7bafba869bb8
parent 6c16d071
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -227,6 +227,8 @@ namespace Isis {
   * are returned in a 3-dimensional vector
   *
   * @param var The coefficient vector index (1 or 2)
   * 
   * @return vector<double> Vector of coefficients
   */
  vector<double> Affine::Coefficients(int var) {
    int index = var - 1;
@@ -242,6 +244,8 @@ namespace Isis {
   * The coefficients are returned in a 3-dimensional vector
   *
   * @param var The inverse coefficient vector index
   * 
   * @return vector<double> Vector of inverse coefficients
   */
  vector<double> Affine::InverseCoefficients(int var) {
    int index = var - 1;
+34 −7
Original line number Diff line number Diff line
@@ -73,12 +73,13 @@ namespace Isis {
   *          inverse AMatrixs; added new method that inverts the matrix.
   * @history 2010-11-18 Kris Becker Fixed bug in inverse representation when
   *          scaling is applied to the current transform.
   * @history 2017-06-28 Makayla Shepherd - Updated documentation. References #4807.
   *
   */

  class Affine {
    public:
      typedef TNT::Array2D<double> AMatrix;
      typedef TNT::Array2D<double> AMatrix; //!< Affine Matrix
      Affine();
      Affine(const AMatrix &a);
      ~Affine();
@@ -92,35 +93,61 @@ namespace Isis {

      void Compute(double x, double y);

      //! Returns the computed x'
      /**
       * Returns the computed x'
       * 
       * @return double Computed x'
       */
      double xp() const {
        return p_xp;
      };

      //! Returns the computed y'
      /**
       * Returns the computed y'
       * 
       * @return double Computed y'
       */
      double yp() const {
        return p_yp;
      };

      void ComputeInverse(double xp, double yp);

      //! Returns the computed x
      /**
       * Returns the computed x
       * 
       * @return double Computed x
       */
      double x() const {
        return p_x;
      };

      //! Returns the computed y
      /** 
       * Returns the computed y
       * 
       * @return double Computed y
       */
      double y() const {
        return p_y;
      };

      std::vector<double> Coefficients(int var);
      std::vector<double> InverseCoefficients(int var);
      //! Returns the forward Affine matrix
      
      /**
       * Returns the forward Affine matrix
       * 
       * @return AMatrix Forward Affine matrix
       */
      AMatrix Forward() const {
        return (p_matrix.copy());
      }
      //! Returns the inverse Affine matrix
      
      /**
       * Returns the inverse Affine matrix
       * 
       * @return AMatrix Inverse Affine matrix
       */
      AMatrix Inverse() const {
        return (p_invmat.copy());
      }