Fix mixed line endings
This commit is contained in:
@@ -145,7 +145,7 @@ bool BoundBox2d::Intersect(const Polygon2d &rclPoly) const
|
||||
return true; /***** RETURN INTERSECTION *********/
|
||||
|
||||
// test intersections of bound-lines
|
||||
if (rclPoly.GetCtVectors() < 3)
|
||||
if (rclPoly.GetCtVectors() < 3)
|
||||
return false;
|
||||
for (i = 0; i < rclPoly.GetCtVectors(); i++)
|
||||
{
|
||||
@@ -289,7 +289,7 @@ static short _CalcTorsion (double *pfLine, double fX, double fY)
|
||||
|
||||
// Abort at line points within a quadrant
|
||||
// Abort at non-intersecting line points
|
||||
if (abs (sQuad[0] - sQuad[1]) <= 1)
|
||||
if (abs (sQuad[0] - sQuad[1]) <= 1)
|
||||
return 0;
|
||||
|
||||
// Both points to the left of ulX
|
||||
@@ -319,7 +319,7 @@ bool Polygon2d::Contains (const Vector2d &rclV) const
|
||||
short sTorsion = 0;
|
||||
|
||||
// Error check
|
||||
if (GetCtVectors() < 3)
|
||||
if (GetCtVectors() < 3)
|
||||
return false;
|
||||
|
||||
// for all polygon lines
|
||||
|
||||
Reference in New Issue
Block a user