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

Method width

dep/agg/src/agg_line_profile_aa.cpp:22–39  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

20
21 //---------------------------------------------------------------------
22 void line_profile_aa::width(double w)
23 {
24 if(w < 0.0) w = 0.0;
25
26 if(w < m_smoother_width) w += w;
27 else w += m_smoother_width;
28
29 w *= 0.5;
30
31 w -= m_smoother_width;
32 double s = m_smoother_width;
33 if(w < 0.0)
34 {
35 s += w;
36 w = 0.0;
37 }
38 set(w, s);
39 }
40
41
42 //---------------------------------------------------------------------

Callers 6

attachMethod · 0.45
clearClipBoxMethod · 0.45
lineWidthMethod · 0.45
transformImageMethod · 0.45
transformImagePathMethod · 0.45
rewindMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected