header_utils
Loading...
Searching...
No Matches
ghassanpl::geometry::indexable_polygonlike Concept Reference

Any type that we can index into which will return a tvec2 of some sort. This includes, for example, std::vector<vec2>. More...

#include <shape_concepts.h>

Concept definition

template<typename POLY>
concept indexable_polygonlike = requires (POLY const& polygon, size_t i) {
Any type that we can index into which will return a tvec2 of some sort. This includes,...

TODO: I wish we could do something like -> convertible_to_specialization_of<glm::tvec2> but I think that would require additional stuff like deduction guides for tvecN

{ polygon[i] } -> is_specialization_of<glm::tvec2>;
}

Detailed Description

Any type that we can index into which will return a tvec2 of some sort. This includes, for example, std::vector<vec2>.

Definition at line 87 of file shape_concepts.h.