Function Polygon.contains
Returns whether or not a given point is inside the polygon This algorithm uses scanlining (see Renderer.fillPolygon) Conceptually, it draws a ray to the left from the given point; if the ray intersects the polygon an odd number of times the point is within the polygon