Made the draw method of vec2d const so that compiler stops complaining
This commit is contained in:
parent
3c2335235e
commit
399949876f
2
vec2d.h
2
vec2d.h
@ -74,7 +74,7 @@ class vec2d {
|
|||||||
return {-y, x};
|
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_lenght_ = 10 * vec2d::norm(*this);
|
||||||
double arrow_degrees_ = .5;
|
double arrow_degrees_ = .5;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user