Add a histogram counter for 2d ray shooting (and fix a memory leak)
We currently shoot 3 rays in order to determine if a point is inside or outside a 2d polygon (with cuurved arcs). By adding a histogram we can see how often the 3 tests do not have the same result. If that happens rarely we may take a closer look to identify when this happens.
At the same time I replaced a new/delete
and another new
without delete
switching to std::array