31 #if defined(InGeneralizedDiskOfGivenRadius_RECURSES)
32 #error Recursive header files inclusion detected in InGeneralizedDiskOfGivenRadius.h
33 #else // defined(InGeneralizedDiskOfGivenRadius_RECURSES)
35 #define InGeneralizedDiskOfGivenRadius_RECURSES
37 #if !defined InGeneralizedDiskOfGivenRadius_h
39 #define InGeneralizedDiskOfGivenRadius_h
45 #include "DGtal/base/Common.h"
47 #include "DGtal/geometry/tools/determinant/C2x2DetComputer.h"
48 #include "DGtal/geometry/tools/determinant/Simple2x2DetComputer.h"
124 template <
typename TPo
int,
typename TDetComputer>
145 static const SizeArray size = 2;
155 typedef typename DetComputer::ArgumentInteger
Integer;
159 typedef typename DetComputer::ResultInteger
Value;
212 void init(
const Point& aP,
const Point& aQ );
219 void init(
const PointArray& aA);
378 template <
typename TPo
int,
typename TDetComputer>
380 operator<< ( std::ostream & out, const InGeneralizedDiskOfGivenRadius<TPoint, TDetComputer> & object );
388 #include "DGtal/geometry/tools/determinant/InGeneralizedDiskOfGivenRadius.ih"
393 #endif // !defined InGeneralizedDiskOfGivenRadius_h
395 #undef InGeneralizedDiskOfGivenRadius_RECURSES
396 #endif // else defined(InGeneralizedDiskOfGivenRadius_RECURSES)
InGeneralizedDiskOfGivenRadius & operator=(const InGeneralizedDiskOfGivenRadius &other)
DetComputer::ResultInteger Value
Value operator()(const Point &aR) const
BOOST_CONCEPT_ASSERT((C2x2DetComputer< DetComputer >))
void selfDisplay(std::ostream &out) const
void finalizeComputation() const
DetComputer::ArgumentInteger Integer
Aim: This concept gathers all models that are able to compute the (sign of the) determinant of a 2x2 ...
void init(const Point &aP, const Point &aQ)
std::array< Point, 2 > PointArray
DetComputer myDetComputer
PointArray::size_type SizeArray
InGeneralizedDiskOfGivenRadius(bool isPositive=true, const Integer &aNum2=NumberTraits< Integer >::ONE, const Integer &aDen2=NumberTraits< Integer >::ZERO)
Aim: This class implements an orientation functor that provides a way to determine the position of a ...
Aim: The traits class for all models of Cinteger.
Simple2x2DetComputer< Integer > AreaFunctor
DGtal is the top-level namespace which contains all DGtal functions and types.
bool lengthIsValid(const Integer &aL2) const
AreaFunctor myAreaFunctor