Kaydet (Commit) 8a6552c0 authored tarafından Markus Mohrhard's avatar Markus Mohrhard

use fabs for double values, not abs, fdo#47632

üst a7c02ed2
......@@ -465,7 +465,7 @@ bool createParameterT(const tPointVecType aUniquePoints, double* t)
{
dx = aUniquePoints[i].first - aUniquePoints[i-1].first;
dy = aUniquePoints[i].second - aUniquePoints[i-1].second;
fDiffMax = (abs(dx)>abs(dy)) ? abs(dx) : abs(dy);
fDiffMax = (fabs(dx)>fabs(dy)) ? fabs(dx) : fabs(dy);
// same as above, so should not be zero
dx /= fDiffMax;
dy /= fDiffMax;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment