Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
8
namespace
9
{
10
bool Collinear(PointD const & a, PointD const & b, double eps)
11
{
12
return std::fabs(CrossProduct(a, b)) < eps;
13
}
14
} // namespace
15
16
std::string DebugPrint(Line2D const & line)
Callers
1
Intersect
Function · 0.85
Calls
1
CrossProduct
Function · 0.70
Tested by
no test coverage detected