From f54403284f73ec3d27e3ea33dae247629053df5d Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Fri, 30 Mar 2018 12:39:52 +0100 Subject: [PATCH] Changed Layer::get*Value(..) methods to const --- include/osgTerrain/Layer | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/osgTerrain/Layer b/include/osgTerrain/Layer index e4c5eb464..c7d8c6ad8 100644 --- a/include/osgTerrain/Layer +++ b/include/osgTerrain/Layer @@ -162,7 +162,7 @@ class OSGTERRAIN_EXPORT Layer : public osg::Object * @param[out] ir Returned X-axis fraction. * @param[out] jr Returned Y-axis fraction. */ - inline void computeIndices(double ndc_x, double ndc_y, unsigned int& i, unsigned int& j, double& ir, double& jr) + inline void computeIndices(double ndc_x, double ndc_y, unsigned int& i, unsigned int& j, double& ir, double& jr) const { ndc_x *= double(getNumColumns()-1); ndc_y *= double(getNumRows()-1); @@ -179,7 +179,7 @@ class OSGTERRAIN_EXPORT Layer : public osg::Object * @param[out] value Returned layer value. * @return true if value is valid, else false */ - inline bool getInterpolatedValue(double ndc_x, double ndc_y, float& value) + inline bool getInterpolatedValue(double ndc_x, double ndc_y, float& value) const { unsigned int i,j; double ir, jr; @@ -226,7 +226,7 @@ class OSGTERRAIN_EXPORT Layer : public osg::Object return false; } - inline bool getInterpolatedValidValue(double ndc_x, double ndc_y, float& value) + inline bool getInterpolatedValidValue(double ndc_x, double ndc_y, float& value) const { unsigned int i,j; double ir, jr;