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

Shape Concept. More...

#include <shape_concepts.h>

Concept definition

template<typename SHAPE, typename T>
concept ghassanpl::geometry::shape = requires (SHAPE const& shape, glm::tvec2<T> pt, T t) {
{ shape.edge_length() } -> std::convertible_to<T>;
{ shape.edge_point_alpha(t) } -> std::convertible_to<glm::tvec2<T>>;
{ shape.edge_point(t) } -> std::convertible_to<glm::tvec2<T>>;
{ shape.bounding_box() } -> std::convertible_to<trec2<T>>;
{ shape.projected(pt) } -> std::convertible_to<glm::tvec2<T>>;
}
constexpr auto bit_count
Equal to the number of bits in the type.
Definition bits.h:33

Detailed Description

Shape Concept.

Definition at line 23 of file shape_concepts.h.