private static List <Polyline2D> smethod_7( Polyline2D[] borders, Point2D reference, Vector2D offset, Vector2D direction, double[] dashPattern, bool fillInterior) { IList <Segment2D[]> segment2DArrayList = (IList <Segment2D[]>)Class811.smethod_8(borders, reference, offset, direction, dashPattern, fillInterior); List <Polyline2D> polyline2DList = new List <Polyline2D>(); foreach (Segment2D[] segment2DArray in (IEnumerable <Segment2D[]>)segment2DArrayList) { foreach (Segment2D segment2D in segment2DArray) { Polyline2D polyline2D = new Polyline2D(); polyline2D.Add(new Point2D(segment2D.Start.X, segment2D.Start.Y)); if (segment2D.Start != segment2D.End) { polyline2D.Add(new Point2D(segment2D.End.X, segment2D.End.Y)); } polyline2DList.Add(polyline2D); } } return(polyline2DList); }
internal static IList smethod_4( Polyline2D[] borders, Point2D reference, double angle, double distance, bool fillInterior) { if (distance == 0.0) { throw new ArgumentException("Parameter distance must be unequal to 0."); } double x = System.Math.Cos(angle); double y = System.Math.Sin(angle); return((IList)Class811.smethod_8(borders, reference, new Vector2D(-distance * y, distance * x), new Vector2D(x, y), (double[])null, fillInterior)); }
internal static IList smethod_6( Polyline2D[] borders, Point2D reference, Vector2D offset, Vector2D direction, double[] dashPattern, bool fillInterior) { double length = direction.GetLength(); if (length == 0.0) { throw new ArgumentException("Parameter direction must be unequal to the (0, 0) vector."); } if (offset == Vector2D.Zero) { throw new ArgumentException("Parameter offset must be unequal to the (0, 0) vector."); } return((IList)Class811.smethod_8(borders, reference, offset, direction / length, dashPattern, fillInterior)); }