MCPcopy Create free account
hub / github.com/IfcOpenShell/IfcOpenShell / canonicalize_like

Function canonicalize_like

src/svgfill/src/arrange_polygons.cpp:982–984  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

980}
981
982DDir canonicalize_like(const DDir& a, const DDir& ref) {
983 return (a * ref) < 0. ? -a : a;
984}
985
986DPoint to_double_point(const Point_2& p) {
987 return {CGAL::to_double(p.x()), CGAL::to_double(p.y())};

Callers 2

runs_from_graphFunction · 0.85
merge_cluster_to_boxFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected