| 836 | // --------------------------------------------------------------------------- |
| 837 | |
| 838 | static PJ_XYZ pj_gridshift_forward_3d(PJ_LPZ lpz, PJ *P) { |
| 839 | auto Q = static_cast<gridshiftData *>(P->opaque); |
| 840 | |
| 841 | if (!Q->loadGridsIfNeeded(P)) { |
| 842 | return proj_coord_error().xyz; |
| 843 | } |
| 844 | |
| 845 | PJ_XYZ xyz; |
| 846 | xyz.x = lpz.lam; |
| 847 | xyz.y = lpz.phi; |
| 848 | xyz.z = lpz.z; |
| 849 | |
| 850 | xyz = Q->apply(P, PJ_FWD, xyz); |
| 851 | |
| 852 | xyz.x += Q->m_offsetX; |
| 853 | xyz.y += Q->m_offsetY; |
| 854 | |
| 855 | return xyz; |
| 856 | } |
| 857 | |
| 858 | // --------------------------------------------------------------------------- |
| 859 |
nothing calls this directly
no test coverage detected