src/Elements/Geometry/Polyline.cs
/// <summary>
/// Construct a clipper path from a Polygon.
/// </summary>
/// <param name="p"></param>
/// <returns></returns>
Construct a clipper path from a Polygon.
Construct a clipper path from a Polygon .
internal static List<IntPoint> ToClipperPath(this Polyline p)
        {
            var path = new List<IntPoint>();
            foreach (var v in p.Vertices)
            {
                path.Add(new IntPoint(v.X * Polyline.CLIPPER_SCALE, v.Y * Polyline.CLIPPER_SCALE));
            }
            return path;
        }
internal static List < IntPoint > ToClipperPath ( this Polyline p ) { var path = new List < IntPoint > ( ) ; foreach ( var v in p . Vertices ) { path . Add ( new IntPoint ( v . X * Polyline . CLIPPER_SCALE , v . Y * Polyline . CLIPPER_SCALE ) ) ; } return path ; }
Construct a clipper path from a Polygon.
Construct a clipper path from a Polygon .
None
Polyline
this
p
None