internal static bool IsInside(Point2D p, Polyline4D polyline) { if (polyline == null) { return(false); } return((0 + Class749.smethod_1(new Ray2D(p, Vector2D.XAxis), polyline)) % 2 == 1); }
internal static bool IsInside(Point2D p, IEnumerable <Polyline4D> polylines) { if (polylines == null) { return(false); } int num = 0; Ray2D ray = new Ray2D(p, Vector2D.XAxis); foreach (Polyline4D polyline in polylines) { num += Class749.smethod_1(ray, polyline); } return(num % 2 == 1); }