//参数说明://RectA、RectB:给定屏幕上的两个矩形(隐含了大小和位置条件)
//AIsEllips、BIsEllips:值为TRUE表示RectA和RectB是两个椭圆的外接矩形
//&PointA、&PointB:用来返回连接RectA、RectB中心的连线和RectA、RectB的交点坐标,如果AIsEllips、BIsEllips为TRUE则计算的是与RectA、RectB的内接椭圆的交点
PointOfIntersection(CRect RectA,CRect RectB,BOOL AIsEllips,BOOL BIsEllips,CPoint &PointA,CPoint &PointB)
{
}
//调用示例:
CRect rctA(10,10,35,45);
CRect rctB(100,100,105,85);
CPoint pointA(0,0);
CPoint pointB(0,0);PointOfIntersection(rctA,rctB,TRUE,TRUE,pointA,pointB);//两个矩形
或 PointOfIntersection(rctA,rctB,TRUE,FALSE,pointA,pointB);//一个矩形和一个椭圆
或 PointOfIntersection(rctA,rctB,FALSE,TRUE,pointA,pointB);//一个椭圆和一个矩形
或 PointOfIntersection(rctA,rctB,FALSE,FALSE,pointA,pointB);//两个椭圆