Definition Interpolation.h:16
Polygon< N > makeRegularPolygon(const sf::Vector2f ¢er, const float size)
make a regular polygon, like hexagon or octogon, around a center
Polygon< 8 > Octogon
Definition Polygon.h:21
constexpr sf::FloatRect boundingBox(const Polygon< N > &polygon)
Return a box that bounds polygon.
Polygon< 4 > Tetragon
Definition Polygon.h:19
Polygon< 6 > Hexagon
Definition Polygon.h:20
constexpr sf::Vector2f centroid(const Polygon< N > &polygon)
Return center of polygon.
Polygon is a series of N points, ranged in clock-wise order and that form a convex shape.
Definition Polygon.h:14
std::array< sf::Vector2f, N > points
Definition Polygon.h:15