get_turns(L,L) - TODO comment added

This commit is contained in:
Adam Wulkiewicz
2014-03-03 18:19:37 +01:00
parent 4fd21c2fa7
commit 325b2e2bb0

View File

@@ -415,6 +415,9 @@ struct get_turn_info_for_endpoint
equal<TurnInfo>::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<TurnInfo>::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;