Commit 593aa255 authored by twanvl's avatar twanvl

compatibility with wxWdigets 2.9+: Vector2D::operator *(int) to prevent ambiguous conversion errors

parent e30e4152
......@@ -61,6 +61,9 @@ class Vector2D {
inline Vector2D operator * (double r) const {
return Vector2D(x * r, y * r);
}
inline Vector2D operator * (int r) const {
return Vector2D(x * r, y * r);
}
/// Multiply with a scalar
inline void operator *= (double r) {
x *= r; y *= r;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment