-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathHyperbolic_Delaunay_triangulation_traits_2.h
More file actions
565 lines (465 loc) · 20.5 KB
/
Hyperbolic_Delaunay_triangulation_traits_2.h
File metadata and controls
565 lines (465 loc) · 20.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
// Copyright (c) 2010-2018 INRIA Sophia Antipolis, INRIA Nancy (France).
// All rights reserved.
//
// This file is part of CGAL (www.cgal.org).
// You can redistribute it and/or modify it under the terms of the GNU
// General Public License as published by the Free Software Foundation,
// either version 3 of the License, or (at your option) any later version.
//
// Licensees holding a valid commercial license may use this file in
// accordance with the commercial license agreement provided with the software.
//
// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
//
// $URL$
// $Id$
// SPDX-License-Identifier: GPL-3.0+
//
// Author(s) : Iordan Iordanov
// Monique Teillaud
//
#ifndef CGAL_HYPERBOLIC_DELAUNAY_TRIANGULATION_TRAITS_2_H
#define CGAL_HYPERBOLIC_DELAUNAY_TRIANGULATION_TRAITS_2_H
#include <CGAL/license/Hyperbolic_triangulation_2.h>
#include <CGAL/Exact_predicates_exact_constructions_kernel_with_sqrt.h>
#include <CGAL/basic.h>
#include <CGAL/basic_constructions_2.h>
#include <CGAL/Bbox_2.h>
#include <CGAL/determinant.h>
#include <CGAL/distance_predicates_2.h>
#include <CGAL/internal/Exact_complex.h>
#include <CGAL/Origin.h>
#include <CGAL/predicates_on_points_2.h>
#include <CGAL/triangulation_assertions.h>
#include <CGAL/utility.h>
#include <boost/tuple/tuple.hpp>
#include <boost/variant.hpp>
#include <utility>
#include <CGAL/internal/Hyperbolic_Delaunay_triangulation_traits_2_functions.h>
namespace CGAL {
namespace internal {
template <typename Traits>
class HDT_2_Circular_arc_2
{
typedef typename Traits::FT FT;
typedef Exact_complex<FT> Cplx;
typedef typename Traits::Point_2 Point;
typedef typename Traits::Circle_2 Circle;
typedef typename Traits::Orientation_2 Orientation_2;
private:
Circle _c;
Point _s, _t;
const Traits& _gt;
public:
HDT_2_Circular_arc_2(const Traits& gt = Traits())
: _c(Point(FT(0),FT(0)), FT(0)),
_s(FT(0),FT(0)),
_t(FT(0),FT(0)),
_gt(gt)
{}
HDT_2_Circular_arc_2(const Circle& c,
const Point& source, const Point& target,
const Traits& gt = Traits())
: _c(c), _s(source), _t(target), _gt(gt)
{}
HDT_2_Circular_arc_2(const Point& p1, const Point& p2,
const Traits& gt = Traits())
: _gt(gt)
{
Cplx p(p1), q(p2);
Cplx O(0,0);
Cplx inv;
if(p == O)
inv = q.invert_in_unit_circle();
else
inv = p.invert_in_unit_circle();
Point ip(inv.real(), inv.imag());
_c = Circle(p1, p2, ip);
if(_gt.orientation_2_object()(p1, p2, _c.center()) == LEFT_TURN)
{
_s = p1;
_t = p2;
}
else
{
_s = p2;
_t = p1;
}
}
Circle supporting_circle() const { return _c; }
Point source() const { return _s; }
Point target() const { return _t; }
FT squared_radius() const { return _c.squared_radius(); }
Point center() const { return _c.center(); }
Bbox_2 bbox(void) const { return _gt.construct_bbox_2_object()(*this); }
};
// only used internally
template <typename Traits>
class Construct_intersection_2
{
typedef typename Traits::FT FT;
typedef typename Traits::Hyperbolic_point_2 Hyperbolic_point_2;
typedef typename Traits::Hyperbolic_segment_2 Hyperbolic_segment_2;
typedef typename Traits::Euclidean_segment_2 Euclidean_segment_2;
typedef typename Traits::Euclidean_line_2 Euclidean_line_2;
typedef typename Traits::Circle_2 Circle_2;
typedef typename Traits::Circular_arc_2 Circular_arc_2;
public:
Construct_intersection_2(const Traits& gt = Traits()) : _gt(gt) { }
Hyperbolic_point_2 operator()(const Euclidean_line_2& /*ell1*/,
const Euclidean_line_2& /*ell2*/)
{
// The only point where two Euclidean lines can intersect in the Poincaré disk is the origin.
return Hyperbolic_point_2(0,0);
}
std::pair<Hyperbolic_point_2, Hyperbolic_point_2> operator()(const Euclidean_line_2& ell,
const Circle_2& c)
{
if(ell.b() == FT(0))
{
FT p = c.center().x();
FT q = c.center().y();
FT y1 = q + CGAL::sqrt(c.squared_radius() - p*p);
FT y2 = q - CGAL::sqrt(c.squared_radius() - p*p);
Hyperbolic_point_2 p1(FT(0), y1);
Hyperbolic_point_2 p2(FT(0), y2);
return std::make_pair(p1, p2);
}
FT lambda = -ell.a()/ell.b();
FT mu = -ell.c()/ell.b();
FT p = c.center().x();
FT q = c.center().y();
FT A = FT(1) + lambda*lambda;
FT B = FT(2)*(lambda * mu - lambda*q - p);
FT C = p*p + mu*mu + q*q - c.squared_radius() - FT(2)*q*mu;
FT Delta = B*B - FT(4)*A*C;
FT x1 = (-B + CGAL::sqrt(Delta))/(FT(2)*A);
FT x2 = (-B - CGAL::sqrt(Delta))/(FT(2)*A);
FT y1 = lambda*x1 + mu;
FT y2 = lambda*x2 + mu;
Hyperbolic_point_2 sol1(x1, y1);
Hyperbolic_point_2 sol2(x2, y2);
return std::make_pair(sol1, sol2);
}
std::pair<Hyperbolic_point_2, Hyperbolic_point_2> operator()(const Circle_2& c,
const Euclidean_line_2& ell)
{
return operator()(ell, c);
}
std::pair<Hyperbolic_point_2, Hyperbolic_point_2> operator()(const Circle_2& c1, const Circle_2& c2)
{
FT xa = c1.center().x(), ya = c1.center().y();
FT xb = c2.center().x(), yb = c2.center().y();
FT d2 = _gt.compute_squared_distance_2_object()(c1.center(), c2.center());
FT ra = CGAL::sqrt(c1.squared_radius());
FT rb = CGAL::sqrt(c2.squared_radius());
FT K = CGAL::sqrt(((ra+rb)*(ra+rb)-d2)*(d2-(ra-rb)*(ra-rb)))/FT(4);
FT xbase = (xb + xa)/FT(2) + (xb - xa)*(ra*ra - rb*rb)/d2/FT(2);
FT xdiff = FT(2)*(yb - ya)*K/d2;
FT x1 = xbase + xdiff;
FT x2 = xbase - xdiff;
FT ybase = (yb + ya)/FT(2) + (yb - ya)*(ra*ra - rb*rb)/d2/FT(2);
FT ydiff = FT(-2)*(xb - xa)*K/d2;
FT y1 = ybase + ydiff;
FT y2 = ybase - ydiff;
Hyperbolic_point_2 res1(x1, y1);
Hyperbolic_point_2 res2(x2, y2);
return std::make_pair(res1, res2);
}
Hyperbolic_point_2 operator()(Hyperbolic_segment_2 s1, Hyperbolic_segment_2 s2)
{
if(Circular_arc_2* c1 = boost::get<Circular_arc_2>(&s1))
{
if(Circular_arc_2* c2 = boost::get<Circular_arc_2>(&s2))
{
std::pair<Hyperbolic_point_2, Hyperbolic_point_2> res = operator()(c1->supporting_circle(), c2->supporting_circle());
Hyperbolic_point_2 p1 = res.first;
if(p1.x()*p1.x() + p1.y()*p1.y() < FT(1))
return p1;
Hyperbolic_point_2 p2 = res.second;
CGAL_assertion(p2.x()*p2.x() + p2.y()*p2.y() < FT(1));
return p2;
}
else
{
Euclidean_segment_2* ell2 = boost::get<Euclidean_segment_2>(&s2);
std::pair<Hyperbolic_point_2, Hyperbolic_point_2> res = operator()(c1->supporting_circle(),
ell2->supporting_line());
Hyperbolic_point_2 p1 = res.first;
if(p1.x()*p1.x() + p1.y()*p1.y() < FT(1))
return p1;
Hyperbolic_point_2 p2 = res.second;
CGAL_assertion(p2.x()*p2.x() + p2.y()*p2.y() < FT(1));
return p2;
}
}
else
{
Euclidean_segment_2* ell1 = boost::get<Euclidean_segment_2>(&s1);
if(Circular_arc_2* c2 = boost::get<Circular_arc_2>(&s2))
{
std::pair<Hyperbolic_point_2, Hyperbolic_point_2> res = operator()(ell1->supporting_line(),
c2->supporting_circle());
Hyperbolic_point_2 p1 = res.first;
if(p1.x()*p1.x() + p1.y()*p1.y() < FT(1))
return p1;
Hyperbolic_point_2 p2 = res.second;
CGAL_assertion(p2.x()*p2.x() + p2.y()*p2.y() < FT(1));
return p2;
}
else
{
Euclidean_segment_2* ell2 = boost::get<Euclidean_segment_2>(&s2);
Hyperbolic_point_2 p1 = operator()(ell1->supporting_line(), ell2->supporting_line());
CGAL_assertion(p1.x()*p1.x() + p1.y()*p1.y() < FT(1));
return p1;
}
}
}
private:
const Traits& _gt;
};
template <typename Traits>
class Construct_hyperbolic_circumcenter_2
{
typedef typename Traits::FT FT;
typedef typename Traits::Circle_2 Circle_2;
typedef typename Traits::Hyperbolic_point_2 Hyperbolic_point_2;
typedef typename Traits::Hyperbolic_Voronoi_point_2 Hyperbolic_Voronoi_point_2;
typedef typename Traits::Euclidean_line_2 Euclidean_line_2;
typedef typename Traits::Euclidean_circle_or_line_2 Euclidean_circle_or_line_2;
public:
typedef Hyperbolic_Voronoi_point_2 result_type;
Construct_hyperbolic_circumcenter_2(const Traits& gt = Traits()) : _gt(gt) {}
Hyperbolic_Voronoi_point_2 operator()(const Hyperbolic_point_2& p,
const Hyperbolic_point_2& q,
const Hyperbolic_point_2& r) const
{
Hyperbolic_point_2 po(CGAL::ORIGIN);
Circle_2 l_inf(po, FT(1));
Construct_circle_or_line_supporting_bisector<Traits> cclsb(_gt);
Construct_intersection_2<Traits> ci(_gt);
Euclidean_circle_or_line_2 bis_pq = cclsb(p, q);
Euclidean_circle_or_line_2 bis_qr = cclsb(q, r);
if(_gt.compare_distance_2_object()(po, p, q) == EQUAL &&
_gt.compare_distance_2_object()(po, p, r) == EQUAL)
return po;
// now supporting objects cannot both be Euclidean lines
Euclidean_line_2* l;
Circle_2* c;
if(Circle_2* c_pq = boost::get<Circle_2>(&bis_pq))
{
if(Circle_2* c_qr = boost::get<Circle_2>(&bis_qr))
{
std::pair<Hyperbolic_point_2, Hyperbolic_point_2> inters = ci(*c_pq, *c_qr);
if(_gt.has_on_bounded_side_2_object()(l_inf, inters.first))
return inters.first;
return inters.second;
}
l = boost::get<Euclidean_line_2>(&bis_qr);
c = c_pq;
}
else
{
// here bis_pq is a line
l = boost::get<Euclidean_line_2>(&bis_pq);
c = boost::get<Circle_2>(&bis_qr);
}
std::pair<Hyperbolic_point_2, Hyperbolic_point_2> inters = ci(*c, *l);
if(_gt.has_on_bounded_side_2_object()(l_inf, inters.first))
return inters.first;
return inters.second;
}
private:
const Traits& _gt;
}; // end Construct_hyperbolic_circumcenter_2
template <typename Traits>
class Construct_hyperbolic_bisector_2
{
typedef typename Traits::FT FT;
typedef typename Traits::Hyperbolic_point_2 Hyperbolic_point_2;
typedef typename Traits::Hyperbolic_segment_2 Hyperbolic_segment_2;
typedef typename Traits::Euclidean_segment_2 Euclidean_segment_2;
typedef typename Traits::Euclidean_line_2 Euclidean_line_2;
typedef typename Traits::Euclidean_circle_or_line_2 Euclidean_circle_or_line_2;
typedef typename Traits::Circle_2 Circle_2;
typedef typename Traits::Circular_arc_2 Circular_arc_2;
public:
Construct_hyperbolic_bisector_2(const Traits& gt = Traits())
: _gt(gt)
{}
// constructs a hyperbolic line
Hyperbolic_segment_2 operator()(const Hyperbolic_point_2& p,
const Hyperbolic_point_2& q) const
{
Construct_circle_or_line_supporting_bisector<Traits> cclsb(_gt);
Construct_intersection_2<Traits> ci(_gt);
Hyperbolic_point_2 po(CGAL::ORIGIN);
Circle_2 l_inf(po, FT(1));
if(_gt.compare_distance_2_object()(po, p, q) == EQUAL)
{
Euclidean_line_2 l = _gt.construct_bisector_2_object()(p, q);
std::pair<Hyperbolic_point_2, Hyperbolic_point_2> inters = ci(l, l_inf);
return Euclidean_segment_2(inters.first, inters.second);
}
Euclidean_circle_or_line_2 bis_pq = cclsb(p, q);
Circle_2* c = boost::get<Circle_2>(&bis_pq);
std::pair<Hyperbolic_point_2, Hyperbolic_point_2> inters = ci(*c, l_inf);
if(_gt.orientation_2_object()(c->center(), inters.first, inters.second) == POSITIVE)
return Circular_arc_2(*c, inters.first, inters.second);
else
return Circular_arc_2(*c, inters.second, inters.first);
}
// constructs the hyperbolic bisector of segment [p, q] limited by
// circumcenter(p, q, r) on one side
// and circumcenter(p, s, q) on the other side
Hyperbolic_segment_2 operator()(const Hyperbolic_point_2& p,
const Hyperbolic_point_2& q,
const Hyperbolic_point_2& r,
const Hyperbolic_point_2& s) const
{
CGAL_triangulation_precondition((_gt.orientation_2_object()(p, q, r) == ON_POSITIVE_SIDE) &&
(_gt.orientation_2_object()(p, s, q) == ON_POSITIVE_SIDE));
/*CGAL_triangulation_precondition((_gt.side_of_oriented_circle_2_object()(p, q, r,s) == ON_NEGATIVE_SIDE) &&
(_gt.side_of_oriented_circle_2_object()(p, s, q, r) == ON_NEGATIVE_SIDE));*/
Construct_hyperbolic_circumcenter_2<Traits> chc(_gt);
Construct_circle_or_line_supporting_bisector<Traits> cclsb(_gt);
Hyperbolic_point_2 po(CGAL::ORIGIN);
// TODO MT this is non-optimal...
// the bisector is already computed here
// and it will be recomputed below
Hyperbolic_point_2 a = chc(p, q, r);
Hyperbolic_point_2 b = chc(p, s, q);
if(_gt.compare_distance_2_object()(po, p, q) == EQUAL)
{
Euclidean_line_2 l = _gt.construct_bisector_2_object()(p, q);
return Euclidean_segment_2(a, b);
}
Euclidean_circle_or_line_2 bis_pq = cclsb(p, q);
Circle_2* c_pq = boost::get<Circle_2>(&bis_pq);
if(_gt.compare_distance_2_object()(po, p, q) == POSITIVE) {
// then p is inside the supporting circle
return Circular_arc_2(*c_pq, b, a);
}
return Circular_arc_2(*c_pq, a, b);
}
// constructs the hyperbolic bisector of segment [p, q]
// limited by hyperbolic circumcenter(p, q, r) on one side
// and going to the infinite line on the other side
Hyperbolic_segment_2 operator()(const Hyperbolic_point_2& p,
const Hyperbolic_point_2& q,
const Hyperbolic_point_2& r) const
{
CGAL_triangulation_precondition(_gt.orientation_2_object()(p, q, r) == POSITIVE);
Construct_circle_or_line_supporting_bisector<Traits> cclsb(_gt);
Construct_hyperbolic_circumcenter_2<Traits> chc(_gt);
Construct_intersection_2<Traits> ci(_gt);
Hyperbolic_point_2 po(CGAL::ORIGIN);
Circle_2 l_inf(po, FT(1));
// TODO MT this is non-optimal...
// the bisector is computed (at least) twice
Hyperbolic_point_2 a = chc(p, q, r);
if(_gt.compare_distance_2_object()(po, p, q) == EQUAL)
{
Euclidean_line_2 bis_pq = _gt.construct_bisector_2_object()(p, q);
std::pair<Hyperbolic_point_2,Hyperbolic_point_2> inters = ci(bis_pq, l_inf);
if(_gt.less_y_2_object()(p, q))
return Euclidean_segment_2(a,inters.first);
return Euclidean_segment_2(a,inters.second);
}
Euclidean_circle_or_line_2 bis_pq = cclsb(p, q);
Circle_2* c_pq = boost::get<Circle_2>(&bis_pq);
std::pair<Hyperbolic_point_2,Hyperbolic_point_2> inters = ci(*c_pq, l_inf);
Hyperbolic_point_2 approx_pinf = inters.first;
if(_gt.orientation_2_object()(p, q,inters.first) == NEGATIVE)
{
if(_gt.orientation_2_object()(c_pq->center(),a,inters.first) == POSITIVE)
return Circular_arc_2(*c_pq, a, inters.first);
return Circular_arc_2(*c_pq, inters.first, a);
}
if(_gt.orientation_2_object()(c_pq->center(),a,inters.first) == POSITIVE)
return Circular_arc_2(*c_pq, inters.second, a);
return Circular_arc_2(*c_pq, a, inters.second);
}
private:
const Traits& _gt;
}; // end Construct_hyperbolic_bisector_2
} // end namespace internal
template<typename Kernel = Exact_predicates_exact_constructions_kernel_with_sqrt>
class Hyperbolic_Delaunay_triangulation_traits_2
: public Kernel
{
typedef Hyperbolic_Delaunay_triangulation_traits_2<Kernel> Self;
typedef Kernel Base;
public:
typedef typename Kernel::FT FT;
typedef typename Kernel::Point_2 Hyperbolic_point_2;
typedef Hyperbolic_point_2 Hyperbolic_Voronoi_point_2;
typedef typename Kernel::Circle_2 Circle_2;
typedef typename Kernel::Line_2 Euclidean_line_2;
typedef boost::variant<Circle_2,Euclidean_line_2> Euclidean_circle_or_line_2;
typedef internal::HDT_2_Circular_arc_2<Self> Circular_arc_2;
typedef typename Kernel::Segment_2 Euclidean_segment_2; // only used internally here
typedef boost::variant<Circular_arc_2, Euclidean_segment_2> Hyperbolic_segment_2;
typedef typename Kernel::Triangle_2 Hyperbolic_triangle_2;
// only kept for demo to please T2graphicsitems
typedef Euclidean_segment_2 Line_segment_2;
typedef Hyperbolic_segment_2 Segment_2;
// The objects Ray_2, Iso_rectangle_2 and Line_2 are needed by the CGAL::Qt::PainterOstream
typedef typename Kernel::Direction_2 Direction_2;
typedef typename Kernel::Ray_2 Ray_2;
typedef Euclidean_line_2 Line_2;
typedef typename Kernel::Iso_rectangle_2 Iso_rectangle_2;
typedef internal::Construct_hyperbolic_segment_2<Self> Construct_hyperbolic_segment_2;
typedef typename Base::Construct_segment_2 Construct_segment_2;
typedef internal::Construct_hyperbolic_circumcenter_2<Self> Construct_hyperbolic_circumcenter_2;
typedef internal::Construct_hyperbolic_bisector_2<Self> Construct_hyperbolic_bisector_2;
typedef internal::Is_Delaunay_hyperbolic<Self> Is_Delaunay_hyperbolic;
typedef internal::Side_of_oriented_hyperbolic_segment_2<Self> Side_of_oriented_hyperbolic_segment_2;
// Needed for P4HT2
typedef typename Kernel::Construct_bisector_2 Construct_Euclidean_bisector_2;
typedef typename internal::Construct_intersection_2<Self> Construct_intersection_2;
typedef typename internal::Construct_circle_or_line_supporting_bisector<Self> Construct_circle_or_line_supporting_bisector;
typedef typename Kernel::Collinear_2 Euclidean_collinear_2;
typedef typename Kernel::Compute_squared_distance_2 Compute_squared_Euclidean_distance_2;
public:
Hyperbolic_Delaunay_triangulation_traits_2(const Base& kernel = Base())
: Base(kernel)
{}
Construct_hyperbolic_segment_2
construct_hyperbolic_segment_2_object() const
{ return Construct_hyperbolic_segment_2(*this); }
Construct_segment_2
construct_segment_2_object() const
{ return this->Base::construct_segment_2_object(); }
Construct_hyperbolic_circumcenter_2
construct_hyperbolic_circumcenter_2_object() const
{ return Construct_hyperbolic_circumcenter_2(*this); }
Construct_hyperbolic_bisector_2
construct_hyperbolic_bisector_2_object() const
{ return Construct_hyperbolic_bisector_2(*this); }
Is_Delaunay_hyperbolic
is_Delaunay_hyperbolic_2_object() const
{ return Is_Delaunay_hyperbolic(*this); }
Side_of_oriented_hyperbolic_segment_2
side_of_oriented_hyperbolic_segment_2_object() const
{ return Side_of_oriented_hyperbolic_segment_2(*this); }
Construct_Euclidean_bisector_2
construct_Euclidean_bisector_2_object() const
{ return this->Base::construct_bisector_2_object(); }
Construct_intersection_2
construct_intersection_2_object() const
{ return Construct_intersection_2(*this); }
Construct_circle_or_line_supporting_bisector
construct_circle_or_line_supporting_bisector_2_object() const
{ return Construct_circle_or_line_supporting_bisector(*this); }
Euclidean_collinear_2
euclidean_collinear_2_object() const
{ return this->Base::collinear_2_object(); }
Compute_squared_Euclidean_distance_2
compute_squared_Euclidean_distance_2_object() const
{ return this->Base::compute_squared_distance_2_object(); }
}; // class Hyperbolic_Delaunay_triangulation_traits_2
} // namespace CGAL
#endif // CGAL_HYPERBOLIC_DELAUNAY_TRIANGULATION_TRAITS_2_H