Class InternalClipper
java.lang.Object
com.github.micycle1.clipper2.core.InternalClipper
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic longcheckCastInt64(double val) static voidcheckPrecision(int precision) static doublecrossProduct(Point64 pt1, Point64 pt2, Point64 pt3) static doublecrossProduct(PointD vec1, PointD vec2) static intcrossProductSign(Point64 pt1, Point64 pt2, Point64 pt3) static doubledotProduct(Point64 pt1, Point64 pt2, Point64 pt3) static doubledotProduct(PointD vec1, PointD vec2) static Rect64static Point64getClosestPtOnSegment(Point64 offPt, Point64 seg1, Point64 seg2) static booleanDeprecated.static booleanstatic booleanstatic booleanstatic booleanisAlmostZero(double value) static booleanisCollinear(Point64 pt1, Point64 sharedPt, Point64 pt2) Given three points, returns true if they are collinear.static booleanpath2ContainsPath1(Path64 path1, Path64 path2) static PointInPolygonResultpointInPolygon(Point64 pt, Path64 polygon) static booleansegsIntersect(Point64 seg1a, Point64 seg1b, Point64 seg2a, Point64 seg2b) static booleansegsIntersect(Point64 seg1a, Point64 seg1b, Point64 seg2a, Point64 seg2b, boolean inclusive)
-
Field Details
-
MAX_COORD
public static final double MAX_COORD- See Also:
-
MIN_COORD
public static final double MIN_COORD- See Also:
-
-
Method Details
-
checkPrecision
public static void checkPrecision(int precision) -
isAlmostZero
public static boolean isAlmostZero(double value) -
crossProduct
-
crossProductSign
-
dotProduct
-
crossProduct
-
dotProduct
-
checkCastInt64
public static long checkCastInt64(double val) -
getLineIntersectPt
-
getLineIntersectPt
-
getSegmentIntersectPt
-
getIntersectPoint
@Deprecated public static boolean getIntersectPoint(Point64 ln1a, Point64 ln1b, Point64 ln2a, Point64 ln2b, Point64 ip) Deprecated. -
segsIntersect
-
segsIntersect
-
getClosestPtOnSegment
-
pointInPolygon
-
isCollinear
Given three points, returns true if they are collinear. -
getBounds
-
path2ContainsPath1
-