26 typedef typename Cost_policy<EdgeProfile>::Cost_type Cost_type;
27 typedef typename EdgeProfile::Point Point;
29 Cost_type operator()(
const EdgeProfile& profile,
const boost::optional<Point>& placement)
const override {
31 auto p0_coord = profile.p0().begin();
32 auto p1_coord = profile.p1().begin();
33 for (; p0_coord != profile.p0().end(); p0_coord++, p1_coord++) {
34 res += (*p0_coord - *p1_coord) * (*p0_coord - *p1_coord);