From 36ddec97f84f7317dc27d3e4cc73a488f83ef97b Mon Sep 17 00:00:00 2001 From: Barend Gehrels Date: Mon, 7 Dec 2015 20:18:05 +0100 Subject: [PATCH] sort_by_side: fix comments --- .../geometry/algorithms/detail/overlay/sort_by_side.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/include/boost/geometry/algorithms/detail/overlay/sort_by_side.hpp b/include/boost/geometry/algorithms/detail/overlay/sort_by_side.hpp index 0f014a62b..cecf950e3 100644 --- a/include/boost/geometry/algorithms/detail/overlay/sort_by_side.hpp +++ b/include/boost/geometry/algorithms/detail/overlay/sort_by_side.hpp @@ -176,7 +176,7 @@ struct side_sorter // Sort by side and assign rank std::sort(m_array.begin(), m_array.end(), - less_by_side(both1, both2)); + less_by_side(both1, both2));// TODO should be IP for (std::size_t i = 0; i < m_array.size(); i++) { m_array[i].rank = i; @@ -202,7 +202,7 @@ struct side_sorter { // // [1] A B (to) [2] - // \ | + // (from) \ | // \ | // \ | // \| @@ -211,10 +211,10 @@ struct side_sorter // | \ . // | \ . // | \ . - // | A [4] + // | A [4] (to) // S (from) - // Segments are sorted CCW w.r.t. S-IP (+) + // Segments are sorted CCW w.r.t. S -> IP (+) // B (polygon is on the right side) goes from right IP to top, there is // nothing in between. Here B is completely independent on Subject/A