+ add close(x,y) method to geometry

This commit is contained in:
artemp 2012-07-26 15:21:25 +01:00
parent ec2d0cc210
commit 1b805abc23

View file

@ -121,6 +121,11 @@ public:
push_vertex(x,y,SEG_MOVETO); push_vertex(x,y,SEG_MOVETO);
} }
void close(coord_type x, coord_type y)
{
push_vertex(x,y,SEG_CLOSE);
}
unsigned vertex(double* x, double* y) const unsigned vertex(double* x, double* y) const
{ {
return cont_.get_vertex(itr_++,x,y); return cont_.get_vertex(itr_++,x,y);