MCPcopy Create free account
hub / github.com/PDAL/PDAL / cartesianToCurvilinear

Function cartesianToCurvilinear

pdal/util/Georeference.cpp:66–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

64
65
66Xyz cartesianToCurvilinear(const Xyz& point, double latitude)
67{
68 double w = std::sqrt(1 - e2 * std::sin(latitude) * std::sin(latitude));
69 double n = a / w;
70 double m = a * (1 - e2) / (w * w * w);
71 return Xyz(point.X / (n * std::cos(latitude)), point.Y / m, point.Z);
72}
73}
74
75

Callers 1

georeferenceWgs84Function · 0.85

Calls 1

XyzClass · 0.85

Tested by

no test coverage detected