BinaryFunctor that computes the algebraic quotient i of a/b with any non zero fractional part discarded (truncation toward zero), and that returns i+1 (resp. i-1) if a is negative (resp. positive) if b divides a. Since we assume that a is not equal to 0, we have |i| < |a/b| . See also LargeTruncationFunctor. More...
#include <DGtal/geometry/curves/ArithmeticalDSSConvexHull.h>
Public Member Functions | |
Integer | operator() (const Integer &a, const Integer &b) const |
BinaryFunctor that computes the algebraic quotient i of a/b with any non zero fractional part discarded (truncation toward zero), and that returns i+1 (resp. i-1) if a is negative (resp. positive) if b divides a. Since we assume that a is not equal to 0, we have |i| < |a/b| . See also LargeTruncationFunctor.
Integer | a model of integer used to store a and b |
Definition at line 130 of file ArithmeticalDSSConvexHull.h.
|
inline |
a | numerator |
b | denominator |
Definition at line 142 of file ArithmeticalDSSConvexHull.h.
References DGtal::NumberTraitsImpl< std::decay< T >::type >::ZERO.