5#include <SFML/System/Vector2.hpp>
9constexpr float Pi = 3.14159265359f;
10constexpr float PiRad = 3.14159265359f / 180.f;
16template <
typename Type>
36template <
typename Type>
53template<
typename Type>
54constexpr sf::Vector2f
centroid (
const std::vector<sf::Vector2 <Type>>& vertices);
Definition Interpolation.h:11
Definition Interpolation.h:16
constexpr float PiRad
Definition Shapes.h:10
Circle< float > CircleFloat
Definition Shapes.h:46
Line< float > LineFloat
Definition Shapes.h:29
constexpr float Pi
Definition Shapes.h:9
constexpr sf::Vector2f centroid(const Polygon< N > &polygon)
Return center of polygon.
Define a Circle with a center and a radius.
Definition Shapes.h:38
Circle(const sf::Vector2< Type > ¢er, Type r)
sf::Vector2< float > center
Definition Shapes.h:42
float radius
Definition Shapes.h:41
Define a line with two points.
Definition Shapes.h:17
Line(const sf::Vector2< Type > &begin, const sf::Vector2< Type > &end)
sf::Vector2< Type > direction() const
get direction of the line
sf::Vector2< float > head
Definition Shapes.h:25
sf::Vector2< float > tail
Definition Shapes.h:24