From 37178e3751a086604230e4873e8a5c88fe5370a4 Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Sun, 29 Nov 2020 11:49:22 +0000 Subject: [PATCH] Formatting. --- libs/kimath/src/geometry/convex_hull.cpp | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/libs/kimath/src/geometry/convex_hull.cpp b/libs/kimath/src/geometry/convex_hull.cpp index feda897d86..63dfe5d6c8 100644 --- a/libs/kimath/src/geometry/convex_hull.cpp +++ b/libs/kimath/src/geometry/convex_hull.cpp @@ -60,9 +60,7 @@ #include #include // for VECTOR2I #include - #include -#include typedef long long coord2_t; // must be big enough to hold 2*max(|coordinate|)^2 @@ -133,15 +131,13 @@ void BuildConvexHull( std::vector& aResult, const std::vector& } -void BuildConvexHull( std::vector& aResult, - const SHAPE_POLY_SET& aPolygons ) +void BuildConvexHull( std::vector& aResult, const SHAPE_POLY_SET& aPolygons ) { BuildConvexHull( aResult, aPolygons, wxPoint( 0, 0 ), 0.0 ); } -void BuildConvexHull( std::vector& aResult, - const SHAPE_POLY_SET& aPolygons, +void BuildConvexHull( std::vector& aResult, const SHAPE_POLY_SET& aPolygons, wxPoint aPosition, double aRotation ) { // Build the convex hull of the SHAPE_POLY_SET @@ -152,12 +148,10 @@ void BuildConvexHull( std::vector& aResult, const SHAPE_LINE_CHAIN& poly = aPolygons.COutline( cnt ); for( int ii = 0; ii < poly.PointCount(); ++ii ) - { buf.emplace_back( poly.CPoint( ii ).x, poly.CPoint( ii ).y ); - } } - BuildConvexHull(aResult, buf ); + BuildConvexHull( aResult, buf ); // Move and rotate the points according to aPosition and aRotation