xlifepp::subdivision – Functions – B#

barycenter#

Point xlifepp::subdivision::barycenter(const real_t *coef, const std::vector<Point> &VP)#

Computation of the barycenter of the points stored in the vector VP, with associated coefficients stored in coef.

barycenter of n points

Point xlifepp::subdivision::barycenter(const std::vector<real_t> &coef, const std::vector<Point> &VP)#

Computation of the barycenter of the points stored in the vector VP, with associated coefficients stored in coefn as std::vector.