Made the draw method of vec2d const so that compiler stops complaining

This commit is contained in:
Karma Riuk 2023-05-17 13:20:40 +02:00
parent 3c2335235e
commit 399949876f

View File

@ -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;