geomc 1.0
A c++ linear algebra template library
Public Types | Public Member Functions | Static Public Attributes | List of all members
Bounded< T, _N, Derived > Class Template Reference

Base class describing shapes with finite extents in N dimensions. More...

#include <geomc/shape/Shape.h>

Inheritance diagram for Bounded< T, _N, Derived >:
Convex< T, N, AnyConvex< T, N > > Convex< T, N, Cylinder< T, N > > Convex< Shape::elem_t, Shape::N, Dilated< Shape > > Convex< Shape::elem_t, Shape::N+1, Extrusion< Shape > > Convex< Shape::elem_t, Shape::N+1, Frustum< Shape > > Convex< Shape::elem_t, Shape::N, Oriented< Shape > > Convex< T, N, Oriented< Rect< T, N > > > Convex< T, N, Rect< T, N > > Convex< T, N, Simplex< T, N > > Convex< T, N, Sphere< T, N > > Convex< T, N, SphericalSector< T, N > > Convex< T, N, UnstructuredPointcloud< T, N > >

Public Types

typedef T elem_t
 The coordinate type of this shape.
 

Public Member Functions

Rect< T, Nbounds () const
 Produces an axis-aligned box completely enclosing this shape.
 

Static Public Attributes

static constexpr size_t N = _N
 The dimension of this shape.
 

Detailed Description

template<typename T, index_t _N, typename Derived>
class geom::Bounded< T, _N, Derived >

Base class describing shapes with finite extents in N dimensions.

Uses the curiously-recurring template pattern to perform static polymorphism. Override bounds() in the derived implementation.


The documentation for this class was generated from the following file: