MCPcopy Create free account
hub / github.com/Kitware/VTK / reverse_3d

Function reverse_3d

ThirdParty/libproj/vtklibproj/src/transformations/deformation.cpp:304–318  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

302
303
304static PJ_LPZ reverse_3d(PJ_XYZ in, PJ *P) {
305 struct deformationData *Q = (struct deformationData *) P->opaque;
306 PJ_COORD out;
307 out.xyz = in;
308
309 if (Q->dt == HUGE_VAL) {
310 out = proj_coord_error(); /* in the 3D case +t_obs must be specified */
311 proj_log_debug(P, "+dt must be specified");
312 return out.lpz;
313 }
314
315 out.xyz = reverse_shift(P, in, Q->dt);
316
317 return out.lpz;
318}
319
320static PJ_COORD reverse_4d(PJ_COORD in, PJ *P) {
321 struct deformationData *Q = (struct deformationData *) P->opaque;

Callers

nothing calls this directly

Calls 3

proj_coord_errorFunction · 0.85
proj_log_debugFunction · 0.85
reverse_shiftFunction · 0.85

Tested by

no test coverage detected