InScanArea fixed again

This commit is contained in:
Mason Green 2012-02-04 16:14:34 -05:00
parent d2469ed4ce
commit 65b3d76ec8
1 changed files with 1 additions and 1 deletions

View File

@ -105,7 +105,7 @@ bool InScanArea(Point& pa, Point& pb, Point& pc, Point& pd)
bool InScanArea(Point& pa, Point& pb, Point& pc, Point& pd) bool InScanArea(Point& pa, Point& pb, Point& pc, Point& pd)
{ {
double oadb = (pa.x - pb.x)*(pd.y - pb.y) - (pd.x - pb.x)*(pa.y - pb.y); double oadb = (pa.x - pb.x)*(pd.y - pb.y) - (pd.x - pb.x)*(pa.y - pb.y);
if (oadb >= EPSILON) { if (oadb >= -EPSILON) {
return false; return false;
} }