63 std::vector<Point> points,
75 std::vector<Point>
operator()(std::vector<float> t)
const;
78 std::vector<Point> points_data;
80 std::vector<float> arc_length;
81 std::function<
Point(
float)> interp;
95 void get_segment_interpolation_parameters(
float t,
size_t &ileft,
float &u);
InterpolatorCurve(std::vector< Point > points, InterpolationMethodCurve method=InterpolationMethodCurve::POINTS_LERP)
Constructs an InterpolatorCurve object.
Definition interpolate_curve.cpp:27
std::vector< Point > operator()(std::vector< float > t) const
Performs interpolation over the provided parameter values.
Definition interpolate_curve.cpp:191
A class to represent and manipulate 2D points that can carry a value.
Definition point.hpp:26
InterpolationMethodCurve
Enumeration for specifying the interpolation method for curves.
Definition interpolate_curve.hpp:35
@ DECASTELJAU
De Casteljau algorithm for Bézier curve computation.
Definition interpolate_curve.hpp:39
@ BSPLINE
B-spline interpolation.
Definition interpolate_curve.hpp:37
@ POINTS_LERP
Linear interpolation between points.
Definition interpolate_curve.hpp:40
@ BEZIER
Bezier curve interpolation.
Definition interpolate_curve.hpp:36
@ CATMULLROM
Catmull-Rom spline interpolation.
Definition interpolate_curve.hpp:38