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

Method flip_y

renderers/agg/include/agg_path_storage.h:1369–1381  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1367 //------------------------------------------------------------------------
1368 template<class VC>
1369 void path_base<VC>::flip_y(double y1, double y2)
1370 {
1371 unsigned i;
1372 double x, y;
1373 for(i = 0; i < m_vertices.total_vertices(); i++)
1374 {
1375 unsigned cmd = m_vertices.vertex(i, &x, &y);
1376 if(is_vertex(cmd))
1377 {
1378 m_vertices.modify_vertex(i, x, y2 - y + y1);
1379 }
1380 }
1381 }
1382
1383 //------------------------------------------------------------------------
1384 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