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 frkstyc at 2005-06-05 11:07:00 on Problem 1191
In Reply To:FT,这个算的是什么? Posted by:js05 at 2005-06-05 11:05:31
			double x, y, r, a, t, xl, xr;
			scanf("%lf %lf %lf", &x, &y, &r);
			a = atan2(y - Y, x - X);
			t = asin(r / hypot(x - X, y - Y));
			xl = X - Y * safe_cot(a - t);
			xr = X - Y * safe_cot(a + t);
			rec[2 * i].x = xl;
			rec[2 * i].sign = 1;
			rec[2 * i + 1].x = xr;
			rec[2 * i + 1].sign = -1;

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