|
Thunderbots Project
|
#include <triangle.h>


Public Member Functions | |
| Triangle (const Point &point1, const Point &point2, const Point &point3) | |
| Point | mean () const |
Public Member Functions inherited from ConvexPolygon | |
| 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 triangle.
Creates a Triangle from three points.
| point1 | One of the triangle's corners |
| point2 | Another of the triangle's corners |
| point3 | One more of the triangle's corners |
| Point mean | ( | ) | const |