mirror of https://github.com/CGAL/cgal
Reindent and removal of duplicate typedef for Circle_2
This commit is contained in:
parent
a6c33fecf6
commit
83cb1edf06
|
|
@ -1268,37 +1268,36 @@ namespace CircularFunctors {
|
||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
typedef typename CK::Circular_arc_2 Circular_arc_2;
|
typedef typename CK::Circular_arc_2 Circular_arc_2;
|
||||||
typedef typename CK::Circle_2 Circle_2;
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
#ifndef CGAL_CFG_MATCHING_BUG_6
|
#ifndef CGAL_CFG_MATCHING_BUG_6
|
||||||
typedef typename CK::Linear_kernel::Compute_squared_radius_2::result_type result_type;
|
typedef typename CK::Linear_kernel::Compute_squared_radius_2::result_type result_type;
|
||||||
using CK::Linear_kernel::Compute_squared_radius_2::operator();
|
using CK::Linear_kernel::Compute_squared_radius_2::operator();
|
||||||
#else
|
#else
|
||||||
|
|
||||||
typedef typename CK::Linear_kernel LK;
|
typedef typename CK::Linear_kernel LK;
|
||||||
typedef typename LK::Compute_squared_radius_2 LK_Compute_squared_radius_2;
|
typedef typename LK::Compute_squared_radius_2 LK_Compute_squared_radius_2;
|
||||||
typedef typename LK::FT FT;
|
typedef typename LK::FT FT;
|
||||||
typedef typename LK::Point_2 Point_2;
|
typedef typename LK::Point_2 Point_2;
|
||||||
typedef typename LK::Circle_2 Circle_2;
|
typedef typename LK::Circle_2 Circle_2;
|
||||||
public:
|
public:
|
||||||
typedef FT result_type;
|
typedef FT result_type;
|
||||||
|
|
||||||
const result_type&
|
const result_type&
|
||||||
operator()( const Circle_2& c) const
|
operator()( const Circle_2& c) const
|
||||||
{ return LK_Compute_squared_radius_2()(c); }
|
{ return LK_Compute_squared_radius_2()(c); }
|
||||||
|
|
||||||
result_type
|
result_type
|
||||||
operator()( const Point_2& p) const
|
operator()( const Point_2& p) const
|
||||||
{ return LK_Compute_squared_radius_2()(p); }
|
{ return LK_Compute_squared_radius_2()(p); }
|
||||||
|
|
||||||
result_type
|
result_type
|
||||||
operator()( const Point_2& p, const Point_2& q) const
|
operator()( const Point_2& p, const Point_2& q) const
|
||||||
{ return LK_Compute_squared_radius_2()(p, q); }
|
{ return LK_Compute_squared_radius_2()(p, q); }
|
||||||
|
|
||||||
result_type
|
result_type
|
||||||
operator()( const Point_2& p, const Point_2& q, const Point_2& r) const
|
operator()( const Point_2& p, const Point_2& q, const Point_2& r) const
|
||||||
{ return LK_Compute_squared_radius_2(p, q, r); }
|
{ return LK_Compute_squared_radius_2(p, q, r); }
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
@ -1306,7 +1305,7 @@ namespace CircularFunctors {
|
||||||
operator()(const Circular_arc_2& c) const
|
operator()(const Circular_arc_2& c) const
|
||||||
{ return c.rep().squared_radius(); }
|
{ return c.rep().squared_radius(); }
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace CircularFunctors
|
} // namespace CircularFunctors
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue