I am trying to figure out a mathematical way to identify if a point lies inside a polygon that I draw with turtle. I am trying to only use turtle and math library to achieve this. I am not using classes either.
However the problem I am facing with the Ray casting method for example is that this means would I have to store equation of line of every side of polygon that I draw into a list before I can cast a line with my input point and check for intersection line by line? Or is there a more efficient way to do this? Unfortunately turtle does not have collision detection so I cannot do it that way.