void operator() (line_string<T> const& ls1, line_string<T> const& ls2) const { if (ls1.size() != ls2.size()) { REQUIRE(false); } for(auto const& p : zip_crange(ls1, ls2)) { REQUIRE(p.template get<0>().x == Approx(p.template get<1>().x)); REQUIRE(p.template get<0>().y == Approx(p.template get<1>().y)); } }
result_type operator() (line_string<T> const& line) const { if (line.empty()) { // Prevent an empty line_string from segfaulting in boost geometry 1.58 // once it is fixed this can be removed // https://svn.boost.org/trac/boost/ticket/11709 return true; } return boost::geometry::is_simple(line); }
line_string_vertex_adapter<T>::line_string_vertex_adapter(line_string<T> const& line) : line_(line), current_index_(0), end_index_(line.size()) {}