40#include "DGtal/base/Common.h"
41#include "DGtal/base/Exceptions.h"
42#include "DGtal/kernel/SpaceND.h"
43#include "DGtal/kernel/domains/DomainPredicate.h"
44#include "DGtal/kernel/domains/HyperRectDomain.h"
45#include "DGtal/io/boards/Board2D.h"
46#include "DGtal/shapes/fromPoints/StraightLineFrom2Points.h"
47#include "DGtal/shapes/fromPoints/Point2ShapePredicate.h"
49#include "DGtalCatch.h"
58 typedef int Coordinate;
67 StraightLine line(p,q);
82 trace.
info() <<
"created line:" << std::endl;
87 UpClosedHalfPlane hp(line);
89 trace.
info() <<
"Does " << r1 <<
" belongs to hp (no)?" << std::endl;
96 UpOpenHalfPlane hp2(line);
101 DownClosedHalfPlane hp3(line);
Aim: Implements basic operations that will be used in Point and Vector classes.
Aim: Represents a straight line uniquely defined by two 2D points and that is able to return for any ...
void beginBlock(const std::string &keyword="")
functors namespace gathers all DGtal functors.
DGtal is the top-level namespace which contains all DGtal functions and types.
Struct representing a 2D point.
TEST_CASE("HalfplaneUnit tests")
REQUIRE(domain.isInside(aPoint))