diff --git a/vec2d.h b/vec2d.h index 924c801..7ad09d6 100644 --- a/vec2d.h +++ b/vec2d.h @@ -74,7 +74,7 @@ class vec2d { return {-y, x}; } - void draw(cairo_t* cr, vec2d p) { + void draw(cairo_t* cr, vec2d p) const { double arrow_lenght_ = 10 * vec2d::norm(*this); double arrow_degrees_ = .5;