Staticarc2arcStaticarc2circleStaticarc2lineStaticbox2boxReturns [mindist, maxdist] array of squared minimal and maximal distance between boxes Minimal distance by x is (box2.xmin - box1.xmax), if box1 is left to box2 (box1.xmin - box2.xmax), if box2 is left to box1 0, if box1 and box2 are intersected by x Minimal distance by y is defined in the same way
Maximal distance is estimated as a sum of squared dimensions of the merged box
[minDist, maxDist]
Staticcircle2circleStaticcircle2lineStaticdistanceStaticminThis function initializes the interval tree and starts the process by calling minMaxTreeProcessLevel. It returns the resulting interval tree.
StaticminStaticminCalculate estimated minimal and maxium distance between the shape and node in PlanarSet using box level by level. The minimum maxDistance is updated, nodes with minDist larger than minMax will be skipped. the estimated [minDist, maxDist] pair is inserted into the interval tree.
the updated minimum stop distance.
Staticpoint2arcStaticpoint2circleStaticpoint2lineStaticpoint2pointStaticpoint2polygonStaticpoint2segmentStaticsegment2arcStaticsegment2circleStaticsegment2lineStaticsegment2segmentStaticshape2planarStaticshape2polygonStaticsortSort array of [distance, segment] pairs by distance
sorted array of [distance, segment] pairs
Calculate distance and shortest segment between two arcs