Commit 235c80b4 authored by JasonChmn's avatar JasonChmn
Browse files

[piecewise_curve] Set MARGIN as a static const class variable

parent 3eb383ad
Pipeline #4774 passed with stage
in 1 minute and 25 seconds
......@@ -8,8 +8,6 @@
#ifndef _CLASS_PIECEWISE_CURVE
#define _CLASS_PIECEWISE_CURVE
#define MARGIN 1e-3
#include "curve_abc.h"
#include "curve_conversion.h"
......@@ -188,8 +186,12 @@ struct piecewise_curve : public curve_abc<Time, Numeric, Dim, Safe, Point>
t_time_t time_curves_; // for curves 0/1/2 : [ Tmin0, Tmax0,Tmax1,Tmax2 ]
std::size_t size_; // Number of segments in piecewise curve = size of curves_
Time T_min_, T_max_;
static const double MARGIN;
};
template<typename Time, typename Numeric, std::size_t Dim, bool Safe, typename Point, typename T_Point, typename Curve>
const double piecewise_curve<Time, Numeric, Dim, Safe, Point, T_Point, Curve>::MARGIN(0.001);
} // end namespace
......
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