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

Area Shape Concept. More...

#include <shape_concepts.h>

Concept definition

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

Detailed Description

Area Shape Concept.

Definition at line 51 of file shape_concepts.h.