geomc 1.0
A c++ linear algebra template library
|
Base class describing N-dimensional shapes which implement a signed distance function. More...
#include <geomc/shape/Shape.h>
Public Member Functions | |
bool | contains (Vec< T, N > p) const |
Shape-point overlap test. | |
T | sdf (Vec< T, N > p) const |
Signed distance function. | |
Base class describing N-dimensional shapes which implement a signed distance function.
Uses the curiously-recurring template pattern to perform static polymorphism. Override sdf()
in the derived implemenation.