CDT  1.4.2
C++ library for constrained Delaunay triangulation
 
Loading...
Searching...
No Matches
CDT::Box2d< T > Struct Template Reference

2D bounding box More...

#include <CDTUtils.h>

Public Member Functions

 Box2d ()
 Box that doesn't contain any point.
 
Box2d< T > & envelopPoint (const V2d< T > &p)
 Envelop box around a point.
 
Box2d< T > & envelopPoint (const T x, const T y)
 Envelop box around a point with given coordinates.
 
template<typename TVertexIter, typename TGetVertexCoordX, typename TGetVertexCoordY>
Box2d< T > & envelopPoints (TVertexIter first, TVertexIter last, TGetVertexCoordX getX, TGetVertexCoordY getY)
 Envelop box around a collection of custom points.
 
Box2d< T > & envelopPoints (const std::vector< V2d< T > > &vertices)
 Envelop box around a collection of points.
 

Public Attributes

V2d< T > min
 min box corner
 
V2d< T > max
 max box corner
 

Detailed Description

template<typename T>
struct CDT::Box2d< T >

2D bounding box

Definition at line 215 of file CDTUtils.h.

Constructor & Destructor Documentation

◆ Box2d()

template<typename T>
CDT::Box2d< T >::Box2d ( )
inline

Box that doesn't contain any point.

Definition at line 221 of file CDTUtils.h.

Member Function Documentation

◆ envelopPoint() [1/2]

template<typename T>
Box2d< T > & CDT::Box2d< T >::envelopPoint ( const T x,
const T y )
inline

Envelop box around a point with given coordinates.

Definition at line 233 of file CDTUtils.h.

◆ envelopPoint() [2/2]

template<typename T>
Box2d< T > & CDT::Box2d< T >::envelopPoint ( const V2d< T > & p)
inline

Envelop box around a point.

Definition at line 227 of file CDTUtils.h.

◆ envelopPoints() [1/2]

template<typename T>
Box2d< T > & CDT::Box2d< T >::envelopPoints ( const std::vector< V2d< T > > & vertices)
inline

Envelop box around a collection of points.

Definition at line 261 of file CDTUtils.h.

◆ envelopPoints() [2/2]

template<typename T>
template<typename TVertexIter, typename TGetVertexCoordX, typename TGetVertexCoordY>
Box2d< T > & CDT::Box2d< T >::envelopPoints ( TVertexIter first,
TVertexIter last,
TGetVertexCoordX getX,
TGetVertexCoordY getY )
inline

Envelop box around a collection of custom points.

Definition at line 247 of file CDTUtils.h.

Member Data Documentation

◆ max

template<typename T>
V2d<T> CDT::Box2d< T >::max

max box corner

Definition at line 218 of file CDTUtils.h.

◆ min

template<typename T>
V2d<T> CDT::Box2d< T >::min

min box corner

Definition at line 217 of file CDTUtils.h.


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