summaryrefslogtreecommitdiff
path: root/src/Alpha_complex/include/gudhi/Alpha_complex/Alpha_kernel_d.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/Alpha_complex/include/gudhi/Alpha_complex/Alpha_kernel_d.h')
-rw-r--r--src/Alpha_complex/include/gudhi/Alpha_complex/Alpha_kernel_d.h11
1 files changed, 4 insertions, 7 deletions
diff --git a/src/Alpha_complex/include/gudhi/Alpha_complex/Alpha_kernel_d.h b/src/Alpha_complex/include/gudhi/Alpha_complex/Alpha_kernel_d.h
index 87604ec4..a3e3845a 100644
--- a/src/Alpha_complex/include/gudhi/Alpha_complex/Alpha_kernel_d.h
+++ b/src/Alpha_complex/include/gudhi/Alpha_complex/Alpha_kernel_d.h
@@ -71,8 +71,7 @@ class Alpha_kernel_d<Kernel, false> {
return sph.second;
}
- template<class Point>
- Point get_circumcenter(const Sphere& sph) const {
+ auto get_circumcenter(const Sphere& sph) const {
return sph.first;
}
@@ -117,13 +116,11 @@ class Alpha_kernel_d<Kernel, true> {
return sph.weight();
}
- template<class Point>
- Point get_circumcenter(const Sphere& sph) const {
- return sph.point();
+ auto get_circumcenter(const Sphere& sph) const {
+ return sph;
}
- template<class Point>
- FT get_squared_distance(const Point& first, const Point& second) const {
+ FT get_squared_distance(const Weighted_point_d& first, const Weighted_point_d& second) const {
return kernel_.power_distance_d_object()(first, second);
}
};