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

Function evaluate_curve_d1

src/ifcgeom/taxonomy.cpp:812–815  ·  view source on GitHub ↗

@todo eliminate redundancy with cgal kernel

Source from the content-addressed store, hash-verified

810
811 // @todo eliminate redundancy with cgal kernel
812 void evaluate_curve_d1(const circle::ptr& c, double u, direction3& p) {
813 Eigen::Vector4d xy{ -std::sin(u), cos(u), 0, 0. };
814 p.components() = (c->matrix->ccomponents() * xy).head<3>();
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>();

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected