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

Method flip_x

dep/agg/include/agg_path_storage.h:1427–1439  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1425 //------------------------------------------------------------------------
1426 template <class VC>
1427 void path_base<VC>::flip_x(double x1, double x2)
1428 {
1429 unsigned i;
1430 double x, y;
1431 for (i = 0; i < m_vertices.total_vertices(); i++)
1432 {
1433 unsigned cmd = m_vertices.vertex(i, &x, &y);
1434 if (is_vertex(cmd))
1435 {
1436 m_vertices.modify_vertex(i, x2 - x + x1, y);
1437 }
1438 }
1439 }
1440
1441 //------------------------------------------------------------------------
1442 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