Commit dde8663f authored by JasonChmn's avatar JasonChmn
Browse files

[Bezier_curve] Small fix on double comparison

parent 3e8d71d4
......@@ -334,7 +334,7 @@ struct bezier_curve : public curve_abc<Time, Numeric, Dim, Safe, Point>
return split(t2).first;
if (fabs(t2-T_max_))
if (fabs(t2-T_max_)<MARGIN)
return split(t1).second;
Supports Markdown
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