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

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

Public Member Functions

 Rational (Integer a, Integer b)

Data Fields

Integer p
Integer q

Detailed Description

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

A simple class to represent a rational value p/q, where p and q are integers.

Definition at line 131 of file BoundedRationalPolytope.h.

Constructor & Destructor Documentation

◆ Rational()

template<typename TSpace>
DGtal::BoundedRationalPolytope< TSpace >::Rational::Rational ( Integer a,
Integer b )
inline

Constructor

Parameters
athe numerator of the rational
bthe denominator of the rational

Definition at line 137 of file BoundedRationalPolytope.h.

137: p( a ), q( b ) {}
Aim: Represents an nD rational polytope, i.e. a convex polyhedron bounded by vertices with rational c...

References p, and q.

Field Documentation

◆ p

template<typename TSpace>
Integer DGtal::BoundedRationalPolytope< TSpace >::Rational::p

Definition at line 132 of file BoundedRationalPolytope.h.

Referenced by Rational().

◆ q

template<typename TSpace>
Integer DGtal::BoundedRationalPolytope< TSpace >::Rational::q

Definition at line 133 of file BoundedRationalPolytope.h.

Referenced by Rational().


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