Commit 7d3dba99 authored by twanvl's avatar twanvl

compatibility with wxWdigets 2.9+: Vector2D: prevent ambiguous conversion errors

parent 4ff3c320
...@@ -41,7 +41,7 @@ class BezierCurve { ...@@ -41,7 +41,7 @@ class BezierCurve {
/// Return the tangent on this curve at time t in [0...1) /// Return the tangent on this curve at time t in [0...1)
inline Vector2D tangentAt(double t) const { inline Vector2D tangentAt(double t) const {
return c + ((b * 2) + (a * 3) * t) * t; return c + ((b * 2.) + (a * 3.) * t) * t;
} }
}; };
......
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