GREM 3.12.0
Game/Rendering Engine Modules for C++
Loading...
Searching...
No Matches
grem::physics::convex_shape Concept Reference

Concept that checks if a type is a valid convex shape type. More...

#include <GREM/physics/Shape.hpp>

Concept definition

template<typename T, size_t N>
concept grem::physics::convex_shape = shape<T, N> && requires(const T t, const Length<N> localPoint, const Direction<N> localDirection) {
{ t.containsLocalPoint(localPoint) } -> convertible_to<bool>;
{ t.getLocalSupportPointOffset(localDirection) } -> convertible_to<Length<N>>;
}
Definition concepts.hpp:47
Concept that checks if a type is a valid convex shape type.
Definition Shape.hpp:1260
Concept that checks if a type is a valid shape type.
Definition Shape.hpp:1227
Quantity< N, Meters > Length
Relative distance/length offset quantity.
Definition quantities.hpp:4924
Normalized unit vector.
Definition quantities.hpp:4105

Detailed Description

Concept that checks if a type is a valid convex shape type.

Template Parameters
Tthe type to check.
Nnumber of dimensions of the world space (must be 2 or 3).