diff --git a/MathLib/MathTools.cpp b/MathLib/MathTools.cpp index 538a480324264112dcf15c240fbe67e852993d60..236ceea081040fc86da26ade9ff26f66a420e7b4 100644 --- a/MathLib/MathTools.cpp +++ b/MathLib/MathTools.cpp @@ -48,11 +48,6 @@ double sqrDist(const double* p0, const double* p1) return scalarProduct<double,3>(v,v); } -float normalize(float min, float max, float val) -{ - return (val - min) / static_cast<float>(max - min); -} - double getAngle (const double p0[3], const double p1[3], const double p2[3]) { const double v0[3] = {p0[0]-p1[0], p0[1]-p1[1], p0[2]-p1[2]}; diff --git a/MathLib/MathTools.h b/MathLib/MathTools.h index 95458673bed1fd98a3a604c4fce41034ccd8b1e9..05aced819a60317f3e5eec10e48c6f0a9f91be57 100644 --- a/MathLib/MathTools.h +++ b/MathLib/MathTools.h @@ -135,9 +135,6 @@ T maxNormDist(const MathLib::TemplatePoint<T>* p0, const MathLib::TemplatePoint< return std::max(x, std::max(y, z)); } -/** linear normalisation of val from [min, max] into [0,1] */ -float normalize(float min, float max, float val); - /** * Let \f$p_0, p_1, p_2 \in R^3\f$. The function getAngle * computes the angle between the edges \f$(p_0,p_1)\f$ and \f$(p_1,p_2)\f$