Open Luzhiled opened 2 years ago
凸包をなすような点の元の配列での index が欲しい状況がよくあるので、それを内部実装として持つべきですね
AOJ 2950
一応書いたが、もっと簡潔に書けないか考えたほうがよさそう https://github.com/Luzhiled/comp-geometry/blob/959a679b34a7449337c308569a86008409d7f34f/src/convex_hull.hpp#L16-L62
凸包をなすような点の元の配列での index が欲しい状況がよくあるので、それを内部実装として持つべきですね