Region.IsVisible(PointF) has very slow performance for large floating point values
I have run into a strange performance issue, and it would be great with an explanation to the behavior I'm experiencing. I'm using System.Drawing.Region.IsVisible(PointF) to determine if a point is inside a polygon. This usually works very well, but yesterday I noticed that the performance of the IsVisible method becomes very slow if the polygon is complex and it consists of large x- and y values. Below is some code to reproduce the issue (and an image that shows the shape of the polygon), sorry for the large array sizes, but the polygon needs to be quite complex before the issue appears. When