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

Method flip_y

dep/agg/include/agg_path_storage.h:1443–1455  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1441 //------------------------------------------------------------------------
1442 template <class VC>
1443 void path_base<VC>::flip_y(double y1, double y2)
1444 {
1445 unsigned i;
1446 double x, y;
1447 for (i = 0; i < m_vertices.total_vertices(); i++)
1448 {
1449 unsigned cmd = m_vertices.vertex(i, &x, &y);
1450 if (is_vertex(cmd))
1451 {
1452 m_vertices.modify_vertex(i, x, y2 - y + y1);
1453 }
1454 }
1455 }
1456
1457 //------------------------------------------------------------------------
1458 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