MCPcopy Create free account
hub / github.com/creatale/node-dv / areaSign

Function areaSign

deps/opencv/modules/imgproc/src/geometry.cpp:334–339  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

332typedef enum { Pin, Qin, Unknown } tInFlag;
333
334static 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.

Callers 2

parallelIntFunction · 0.85
intersectConvexConvex_Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected