DGtal  0.9.2
Static Public Member Functions
DGtal::detail::EuclideanDivisionHelper< TNumber > Struct Template Reference

#include <DGtal/geometry/tools/determinant/AvnaimEtAl2x2DetSignComputer.h>

Static Public Member Functions

static TNumber compute (const TNumber &a, const TNumber &b)

Detailed Description

template<typename TNumber>
struct DGtal::detail::EuclideanDivisionHelper< TNumber >

Aim: Small stucture that provides a static method returning the Euclidean division of two integers.

Template Parameters
TNumbertype of number. If TNumber is a model of CInteger (default), the method EuclideanDivisionHelper::compute(a,b) returns a / b. If TNumber is float or double, the same method returns std::floor( a / b ).

Definition at line 71 of file AvnaimEtAl2x2DetSignComputer.h.

Member Function Documentation

template<typename TNumber >
static TNumber DGtal::detail::EuclideanDivisionHelper< TNumber >::compute ( const TNumber &  a,
const TNumber &  b 

Computes the Euclidean division a / b

Euclidean division a / b

Definition at line 79 of file AvnaimEtAl2x2DetSignComputer.h.

80  {
81  BOOST_CONCEPT_ASSERT(( concepts::CInteger<TNumber> ));
82  return a / b;
83  }

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