From 325b2e2bb0b7d8f697bf6389fc7c09846b8e1fb3 Mon Sep 17 00:00:00 2001 From: Adam Wulkiewicz Date: Mon, 3 Mar 2014 18:19:37 +0100 Subject: [PATCH] get_turns(L,L) - TODO comment added --- .../detail/overlay/get_turn_info_for_endpoint.hpp | 6 ++++++ 1 file changed, 6 insertions(+) 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;