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

Method calculate

renderers/agg/include/agg_span_gradient.h:317–320  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

315 {
316 public:
317 static AGG_INLINE int calculate(int x, int y, int d)
318 {
319 return uround(fabs(atan2(double(y), double(x))) * double(d) / pi);
320 }
321 };
322
323 //=================================================gradient_repeat_adaptor

Callers

nothing calls this directly

Calls 1

uroundFunction · 0.85

Tested by

no test coverage detected