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

Method scaling

dep/agg/include/agg_trans_perspective.h:752–764  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

750
751 //------------------------------------------------------------------------
752 void trans_perspective::scaling(double* x, double* y) const
753 {
754 double x1 = 0.0;
755 double y1 = 0.0;
756 double x2 = 1.0;
757 double y2 = 1.0;
758 trans_perspective t(*this);
759 t *= trans_affine_rotation(-rotation());
760 t.transform(&x1, &y1);
761 t.transform(&x2, &y2);
762 *x = x2 - x1;
763 *y = y2 - y1;
764 }
765
766 //------------------------------------------------------------------------
767 void trans_perspective::scaling_abs(double* x, double* y) const

Callers

nothing calls this directly

Calls 2

transformMethod · 0.45

Tested by

no test coverage detected