5#include "software/geom/segment.h"
6#include "software/geom/shape.h"
20 explicit Polygon(
const std::vector<Point>& points);
27 explicit Polygon(
const std::initializer_list<Point>& points);
63 const std::vector<Point>&
getPoints()
const;
86 std::vector<Point> points_;
87 std::vector<Segment> segments_;
102std::ostream& operator<<(std::ostream& os,
const Polygon& poly);
const std::vector< Segment > & getSegments() const
Definition polygon.cpp:135
Point centroid() const
Definition polygon.cpp:27
Polygon expand(double expansion_amount) const
Definition polygon.cpp:51
const std::vector< Point > & getPoints() const
Definition polygon.cpp:140
double perimeter() const
Definition polygon.cpp:145
static Polygon fromSegment(const Segment &segment, double length_radius, double width_radius)
Definition polygon.cpp:84
void initSegments()
Definition polygon.cpp:17