Concept that checks if a type is a valid shape type.
More...
#include <GREM/physics/Shape.hpp>
template<typename T, size_t N>
{ t.getBoundingBox(transformation) } -> convertible_to<Optional<Box<N>>>;
{ t.getBoundingRadius(basis) } -> convertible_to<Optional<Distance>>;
{ t.getReferenceArea(basis, direction) } -> convertible_to<Optional<Area>>;
{ t.castLocalRay(localRayOrigin, localRayDirection, maxLocalRayDistance) } -> convertible_to<RaycastResult<N>>;
}
Definition concepts.hpp:47
Concept that checks if a type is a valid shape type.
Definition Shape.hpp:1227
Length1D Distance
Scalar length quantity.
Definition quantities.hpp:4962
TensorQuantity< N, Unitless > Basis
Basis matrix.
Definition quantities.hpp:3998
Quantity< 1, Kilograms > Mass
Scalar mass quantity.
Definition quantities.hpp:5504
Quantity< N, Meters > Length
Relative distance/length offset quantity.
Definition quantities.hpp:4924
Normalized unit vector.
Definition quantities.hpp:4105
Concept that checks if a type is a valid shape type.
- Template Parameters
-
| T | the type to check. |
| N | number of dimensions of the world space (must be 2 or 3). |