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

Method flip_x

renderers/agg/include/agg_path_storage.h:1353–1365  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1351 //------------------------------------------------------------------------
1352 template<class VC>
1353 void path_base<VC>::flip_x(double x1, double x2)
1354 {
1355 unsigned i;
1356 double x, y;
1357 for(i = 0; i < m_vertices.total_vertices(); i++)
1358 {
1359 unsigned cmd = m_vertices.vertex(i, &x, &y);
1360 if(is_vertex(cmd))
1361 {
1362 m_vertices.modify_vertex(i, x2 - x + x1, y);
1363 }
1364 }
1365 }
1366
1367 //------------------------------------------------------------------------
1368 template<class VC>

Callers

nothing calls this directly

Calls 4

is_vertexFunction · 0.85
total_verticesMethod · 0.45
vertexMethod · 0.45
modify_vertexMethod · 0.45

Tested by

no test coverage detected