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

Method init

renderers/agg/include/agg_span_gradient.h:208–214  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

206
207 //---------------------------------------------------------------------
208 void init(double r, double fx, double fy)
209 {
210 m_r = iround(r * gradient_subpixel_scale);
211 m_fx = iround(fx * gradient_subpixel_scale);
212 m_fy = iround(fy * gradient_subpixel_scale);
213 update_values();
214 }
215
216 //---------------------------------------------------------------------
217 double radius() const { return double(m_r) / gradient_subpixel_scale; }

Callers

nothing calls this directly

Calls 1

iroundFunction · 0.85

Tested by

no test coverage detected