From e55df069a8f83b2c0c2b56c035f49e89516cdaaa Mon Sep 17 00:00:00 2001 From: Gloria Mundi Date: Sat, 16 Nov 2024 17:48:10 +0100 Subject: minor fixes, let code breathe where possible --- content/geometry/polygon.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'content/geometry/polygon.cpp') diff --git a/content/geometry/polygon.cpp b/content/geometry/polygon.cpp index 064d81f..b9ecebb 100644 --- a/content/geometry/polygon.cpp +++ b/content/geometry/polygon.cpp @@ -91,8 +91,8 @@ double dist(const vector& ps, vector qs) { return intersect ? 0 : res; } -bool left(pt of, pt p) {return cross(p, of) < 0 || - (cross(p, of) == 0 && dot(p, of) > 0);} +bool left(pt of, pt p) { return cross(p, of) < 0 || + (cross(p, of) == 0 && dot(p, of) > 0); } // convex hulls without duplicates, hull[0] == hull.back() and // hull[0] must be a convex point (with angle < pi) -- cgit v1.2.3