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

Method scaling

dep/agg/src/agg_trans_affine.cpp:178–190  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

176
177 //------------------------------------------------------------------------
178 void trans_affine::scaling(double* x, double* y) const
179 {
180 double x1 = 0.0;
181 double y1 = 0.0;
182 double x2 = 1.0;
183 double y2 = 1.0;
184 trans_affine t(*this);
185 t *= trans_affine_rotation(-rotation());
186 t.transform(&x1, &y1);
187 t.transform(&x2, &y2);
188 *x = x2 - x1;
189 *y = y2 - y1;
190 }
191
192
193}

Callers

nothing calls this directly

Calls 2

transformMethod · 0.45

Tested by

no test coverage detected