traverse the path from the perspective of a point and add up the amount of turning along the way
if it made a full turn, it's inside
if it wound back to 0, it's outside
it's so neat~💖
plus it's real fast if you measure quadrant traversal rather than real angles~
more info here geomalgorithms.com/a03-_inclusion…
patreon.com/acegikmo
in this case it's kinda like asking if you should turn left or right to face something directly behind you!
there's no right answer, and it's entirely implementation-dependent
what if a point is outside the path yet completely surrounded by it?
even in this case, the algorithm still works~