src/main/java/com/mxgraph/util/mxCurve.java
public mxPoint intersectsRectPerimeter(String index, mxRectangle rect)
	{
		mxPoint result = null;
		mxPoint[] pointsCurve = getCurvePoints(index);

		if (pointsCurve != null && pointsCurve.length > 1)
		{
			int crossingSeg = intersectRectPerimeterSeg(index, rect);

			if (crossingSeg != -1)
			{
				result = intersectRectPerimeterPoint(index, rect, crossingSeg);
			}
		}

		return result;
	}
/**
	 * Returns the point at which this curve intersects the boundary of 
	 * the given rectangle, if it does so. If it does not intersect, 
	 * null is returned. If it intersects multiple times, the first 
	 * intersection from the start end of the curve is returned.
	 * 
	 * @param index the curve index specifying the curve to analyse
	 * @param rect the whose boundary is to be tested for intersection
	 * with this curve
	 * @return the point at which this curve intersects the boundary of 
	 * the given rectangle, if it does so. If it does not intersect, 
	 * null is returned.
	 */
Returns the point at which this curve intersects the boundary of
the given rectangle, if it does so. If it does not intersect,
null is returned. If it intersects multiple times, the first
intersection from the start end of the curve is returned.

@param index the curve index specifying the curve to analyse
@param rect the whose boundary is to be tested for intersection
with this curve
@return the point at which this curve intersects the boundary of
the given rectangle, if it does so. If it does not intersect,
null is returned.
Returns the point at which this curve intersects the boundary of the given rectangle if it does so . If it does not intersect null is returned . If it intersects multiple times the first intersection from the start end of the curve is returned . @param index the curve index specifying the curve to analyse @param rect the whose boundary is to be tested for intersection with this curve @return the point at which this curve intersects the boundary of the given rectangle if it does so . If it does not intersect null is returned .
public mxPoint intersectsRectPerimeter(String index, mxRectangle rect)
	{
		mxPoint result = null;
		mxPoint[] pointsCurve = getCurvePoints(index);
		if (pointsCurve != null && pointsCurve.length > 1)
		{
			int crossingSeg = intersectRectPerimeterSeg(index, rect);
			if (crossingSeg != -1)
			{
				result = intersectRectPerimeterPoint(index, rect, crossingSeg);
			}
		}
		return result;
	}
public mxPoint intersectsRectPerimeter ( String index , mxRectangle rect ) { mxPoint result = null ; mxPoint [ ] pointsCurve = getCurvePoints ( index ) ; if ( pointsCurve != null && pointsCurve . length > 1 ) { int crossingSeg = intersectRectPerimeterSeg ( index , rect ) ; if ( crossingSeg != - 1 ) { result = intersectRectPerimeterPoint ( index , rect , crossingSeg ) ; } } return result ; }
Returns the point at which this curve intersects the boundary of
 the given rectangle, if it does so.
Returns the point at which this curve intersects the boundary of the given rectangle if it does so .