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

Function pipeline_reverse

ThirdParty/libproj/vtklibproj/src/pipeline.cpp:264–282  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

262
263
264static PJ_LP pipeline_reverse (PJ_XY xy, PJ *P) {
265 PJ_COORD point = {{0,0,0,0}};
266 point.xy = xy;
267 auto pipeline = static_cast<struct Pipeline*>(P->opaque);
268 for( auto iterStep = pipeline->steps.rbegin();
269 iterStep != pipeline->steps.rend(); ++iterStep )
270 {
271 const auto& step = *iterStep;
272 if( !step.omit_inv )
273 {
274 point = pj_approx_2D_trans (step.pj, PJ_INV, point);
275 if( point.xyzt.x == HUGE_VAL ) {
276 break;
277 }
278 }
279 }
280
281 return point.lp;
282}
283
284
285

Callers

nothing calls this directly

Calls 3

pj_approx_2D_transFunction · 0.85
rbeginMethod · 0.80
rendMethod · 0.80

Tested by

no test coverage detected