Search found 1 match

by jutirain
Tue Sep 09, 2008 1:16 pm
Forum: Volume 4 (400-499)
Topic: 478 - Points in Figures: Rectangles, Circles, Triangles
Replies: 44
Views: 16119

478 WA... Help...

I've past 476 and 477 easily, but got several WA in 478...

I'm using (area(PAB) + area(PAC) + area(PBC) - area(ABC) < EPS) to judge if a point inside the triangle. Here's my code of critical session:

double triangle_area(double x0, double y0, double x1, double y1, double x2, double y2)
{
return ...

Go to advanced search