| 71 | } |
| 72 | |
| 73 | static 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 | |
| 91 | static PJ_COORD reverse_4d(PJ_COORD obs, PJ *P) { |
| 92 | struct hgridshiftData *Q = (struct hgridshiftData *) P->opaque; |
nothing calls this directly
no test coverage detected