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

Method hline_to

renderers/agg/src/agg_svg_path_renderer.cpp:88–98  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

86
87 //------------------------------------------------------------------------
88 void path_renderer::hline_to(double x, bool rel) // H, h
89 {
90 double x2 = 0.0;
91 double y2 = 0.0;
92 if(m_storage.total_vertices())
93 {
94 m_storage.vertex(m_storage.total_vertices() - 1, &x2, &y2);
95 if(rel) x += x2;
96 m_storage.line_to(x, y2);
97 }
98 }
99
100 //------------------------------------------------------------------------
101 void path_renderer::vline_to(double y, bool rel) // V, v

Callers

nothing calls this directly

Calls 3

total_verticesMethod · 0.45
vertexMethod · 0.45
line_toMethod · 0.45

Tested by

no test coverage detected