40#include "ConfigExamples.h"
41#include "DGtal/helpers/StdDefs.h"
42#include "DGtal/base/Common.h"
46#include "DGtal/geometry/curves/DSLSubsegment.h"
47#include "DGtal/kernel/CPointPredicate.h"
48#include "DGtal/arithmetic/IntegerComputer.h"
63 typedef long double Number;
70 typedef DSLSubseg::Point
Point;
81 DSLSubseg D1(2,3,15,A,B,
"farey");
84 std::cout <<
"a=" << D1.getA() <<
" b=" << D1.getB() <<
" mu=" << D1.getMu() << std::endl;
93 DSLSubsegD D2(0.6666,5,A,B,0.00005);
96 std::cout <<
"a=" << D2.getA() <<
" b=" << D2.getB() <<
" mu=" << D2.getMu() << std::endl;
Aim: Given a Digital Straight line and two endpoints A and B on this line, compute the minimal charac...
void beginBlock(const std::string &keyword="")
Point::Coordinate Integer
DGtal is the top-level namespace which contains all DGtal functions and types.
boost::int32_t int32_t
signed 32-bit integer.