Closed GoogleCodeExporter closed 9 years ago
did you referes to nts 1.7.3 (trunk) or nts2.0 (branch)?
Original comment by diegogu...@gmail.com
on 15 Jul 2009 at 3:04
Actually the code in 2.0 branch is this
Double p1X = p1[Ordinates.X], p1Y = p1[Ordinates.Y];
Double p2X = p1[Ordinates.X], p2Y = p1[Ordinates.Y];
I think code is correct
Original comment by diegogu...@gmail.com
on 15 Jul 2009 at 3:07
Double p1X = p1[Ordinates.X], p1Y = p1[Ordinates.Y];
Double p2X = p1[Ordinates.X], p2Y = p1[Ordinates.Y];
If the above code is correct, then the following will always be true.
p1X == p2X
and
p1Y == p2Y
If that is the case then the if statement that follows the above code will
always
return false (unless of course qX == p1X == p2X and qY == p1Y == p2Y)
if (((qX >= (p1X < p2X ? p1X : p2X)) && (qX <= (p1X > p2X ? p1X : p2X))) &&
((qY >= (p1Y < p2Y ? p1Y : p2Y)) && (qY <= (p1Y > p2Y ? p1Y : p2Y))))
The will always be false because qX can't be both greater than and less then
p1X at
the same time.
Original comment by AndySChe...@gmail.com
on 15 Jul 2009 at 3:58
Sorry I also meant to confirm the code I was looking at was from the 2.0 branch
Original comment by AndySChe...@gmail.com
on 15 Jul 2009 at 4:22
Original issue reported on code.google.com by
AndySChe...@gmail.com
on 14 Jul 2009 at 9:24