{
MagickRealType sign = x < (MagickRealType) 0.0 ? (MagickRealType) -1.0 :
(MagickRealType) 1.0;
- return((sign*x) > DrawEpsilon ? (MagickRealType) 1.0/x : sign*(
+ return((sign*x) >= DrawEpsilon ? (MagickRealType) 1.0/x : sign*(
(MagickRealType) 1.0/DrawEpsilon));
}
}
else
{
+ alpha=1.0/alpha;
beta=delta.x*(y-q->y)-delta.y*(x-q->x);
- distance=DrawEpsilonReciprocal(alpha)*beta*beta;
+ distance=alpha*beta*beta;
}
}
/*
{
MagickRealType sign = x < (MagickRealType) 0.0 ? (MagickRealType) -1.0 :
(MagickRealType) 1.0;
- return((sign*x) > MagickEpsilon ? (MagickRealType) 1.0/x : sign*(
+ return((sign*x) >= MagickEpsilon ? (MagickRealType) 1.0/x : sign*(
(MagickRealType) 1.0/MagickEpsilon));
}