36 #if defined(PlaneProbingEstimatorHelper_RECURSES)
37 #error Recursive header files inclusion detected in PlaneProbingEstimatorHelper.h
40 #define PlaneProbingEstimatorHelper_RECURSES
42 #if !defined PlaneProbingEstimatorHelper_h
44 #define PlaneProbingEstimatorHelper_h
50 #include "DGtal/math/linalg/SimpleMatrix.h"
51 #include "DGtal/base/Common.h"
52 #include "DGtal/kernel/CInteger.h"
65 template <
typename Po
int >
74 template <
int N,
typename T >
83 template <
typename Po
int >
85 typename Point::Coordinate
distToSphere (std::array<Point, 5>
const& aPoints);
94 template <
typename Po
int >
111 template <
typename Integer =
int >
162 template <
typename Po
int >
219 template <
typename Integer >
239 template <
typename Integer =
int >
298 template <
typename Vector >
310 template <
typename Po
int >
333 return !(*
this == other);
354 std::pair<Integer,Integer> d = std::make_pair(
myDir.first+other.
myDir.first,
366 std::pair<Integer,Integer> d = std::make_pair(
myDir.first*aValue,
367 myDir.second*aValue);
379 if ( (
myDir.first != 0) || (
myDir.second != 0) ) {
380 return ( (
myDir.first >= 0) && (
myDir.second >= 0)
381 && (
myK >= 0) && (
myK <= 2)
402 template <
typename Integer >
404 aOs <<
"GridPoint[k=" << aGridPoint.
k()
405 <<
", a=" << aGridPoint.
direction().first
406 <<
", b=" << aGridPoint.
direction().second
424 template <
typename Integer =
int >
443 const std::pair<Integer,Integer>& aDirection,
468 return !(*
this == other);
516 template <
typename Po
int >
534 #include "DGtal/geometry/helpers/PlaneProbingEstimatorHelper.ih"
541 #undef PlaneProbingEstimatorHelper_RECURSES
Aim: Represents a grid point along a discrete ray defined on a grid.
Point relativePoint(std::array< Point, 3 > const &aM) const
GridPointOnProbingRay next(const Integer &aInc) const
GridPointOnProbingRay(const GridPoint< Integer > &aGridPoint, const std::pair< Integer, Integer > &aDirection, const Integer &aIdx=0)
BOOST_CONCEPT_ASSERT((concepts::CInteger< Integer >))
bool operator!=(GridPointOnProbingRay const &other) const
GridPoint< Integer > myOrigin
std::pair< Integer, Integer > myDirection
bool operator==(GridPointOnProbingRay const &other) const
GridPointOnProbingRay previous(const Integer &aDec) const
GridPointOnProbingRay()=default
GridPoint< Integer > gridPoint() const
A grid point consists of a couple of nonnegative coordinates and an integer index that determines a...
bool operator==(GridPoint const &other) const
BOOST_CONCEPT_ASSERT((concepts::CInteger< Integer >))
Point relativePoint(std::array< Point, 3 > const &aM) const
GridPoint operator*(Integer aValue) const
GridPoint operator+(const GridPoint &other) const
Vector directionVector(std::array< Vector, 3 > const &aM) const
std::pair< Integer, Integer > myDir
GridPoint(std::pair< Integer, Integer > const &aDir, int aK)
GridPoint getOnSameGrid(const std::pair< Integer, Integer > &aDir) const
GridPoint(Integer aX, Integer aY, int aK)
std::pair< Integer, Integer > direction() const
bool operator!=(GridPoint const &other) const
A ray consists of a permutation and an integer index (position on the ray). For a triplet of vector...
PointOnProbingRay()=default
bool operator<=(PointOnProbingRay const &aRay) const
PointOnProbingRay next(Integer const &aInc) const
PointOnProbingRay previous(Integer const &aDec) const
PointOnProbingRay getBase() const
BOOST_CONCEPT_ASSERT((concepts::CInteger< Integer >))
int sigma(int aIndex) const
std::array< int, 3 > Permutation
Integer const & index() const
Point relativePoint(std::array< Point, 3 > const &aM) const
bool operator!=(PointOnProbingRay const &aRay) const
bool operator==(PointOnProbingRay const &aRay) const
PointOnProbingRay(Permutation const &aSigma, Integer const &aIndex=Integer(0))
Permutation const & sigma() const
DigitalPlane::Point Vector
Point::Coordinate Integer
std::ostream & operator<<(std::ostream &aOs, PointOnProbingRay< Integer > const &aRay)
T determinant(const T aMatrix[N][N])
Point::Coordinate squaredNorm(Point const &aPoint)
bool isBasisReduced(Point const &aU, Point const &aV)
Point::Coordinate distToSphere(std::array< Point, 5 > const &aPoints)
DGtal is the top-level namespace which contains all DGtal functions and types.
Aim: Concept checking for Integer Numbers. More precisely, this concept is a refinement of both CEucl...