double&nbsp;intersectsRectPerimeterDist&#8203;(java.lang.String&nbsp;index,
                                          <a href="mxRectangle.html" title="class in com.mxgraph.util">mxRectangle</a>&nbsp;rect)</pre>
<div class="block">Returns the distance from the start of the curve at which this 
 curve intersects the boundary of the given rectangle, if it does 
 so. If it does not intersect, -1 is returned. 
 If it intersects multiple times, the first intersection from 
 the start end of the curve is returned