15 #ifndef AGG_PATH_LENGTH_INCLUDED 16 #define AGG_PATH_LENGTH_INCLUDED 22 template<
class VertexSource>
23 double path_length(VertexSource& vs,
unsigned path_id = 0)
36 while(!is_stop(cmd = vs.vertex(&x2, &y2)))
40 if(first || is_move_to(cmd))
47 len += calc_distance(x1, y1, x2, y2);
55 if(is_close(cmd) && !first)
57 len += calc_distance(x1, y1, start_x, start_y);