摘要:
与坐标轴平行的矩形和圆的位置关系。 分两种情况。 圆与矩形交集不为空 此时答案为零。问题归结为如何判断圆与矩形交集不为空。 先排除矩形顶点在圆内或圆心在矩形内。 此时,若矩形与圆交集不为空,则必有矩形的某条边穿过圆(「穿过圆」也可表述为「割圆」,「线段穿过圆」的确切定义为「线段与圆周有两个交点」)。 阅读全文
「以解决问题为乐」
真的喜欢么?真的喜欢就去做吧。
Lost Boy Calling 。。。。
... Many of these issues are best dealt with at the algorithmic level, rather than by "tweaking" the code.
This is an obscurity that catches the unwary.
原来我什么都不懂。