From 399949876f0432b7004050f2442cdfcdcaa974c8 Mon Sep 17 00:00:00 2001 From: Karma Riuk Date: Wed, 17 May 2023 13:20:40 +0200 Subject: [PATCH] Made the draw method of vec2d const so that compiler stops complaining --- vec2d.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;