MCPcopy Create free account
hub / github.com/davidgiven/fluxengine / transform

Method transform

dep/agg/include/agg_trans_perspective.h:597–604  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

595
596 //------------------------------------------------------------------------
597 inline void trans_perspective::transform(double* px, double* py) const
598 {
599 double x = *px;
600 double y = *py;
601 double m = 1.0 / (x * w0 + y * w1 + w2);
602 *px = m * (x * sx + y * shx + tx);
603 *py = m * (x * shy + y * sy + ty);
604 }
605
606 //------------------------------------------------------------------------
607 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