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

Function forward_4d

ThirdParty/libproj/vtklibproj/src/transformations/hgridshift.cpp:73–89  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

71}
72
73static PJ_COORD forward_4d(PJ_COORD obs, PJ *P) {
74 struct hgridshiftData *Q = (struct hgridshiftData *) P->opaque;
75 PJ_COORD point = obs;
76
77 /* If transformation is not time restricted, we always call it */
78 if (Q->t_final==0 || Q->t_epoch==0) {
79 point.xyz = forward_3d (obs.lpz, P);
80 return point;
81 }
82
83 /* Time restricted - only apply transform if within time bracket */
84 if (obs.lpzt.t < Q->t_epoch && Q->t_final > Q->t_epoch)
85 point.xyz = forward_3d (obs.lpz, P);
86
87
88 return point;
89}
90
91static PJ_COORD reverse_4d(PJ_COORD obs, PJ *P) {
92 struct hgridshiftData *Q = (struct hgridshiftData *) P->opaque;

Callers

nothing calls this directly

Calls 1

forward_3dFunction · 0.70

Tested by

no test coverage detected