|
HighMap library (C++)
|
Class for performing curve interpolation on a set of points. More...
#include <interpolate_curve.hpp>
Public Member Functions | |
| InterpolatorCurve (std::vector< Point > points, InterpolationMethodCurve method=InterpolationMethodCurve::POINTS_LERP) | |
Constructs an InterpolatorCurve object. | |
| std::vector< Point > | operator() (std::vector< float > t) const |
| Performs interpolation over the provided parameter values. | |
Class for performing curve interpolation on a set of points.
The InterpolatorCurve class allows interpolation over a set of points using a specified interpolation method (Bezier, B-spline, Catmull-Rom, or linear interpolation).
| hmap::InterpolatorCurve::InterpolatorCurve | ( | std::vector< Point > | points, |
| InterpolationMethodCurve | method = InterpolationMethodCurve::POINTS_LERP |
||
| ) |
Constructs an InterpolatorCurve object.
Initializes the interpolator with a vector of points and an interpolation method.
| points | A vector of Point objects to interpolate. |
| method | The interpolation method to use. Default is POINTS_LERP. |
| std::vector< Point > hmap::InterpolatorCurve::operator() | ( | std::vector< float > | t | ) | const |
Performs interpolation over the provided parameter values.
Given a vector of parameter values t, this function returns a vector of interpolated points corresponding to those parameter values.
| t | A vector of parameter values, typically in the range [0, 1]. |
Point objects.