#include <cmath>
#include "sgui/Core/Shapes.h"
#include "sgui/Core/Polygon.tpp"
Go to the source code of this file.
|
| template<size_t N> |
| Polygon< N > | sgui::makeRegularPolygon (const sf::Vector2f ¢er, const float size) |
| | make a regular polygon, like hexagon or octogon, around a center
|
| template<size_t N> |
| constexpr sf::Vector2f | sgui::centroid (const Polygon< N > &polygon) |
| | Return center of polygon.
|
| template<size_t N> |
| constexpr sf::FloatRect | sgui::boundingBox (const Polygon< N > &polygon) |
| | Return a box that bounds polygon.
|