| 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 |
no test coverage detected