Merged with master

This commit is contained in:
bubnikv
2018-09-17 10:38:14 +02:00
70 changed files with 1711 additions and 1163 deletions

View File

@@ -103,6 +103,12 @@ inline void polygons_rotate(Polygons &polys, double angle)
p.rotate(cos_angle, sin_angle);
}
inline void polygons_reverse(Polygons &polys)
{
for (Polygon &p : polys)
p.reverse();
}
inline Points to_points(const Polygon &poly)
{
return poly.points;