Online JudgeProblem SetAuthorsOnline ContestsUser
Web Board
Home Page
F.A.Qs
Statistical Charts
Problems
Submit Problem
Online Status
Prob.ID:
Register
Update your info
Authors ranklist
Current Contest
Past Contests
Scheduled Contests
Award Contest
User ID:
Password:
  Register

个人的思路

Posted by GreatAccepted at 2010-09-26 21:59:49 on Problem 1584 and last updated at 2010-09-26 22:00:41
是不是多边形就不说了。。。

判断圆是不是在多边形内。。。

首先判断圆心与多边形的关系
1.外部 return false
2.边上 if R == 0 return true else return false
3. 内部 继续判断 ==>

计算圆心到每一个边长的最短距离,如果存在一个最短距离是得其值比圆的半径“小”,说明是相交,则圆必有一部分在外面,而不能被包含 return false

否则 retur true

Followed by:

Post your reply here:
User ID:
Password:
Title:

Content:

Home Page   Go Back  To top


All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator