public static double GetScanLineY(Polygon poly) { var finder = new ScanLineYOrdinateFinder(poly); return(finder.GetScanLineY()); }
/// <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); }