Class RectClip64
java.lang.Object
com.github.micycle1.clipper2.rectclip.RectClip64
- Direct Known Subclasses:
RectClipLines64
RectClip64 intersects subject polygons with the specified rectangular
clipping region. Polygons may be simple or complex (self-intersecting).
This function is extremely fast when compared to the Library's general purpose Intersect clipper. Where Intersect has roughly O(n³) performance, RectClip64 has O(n) performance.
- Since:
- 1.0.6
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static final classprotected static enumprotected static final classprotected static final class -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected com.github.micycle1.clipper2.rectclip.RectClip64.OutPt2protected com.github.micycle1.clipper2.rectclip.RectClip64.OutPt2protected voidexecuteInternal(Path64 path) protected static RectClip64.IntersectionResultgetIntersection(Path64 rectPath, Point64 p, Point64 p2, RectClip64.Location loc, Point64 ipRefObject) protected static RectClip64.LocationResultgetLocation(Rect64 r, Point64 pt) protected RectClip64.NextLocationResultgetNextLocation(Path64 path, RectClip64.Location loc, int i, int highI)
-
Field Details
-
rect_
-
mp_
-
rectPath_
-
pathBounds_
-
results_
-
edges_
-
currIdx_
protected int currIdx_
-
-
Constructor Details
-
RectClip64
-
-
Method Details
-
add
-
add
protected com.github.micycle1.clipper2.rectclip.RectClip64.OutPt2 add(Point64 pt, boolean startingNewPath) -
getLocation
-
getIntersection
protected static RectClip64.IntersectionResult getIntersection(Path64 rectPath, Point64 p, Point64 p2, RectClip64.Location loc, Point64 ipRefObject) -
getNextLocation
protected RectClip64.NextLocationResult getNextLocation(Path64 path, RectClip64.Location loc, int i, int highI) -
executeInternal
-
execute
-