Skip to content
Snippets Groups Projects
Commit eb099fcf authored by Tom Fischer's avatar Tom Fischer
Browse files

[NL/Functions] Type check for third argument of interpolateInTri is more strong.

parent 8851d9cb
No related branches found
No related tags found
No related merge requests found
...@@ -62,7 +62,10 @@ double LinearInterpolationOnSurface::operator()(const MathLib::Point3d& pnt) con ...@@ -62,7 +62,10 @@ double LinearInterpolationOnSurface::operator()(const MathLib::Point3d& pnt) con
return val; return val;
} }
double LinearInterpolationOnSurface::interpolateInTri(const GeoLib::Triangle &tri, double const* const vertex_values, double const* const pnt) const double LinearInterpolationOnSurface::interpolateInTri(
const GeoLib::Triangle &tri,
double const* const vertex_values,
MathLib::Point3d const& pnt) const
{ {
std::vector<GeoLib::Point> pnts; std::vector<GeoLib::Point> pnts;
for (unsigned i=0; i<3; i++) for (unsigned i=0; i<3; i++)
......
...@@ -81,7 +81,9 @@ private: ...@@ -81,7 +81,9 @@ private:
* @param pnt * @param pnt
* @return * @return
*/ */
double interpolateInTri(const GeoLib::Triangle &tri, double const* const vertex_values, double const* const pnt) const; double interpolateInTri(const GeoLib::Triangle &tri,
double const* const vertex_values,
MathLib::Point3d const& pnt) const;
/// a surface object /// a surface object
const GeoLib::Surface& _sfc; const GeoLib::Surface& _sfc;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment