Add overloads of circumcenter() taking only 2 Point_2 (or Point_3),

that is, the same thing as midpoint(), but with a uniform notation.
Same thing for the corresponding functor.
This commit is contained in:
Sylvain Pion
2006-08-03 17:07:39 +00:00
parent 716899f7ed
commit f4be5b9920
14 changed files with 130 additions and 28 deletions
@@ -1732,6 +1732,13 @@ namespace CartesianKernelFunctors {
typedef Point_2 result_type;
typedef Arity_tag< 3 > Arity;
Point_2
operator()(const Point_2& p, const Point_2& q) const
{
typename K::Construct_midpoint_2 construct_midpoint_2;
return construct_midpoint_2(p, q);
}
result_type
operator()(const Point_2& p, const Point_2& q, const Point_2& r) const
{
@@ -1760,6 +1767,13 @@ namespace CartesianKernelFunctors {
typedef Point_3 result_type;
typedef Arity_tag< 4 > Arity;
Point_3
operator()(const Point_3& p, const Point_3& q) const
{
typename K::Construct_midpoint_3 construct_midpoint_3;
return construct_midpoint_3(p, q);
}
Point_3
operator()(const Point_3& p, const Point_3& q, const Point_3& r) const
{