40 #include <pcl/common/piecewise_linear_function.h>
56 float floored_vector_pos = std::floor(vector_pos);
57 float interpolation_size = vector_pos-floored_vector_pos;
58 int data_point_before = (std::max)(0, (std::min)(int(
data_points_.size())-2, int(lrint(floored_vector_pos))));
std::vector< float > data_points_
float getValue(float point) const
Get the value of the function at the given point.
PiecewiseLinearFunction(float factor, float offset)
Constructor.