Removed unused variable d2 and calculation of its value in GeomUtils::intersect2dSeg2dSegParametric().
It is double-checked that this is not a bug :) This fix was suggested as part of the patch set committed in revision 53887, thanks again Bastien!
This commit is contained in:
@@ -185,10 +185,9 @@ intersection_test intersect2dSeg2dSegParametric(const Vec2r& p1, const Vec2r& p2
|
|||||||
if (fabs(denom) < epsilon)
|
if (fabs(denom) < epsilon)
|
||||||
return (COLINEAR);
|
return (COLINEAR);
|
||||||
|
|
||||||
real d1, d2, e1;
|
real d1, e1;
|
||||||
|
|
||||||
d1 = p1[1] - p3[1];
|
d1 = p1[1] - p3[1];
|
||||||
d2 = p2[1] - p1[1];
|
|
||||||
e1 = p1[0] - p3[0];
|
e1 = p1[0] - p3[0];
|
||||||
|
|
||||||
num = -b2 * d1 - a2 * e1;
|
num = -b2 * d1 - a2 * e1;
|
||||||
|
|||||||
Reference in New Issue
Block a user