Skip to content
Snippets Groups Projects
Commit d15976dd authored by Dmitri Naumov's avatar Dmitri Naumov
Browse files

[MaL] Remove unused float normalize(...) function.

parent a48061af
No related branches found
No related tags found
No related merge requests found
...@@ -48,11 +48,6 @@ double sqrDist(const double* p0, const double* p1) ...@@ -48,11 +48,6 @@ double sqrDist(const double* p0, const double* p1)
return scalarProduct<double,3>(v,v); 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]) 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]}; const double v0[3] = {p0[0]-p1[0], p0[1]-p1[1], p0[2]-p1[2]};
......
...@@ -135,9 +135,6 @@ T maxNormDist(const MathLib::TemplatePoint<T>* p0, const MathLib::TemplatePoint< ...@@ -135,9 +135,6 @@ T maxNormDist(const MathLib::TemplatePoint<T>* p0, const MathLib::TemplatePoint<
return std::max(x, std::max(y, z)); 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 * 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$ * computes the angle between the edges \f$(p_0,p_1)\f$ and \f$(p_1,p_2)\f$
......
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