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

Function project_onto_curve

src/ifcgeom/taxonomy.cpp:817–820  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

815 }
816
817 double project_onto_curve(const circle::ptr& c, const point3& p) {
818 Eigen::Vector2d xy = (c->matrix->ccomponents().inverse() * p.ccomponents().homogeneous()).head<2>();
819 return std::atan2(xy(1), xy(0));
820 }
821}
822
823

Callers 1

Calls 1

inverseMethod · 0.80

Tested by

no test coverage detected