Region x = new Region(new Rectangle(1, 1, 3, 3)); Console.WriteLine("" + x.IsVisible(new PointF(0f, 0f))); // false Console.WriteLine("" + x.IsVisible(new PointF(0.49f, 0.49f))); // false Console.WriteLine("" + x.IsVisible(new PointF(0.5f, 0.5f))); // true! ** unexpected, should start at 1,1 Console.WriteLine("" + x.IsVisible(new PointF(3.49f, 3.49f))); //true Console.WriteLine("" + x.IsVisible(new PointF(3.5f, 3.5f))); // false! ** unexpected, apparently right on the edge is out
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)