geomc 1.0
A c++ linear algebra template library
Loading...
Searching...
No Matches
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 >:
Dimensional< T, N > Convex< T, N, Derived >

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, Nbounds () const
 Produces an axis-aligned box completely enclosing this shape.

Static Public Attributes

static constexpr index_t N
 The dimension of this object.

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.

Member Typedef Documentation

◆ point_t

using point_t
inherited

The type of a point in this object's space.

An N-vector of T if N > 1, otherwise a T.


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