| 14 | |
| 15 | namespace py = pybind11; |
| 16 | void cstrProjection(py::module_&m) |
| 17 | { |
| 18 | py::class_<LNLib::Projection>(m, "Projection") |
| 19 | .def_static("PointToRay", &LNLib::Projection::PointToRay) |
| 20 | .def_static("PointToLine", [](const LNLib::XYZ& start, const LNLib::XYZ& end, const LNLib::XYZ& point) { |
| 21 | LNLib::XYZ projectPoint; |
| 22 | bool success = LNLib::Projection::PointToLine(start, end, point, projectPoint); |
| 23 | return py::make_tuple(success, projectPoint); |
| 24 | }) |
| 25 | .def_static("Stereographic", &LNLib::Projection::Stereographic); |
| 26 | } |