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

Function evaluate_curve

src/ifcgeom/taxonomy.cpp:806–809  ·  view source on GitHub ↗

@todo eliminate redundancy with cgal kernel

Source from the content-addressed store, hash-verified

804namespace {
805 // @todo eliminate redundancy with cgal kernel
806 void evaluate_curve(const circle::ptr& c, double u, point3& p) {
807 Eigen::Vector4d xy{ c->radius * std::cos(u), c->radius * std::sin(u), 0, 1. };
808 p.components() = (c->matrix->ccomponents() * xy).head<3>();
809 }
810
811 // @todo eliminate redundancy with cgal kernel
812 void evaluate_curve_d1(const circle::ptr& c, double u, direction3& p) {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected