31 #if defined(ClosedIntegerHalfPlane_RECURSES)
32 #error Recursive header files inclusion detected in ClosedIntegerHalfPlane.h
33 #else // defined(ClosedIntegerHalfPlane_RECURSES)
35 #define ClosedIntegerHalfPlane_RECURSES
37 #if !defined ClosedIntegerHalfPlane_h
39 #define ClosedIntegerHalfPlane_h
44 #include "DGtal/base/Common.h"
45 #include "DGtal/kernel/CSpace.h"
62 template <
typename TSpace>
160 template <
typename TSpace>
169 #include "DGtal/arithmetic/ClosedIntegerHalfPlane.ih"
174 #endif // !defined ClosedIntegerHalfPlane_h
176 #undef ClosedIntegerHalfPlane_RECURSES
177 #endif // else defined(ClosedIntegerHalfPlane_RECURSES)
ClosedIntegerHalfPlane< TSpace > Self
Aim: Defines the concept describing a digital space, ie a cartesian product of integer lines.
bool operator()(const Point &p) const
ClosedIntegerHalfPlane(const Point &A, const Point &B, const Point &inP, IntegerComputer< Integer > &ic)
DGtal is the top-level namespace which contains all DGtal functions and types.
BOOST_CONCEPT_ASSERT((concepts::CSpace< TSpace >))
bool isOnBoundary(const Point &p) const
~ClosedIntegerHalfPlane()
Integer c
The uppermost value N.(x,y) that is in the half-space.
std::ostream & operator<<(std::ostream &out, const ClosedIntegerHalfPlane< TSpace > &object)
Aim: A half-space specified by a vector N and a constant c. The half-space is the set .
void selfDisplay(std::ostream &out) const
ClosedIntegerHalfPlane(const Vector &aN, const Integer &aC)
Vector N
The normal to the half-space.
TInteger Integer
Arithmetic ring induced by (+,-,*) and Integer numbers.