Loading [MathJax]/extensions/MathMenu.js
DGtal 2.0.0
DGtal::BoundedRationalPolytope< TSpace >::UnitCell Struct Reference

#include <DGtal/geometry/volumes/BoundedRationalPolytope.h>

Public Member Functions

 UnitCell (std::initializer_list< Dimension > l)

Data Fields

std::vector< Dimensiondims

Friends

std::ostream & operator<< (std::ostream &out, const UnitCell &object)

Detailed Description

template<typename TSpace>
struct DGtal::BoundedRationalPolytope< TSpace >::UnitCell

Represents the unit cell obtained by successive Minkowski sum of UnitSegment whose dimensions are stored in dims. When dims is empty, it is only the point (0,...,0).

Definition at line 106 of file BoundedRationalPolytope.h.

Constructor & Destructor Documentation

◆ UnitCell()

template<typename TSpace>
DGtal::BoundedRationalPolytope< TSpace >::UnitCell::UnitCell ( std::initializer_list< Dimension > l)
inline

Definition at line 108 of file BoundedRationalPolytope.h.

109 : dims( l.begin(), l.end() ) {}
Aim: Represents an nD rational polytope, i.e. a convex polyhedron bounded by vertices with rational c...

References dims.

Referenced by operator<<.

◆ operator<<

template<typename TSpace>
std::ostream & operator<< ( std::ostream & out,
const UnitCell & object )
friend

Overloads 'operator<<' for displaying objects of class 'BoundedRationalPolytope::UnitCell'.

Parameters
outthe output stream where the object is written.
objectthe object of class 'BoundedRationalPolytope::UnitCell' to write.
Returns
the output stream after the writing.

Definition at line 117 of file BoundedRationalPolytope.h.

120 {
121 out << "{";
122 for ( Dimension i = 0; i < object.dims.size(); ++i ) out << object.dims[ i ];
123 out << "}";
124 return out;
125 }

References dims, and UnitCell().

Field Documentation

◆ dims

template<typename TSpace>
std::vector<Dimension> DGtal::BoundedRationalPolytope< TSpace >::UnitCell::dims

Definition at line 107 of file BoundedRationalPolytope.h.

Referenced by operator<<, and UnitCell().


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