Skip to content

Commit

Permalink
Fixed Approxinate_2::operator()(const Point_2&)
Browse files Browse the repository at this point in the history
  • Loading branch information
efifogel committed May 29, 2023
1 parent facc592 commit 2159476
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2935,8 +2935,10 @@ class Arr_geodesic_arc_on_sphere_traits_2 : public Kernel_ {
/*! Obtain an approximation of a point.
*/
Approximate_point_2 operator()(const Point_2& p) const {
return Approximate_point_2(operator()(p, 0), operator()(p, 1),
operator()(p, 2));
Approximate_kernel::Direction_3 dir(operator()(p, 0), operator()(p, 1),
operator()(p, 2));
auto loc = static_cast<Approximate_point_2::Location_type>(p.location());
return Approximate_point_2(dir, loc);
}

/*! Obtain an approximation of an \f$x\f$-monotone curve.
Expand Down

0 comments on commit 2159476

Please sign in to comment.