added comment in polygon code

This commit is contained in:
Andrew Tridgell 2011-12-21 15:31:47 +11:00
parent bc9e943969
commit 11b8d56434
1 changed files with 1 additions and 0 deletions

View File

@ -56,6 +56,7 @@ bool Polygon_outside(const Vector2l &P, const Vector2l *V, unsigned n)
dy2s = sign(dy2);
m1 = dx1s * dy2s;
m2 = dx2s * dy1s;
// we avoid the 64 bit multiplies if we can based on sign checks.
if (dy2 < 0) {
if (m1 > m2) {
outside = !outside;