2018-08-17 14:42:26 +00:00
|
|
|
// Copyright 2018, University of Freiburg,
|
|
|
|
// Chair of Algorithms and Data Structures.
|
|
|
|
// Authors: Patrick Brosi <brosi@informatik.uni-freiburg.de>
|
2018-08-10 14:51:23 +00:00
|
|
|
|
|
|
|
#ifndef PFAEDLE_DEF_H_
|
|
|
|
#define PFAEDLE_DEF_H_
|
|
|
|
|
|
|
|
#include "util/geo/Geo.h"
|
|
|
|
#include "util/geo/PolyLine.h"
|
|
|
|
|
|
|
|
#define __str_a(s) __str_b(s)
|
|
|
|
#define __str_b(s) #s
|
|
|
|
#define __str_c(s) s ## 1
|
|
|
|
#define __str_d(s) __str_c(s)
|
|
|
|
|
|
|
|
#if !defined(PFAEDLE_PRECISION) || (__str_d(PFAEDLE_PRECISION) == 1)
|
|
|
|
#undef PFAEDLE_PRECISION
|
|
|
|
#define PFAEDLE_PRECISION double
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#define PFAEDLE_PRECISION_STR __str_a(PFAEDLE_PRECISION)
|
|
|
|
|
|
|
|
#define POINT util::geo::Point<PFAEDLE_PRECISION>
|
|
|
|
#define LINE util::geo::Line<PFAEDLE_PRECISION>
|
|
|
|
#define BOX util::geo::Box<PFAEDLE_PRECISION>
|
|
|
|
#define POLYLINE util::geo::PolyLine<PFAEDLE_PRECISION>
|
|
|
|
|
2019-01-10 15:52:59 +00:00
|
|
|
#define BOX_PADDING 2500
|
|
|
|
|
2018-08-10 14:51:23 +00:00
|
|
|
#endif // PFAEDLE_DEF_H_
|