Exemple #1
0
            public static double GetScanLineY(Polygon poly)
            {
                var finder = new ScanLineYOrdinateFinder(poly);

                return(finder.GetScanLineY());
            }
Exemple #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="InteriorPointPolygon"/> class.
 /// </summary>
 /// <param name="polygon">The polygon to test.</param>
 public InteriorPointPolygon(Polygon polygon)
 {
     _polygon        = polygon;
     _interiorPointY = ScanLineYOrdinateFinder.GetScanLineY(polygon);
 }