mirror of https://github.com/CGAL/cgal
Add squared radius for a point to make kernels model of the alpha shape traits class
This commit is contained in:
parent
fdcbcb04d3
commit
a89ffb7be3
|
|
@ -952,6 +952,14 @@ side_of_oriented_circle(const Point_2<K> &p,
|
|||
return CGALi::side_of_oriented_circle(p, q, r, t, K());
|
||||
}
|
||||
|
||||
template < class K >
|
||||
inline
|
||||
typename K::FT
|
||||
squared_radius(const Point_2<K> &p)
|
||||
{
|
||||
return CGALi::squared_radius(p, K());
|
||||
}
|
||||
|
||||
template < class K >
|
||||
inline
|
||||
typename K::FT
|
||||
|
|
|
|||
|
|
@ -991,6 +991,14 @@ squared_radius(const Point_3<K> &p, const Point_3<K> &q)
|
|||
return CGALi::squared_radius(p, q, K());
|
||||
}
|
||||
|
||||
template < class K >
|
||||
inline
|
||||
typename K::FT
|
||||
squared_radius(const Point_3<K> &p)
|
||||
{
|
||||
return CGALi::squared_radius(p, K());
|
||||
}
|
||||
|
||||
template < class K >
|
||||
inline
|
||||
typename K::Vector_3
|
||||
|
|
|
|||
|
|
@ -826,6 +826,14 @@ side_of_oriented_circle(const typename K::Point_2 &p,
|
|||
return k.side_of_oriented_circle_2_object()(p, q, r, t);
|
||||
}
|
||||
|
||||
template < class K >
|
||||
inline
|
||||
typename K::FT
|
||||
squared_radius(const typename K::Point_2 &p, const K &k)
|
||||
{
|
||||
return k.compute_squared_radius_2_object()(p);
|
||||
}
|
||||
|
||||
template < class K >
|
||||
inline
|
||||
typename K::FT
|
||||
|
|
|
|||
|
|
@ -779,6 +779,14 @@ squared_radius(const typename K::Point_3 &p,
|
|||
return k.compute_squared_radius_3_object()(p, q);
|
||||
}
|
||||
|
||||
template < class K >
|
||||
inline
|
||||
typename K::FT
|
||||
squared_radius(const typename K::Point_3 &p, const K &k)
|
||||
{
|
||||
return k.compute_squared_radius_3_object()(p);
|
||||
}
|
||||
|
||||
template < class K >
|
||||
inline
|
||||
typename K::FT
|
||||
|
|
|
|||
Loading…
Reference in New Issue