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

Function perpendicular

src/svgfill/src/arrange_polygons.cpp:978–980  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

976}
977
978DDir perpendicular(const DDir& a) {
979 return DDir(-a.y(), a.x());
980}
981
982DDir canonicalize_like(const DDir& a, const DDir& ref) {
983 return (a * ref) < 0. ? -a : a;

Callers 3

rectangle_cornersFunction · 0.85
merge_cluster_to_boxFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected