MCPcopy Create free account
hub / github.com/comaps/comaps / Collinear

Function Collinear

libs/geometry/line2d.cpp:10–13  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8namespace
9{
10bool Collinear(PointD const & a, PointD const & b, double eps)
11{
12 return std::fabs(CrossProduct(a, b)) < eps;
13}
14} // namespace
15
16std::string DebugPrint(Line2D const & line)

Callers 1

IntersectFunction · 0.85

Calls 1

CrossProductFunction · 0.70

Tested by

no test coverage detected