1
0

Made it compile with clang

This commit is contained in:
Chris Darnell
2014-09-22 03:22:36 -04:00
parent dda66ea6ef
commit 195b646aa4
6 changed files with 11 additions and 11 deletions

View File

@@ -250,7 +250,7 @@ int LinesCross(float x0, float y0, float x1, float y1, float x2, float y2, float
// float linx, liny;
float d=(x1-x0)*(y3-y2)-(y1-y0)*(x3-x2);
if (abs(d)<0.001) {return 0;}
if (std::abs(d)<0.001) {return 0;}
float AB=((y0-y2)*(x3-x2)-(x0-x2)*(y3-y2))/d;
if (AB>=0.0 && AB<=1.0)
{