| 153 | // --------------------------------------------------------------------------- |
| 154 | |
| 155 | static PJ_COORD direct_adjustment(PJ *P, xyzgridshiftData *Q, PJ_COORD point, |
| 156 | double factor) { |
| 157 | PJ_COORD geodetic; |
| 158 | geodetic.lpz = pj_inv3d(point.xyz, Q->cart); |
| 159 | |
| 160 | double dx, dy, dz; |
| 161 | if (!get_grid_values(P, Q, geodetic.lp, dx, dy, dz)) { |
| 162 | return proj_coord_error(); |
| 163 | } |
| 164 | point.xyz.x += factor * dx; |
| 165 | point.xyz.y += factor * dy; |
| 166 | point.xyz.z += factor * dz; |
| 167 | return point; |
| 168 | } |
| 169 | |
| 170 | // --------------------------------------------------------------------------- |
| 171 |
no test coverage detected