The function linear_interpolation computes the weighted sum of the function values which must be provided via a functor.
#include <CGAL/interpolation_functions.h>
| ||||
| ||||
| ||||
ForwardIterator::value_type
is a pair associating a point to a (non-normalized) barycentric
coordinate. norm is the normalization factor. Given a point,
the functor function_values allows to access a pair of a
function value and a boolean. The boolean indicates whether the
function value could be retrieved correctly. This function generates
the interpolated function value as the weighted sum of the values
corresponding to each point of the point/coordinate pairs in the
range first, beyond. Precondition: norm . function_value(p).second == true for all points p of the point/coordinate pairs in the range first, beyond. |