| 332 | typedef enum { Pin, Qin, Unknown } tInFlag; |
| 333 | |
| 334 | static int areaSign( Point2f a, Point2f b, Point2f c ) |
| 335 | { |
| 336 | static const double eps = 1e-5; |
| 337 | double area2 = (b.x - a.x) * (double)(c.y - a.y) - (c.x - a.x ) * (double)(b.y - a.y); |
| 338 | return area2 > eps ? 1 : area2 < -eps ? -1 : 0; |
| 339 | } |
| 340 | |
| 341 | //--------------------------------------------------------------------- |
| 342 | // Returns true iff point c lies on the closed segement ab. |
no outgoing calls
no test coverage detected