| 816 | //-------------------------------------------------------------------- |
| 817 | template <class Trans> |
| 818 | void transform(const Trans& trans, unsigned path_id = 0) |
| 819 | { |
| 820 | unsigned num_ver = m_vertices.total_vertices(); |
| 821 | for (; path_id < num_ver; path_id++) |
| 822 | { |
| 823 | double x, y; |
| 824 | unsigned cmd = m_vertices.vertex(path_id, &x, &y); |
| 825 | if (is_stop(cmd)) |
| 826 | break; |
| 827 | if (is_vertex(cmd)) |
| 828 | { |
| 829 | trans.transform(&x, &y); |
| 830 | m_vertices.modify_vertex(path_id, x, y); |
| 831 | } |
| 832 | } |
| 833 | } |
| 834 | |
| 835 | //-------------------------------------------------------------------- |
| 836 | template <class Trans> |
no test coverage detected