geomc 1.0
A c++ linear algebra template library
|
Base class describing convex shapes in N-dimensional space. More...
#include <geomc/shape/Shape.h>
Public Types | |
using | elem_t |
The coordinate type of this object. | |
using | point_t |
The type of a point in this object's space. | |
Public Member Functions | |
Rect< T, N > | bounds () const |
Produces an axis-aligned box completely enclosing this shape. | |
point_t | convex_support (point_t d) const |
Geometric convex support function. | |
template<typename Shape> | |
bool | intersects (const Convex< T, N, Shape > &other) const |
Convex shape overlap test. | |
Static Public Attributes | |
static constexpr index_t | N |
The dimension of this object. | |
Base class describing convex shapes in N-dimensional space.
Uses the curiously-recurring template pattern to perform static polymorphism. Override convex_support()
in the derived implementation.
|
inherited |
The type of a point in this object's space.
An N-vector of T if N > 1, otherwise a T.