DGtal  1.4.beta
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 134 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 140 of file BoundedRationalPolytope.h.

Field Documentation

◆ p

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

Definition at line 135 of file BoundedRationalPolytope.h.

◆ q

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

Definition at line 136 of file BoundedRationalPolytope.h.


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