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

Function LNLIB_PROJ_point_to_line

dotnet/CAPI/src/Projection_CAPI.cpp:25–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23}
24
25int LNLIB_PROJ_point_to_line(
26 XYZ_C start,
27 XYZ_C end,
28 XYZ_C point,
29 XYZ_C* project_point
30)
31{
32 LNLib::XYZ proj;
33 bool success = LNLib::Projection::PointToLine(ToXYZ(start), ToXYZ(end), ToXYZ(point), proj);
34 if (success && project_point) {
35 *project_point = FromXYZ(proj);
36 }
37 return success ? 1 : 0;
38}
39
40XYZ_C LNLIB_PROJ_stereographic(
41 XYZ_C point_on_sphere,

Callers

nothing calls this directly

Calls 2

ToXYZFunction · 0.85
FromXYZFunction · 0.85

Tested by

no test coverage detected