|
Thunderbots Project
|
#include <convex_polygon.h>


Public Member Functions | |
| double | area () const override |
| ConvexPolygon (const std::vector< Point > &points) | |
| ConvexPolygon (const std::initializer_list< Point > &points) | |
Public Member Functions inherited from Polygon | |
| Polygon (const std::vector< Point > &points) | |
| Polygon (const std::initializer_list< Point > &points) | |
| Point | centroid () const |
| Polygon | expand (double expansion_amount) const |
| double | perimeter () const |
| const std::vector< Segment > & | getSegments () const |
| const std::vector< Point > & | getPoints () const |
Additional Inherited Members | |
Static Public Member Functions inherited from Polygon | |
| static Polygon | fromSegment (const Segment &segment, double length_radius, double width_radius) |
| static Polygon | fromSegment (const Segment &segment, double radius) |
Protected Member Functions inherited from Polygon | |
| void | initSegments () |
Protected Attributes inherited from Polygon | |
| std::vector< Point > | points_ |
| std::vector< Segment > | segments_ |
A polygon that is convex (curved outwards).
|
explicit |
|
explicit |
|
overridevirtual |
Returns the area of this convex polygon
Implements ConvexShape.