MCPcopy Create free account
hub / github.com/OSGeo/PROJ / LargestAbsComponent

Function LargestAbsComponent

src/projections/s2.cpp:109–112  ·  view source on GitHub ↗

return the index of the largest component (fabs)

Source from the content-addressed store, hash-verified

107}
108// return the index of the largest component (fabs)
109static int LargestAbsComponent(const PJ_XYZ &p) {
110 PJ_XYZ temp = Abs(p);
111 return temp.x > temp.y ? temp.x > temp.z ? 0 : 2 : temp.y > temp.z ? 1 : 2;
112}
113
114// =================================================
115//

Callers 1

GetFaceFunction · 0.85

Calls 1

AbsFunction · 0.85

Tested by

no test coverage detected