RectClipLines

Delphifunction RectClipLines64(const rect: TRect64; const subjects: TPaths64): TPathsD;

Delphifunction RectClipLinesD(const rect: TRectD; const subjects: TPathsD): TPathsD;


C++Paths64 RectClipLines64(const Rect64 rect, const Paths64& subjects);

C++PathsD RectClipLinesD(const RectD rect, const PathsD& subjects);


C# public static Paths64 RectClipLines64(Rect64 rect, Paths64 subjects);

C# public static PathsD RectClipLinesD(RectD rect, PathsD subjects);


RectClipLines64 and RectClipLinesD intersect open subject paths (polylines) with the specified rectangular clipping region.

These functions are extremely fast when compared to the Library's general purpose polygon clipper. Where the general purpose Intersect function has roughly O(n³) performance, RectClipLines has O(n) performance.


See Also

Intersect, RectClip, Paths64, PathsD, Rect64, RectD