From 11b8d56434cb55d8b4f99c9b6c70388a15fcfa6f Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Wed, 21 Dec 2011 15:31:47 +1100 Subject: [PATCH] added comment in polygon code --- libraries/AP_Math/polygon.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/libraries/AP_Math/polygon.cpp b/libraries/AP_Math/polygon.cpp index 0312a73fe8..05374b5b00 100644 --- a/libraries/AP_Math/polygon.cpp +++ b/libraries/AP_Math/polygon.cpp @@ -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;