MCPcopy Create free account
hub / github.com/BIMCoderLiang/LNLib / cstrProjection

Function cstrProjection

python/src/Construct/Projection.cpp:16–26  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14
15namespace py = pybind11;
16void 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}

Callers 1

constructFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected