MCPcopy Create free account
hub / github.com/MapServer/MapServer / transform

Method transform

renderers/agg/include/agg_trans_perspective.h:570–577  ·  view source on GitHub ↗

------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

568
569 //------------------------------------------------------------------------
570 inline void trans_perspective::transform(double* px, double* py) const
571 {
572 double x = *px;
573 double y = *py;
574 double m = 1.0 / (x*w0 + y*w1 + w2);
575 *px = m * (x*sx + y*shx + tx);
576 *py = m * (x*shy + y*sy + ty);
577 }
578
579 //------------------------------------------------------------------------
580 inline void trans_perspective::transform_affine(double* x, double* y) const

Callers 2

inverse_transformMethod · 0.45
scalingMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected