diff --git a/include/boost/geometry/algorithms/detail/overlay/get_turn_info_for_endpoint.hpp b/include/boost/geometry/algorithms/detail/overlay/get_turn_info_for_endpoint.hpp index 65fd800b2..8b63fde9a 100644 --- a/include/boost/geometry/algorithms/detail/overlay/get_turn_info_for_endpoint.hpp +++ b/include/boost/geometry/algorithms/detail/overlay/get_turn_info_for_endpoint.hpp @@ -415,6 +415,9 @@ struct get_turn_info_for_endpoint equal::apply(i2_conv, i1, j1, i2, j2, k2, tp, result.template get<0>(), result.template get<1>(), side_calc); +// TODO: must the above be calculated? +// wouldn't it be enough to check if segments are collinear? + if ( tp.both(operation_continue) ) { bool opposite = result.template get<1>().opposite; @@ -459,6 +462,9 @@ struct get_turn_info_for_endpoint equal::apply(j2_conv, j1, i1, i2, j2, k2, tp, result.template get<0>(), result.template get<1>(), side_calc); +// TODO: must the above be calculated? +// wouldn't it be enough to check if segments are collinear? + if ( tp.both(operation_continue) ) { bool opposite = result.template get<1>().opposite;