Skip to content

Commit

Permalink
reconstruction: add a function to get the origin of the reconstruction
Browse files Browse the repository at this point in the history
  • Loading branch information
andrea-iob committed Aug 5, 2021
1 parent 1fa9aba commit 0d4930f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/discretization/reconstruction.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -522,6 +522,16 @@ uint8_t ReconstructionPolynomial::getDimensions() const
return m_dimensions;
}

/*!
* Get the origin of the reconstruction.
*
* \return The origin of the reconstruction.
*/
const std::array<double, 3> & ReconstructionPolynomial::getOrigin() const
{
return m_origin;
}

/*!
* Get the number of coefficients of the reconstruction polynomial.
*
Expand Down
1 change: 1 addition & 0 deletions src/discretization/reconstruction.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ friend class ReconstructionAssembler;

uint8_t getDegree() const;
uint8_t getDimensions() const;
const std::array<double, 3> & getOrigin() const;

uint16_t getCoefficientCount() const;

Expand Down

0 comments on commit 0d4930f

Please sign in to comment.