29 #ifndef THOR_TRIANGULATIONFIGURES_HPP
30 #define THOR_TRIANGULATIONFIGURES_HPP
34 #include <SFML/System/Vector2.hpp>
35 #include <SFML/System/NonCopyable.hpp>
58 Edge(V& corner0, V& corner1);
68 const V&
operator[] (std::size_t cornerIndex)
const;
74 std::array<V*, 2> mCorners;
91 Triangle(V& corner0, V& corner1, V& corner2);
101 const V&
operator[] (std::size_t cornerIndex)
const;
107 std::array<V*, 3> mCorners;
119 template <
typename V>
122 static sf::Vector2f getPosition(
const V& vertex)
124 return vertex.getPosition();
132 static sf::Vector2f getPosition(sf::Vector2f vertex)
142 #include <Thor/Math/Detail/TriangulationFigures.inl>
143 #endif // THOR_TRIANGULATIONFIGURES_HPP
V & operator[](std::size_t cornerIndex)
Accesses a corner of the edge.
Definition: Animator.hpp:42
Configuration header of the library.
V & operator[](std::size_t cornerIndex)
Accesses a corner of the triangle.
Triangle(V &corner0, V &corner1, V &corner2)
Triangle constructor.
Edge that contains two vertices (its endpoints or corners)
Definition: TriangulationFigures.hpp:51
Edge(V &corner0, V &corner1)
Edge constructor
Traits template to implement the Vertex concept.
Definition: TriangulationFigures.hpp:120
Definition: BigSprite.hpp:41
Triangle class consisting of 3 vertices (its corners).
Definition: TriangulationFigures.hpp:83