43 courant = (std::vector<double> *) NULL;
44 baryc = (std::vector<double> *) NULL;
45 minim = (std::vector<double> *) NULL;
137 std::cout <<
"pbl inform" << std::endl ;
145 std::vector<double> *tmp;
186 std::cout <<
"pbl next" << std::endl ;
190 for (i=0; i<
size; i++) {
191 dd = (*courant)[0] - (*baryc)[0];
199 return (std::vector<double> *) NULL;
209 std::vector<double> *res;
213 for (i=0; i<
size; i++) {
214 tmp = (centr[
i]-pt[
i] > 0.0) ?
215 (1.0 - centr[
i]) / (centr[i] - pt[i]) :
216 centr[
i] / (pt[
i] - centr[
i]) ;
217 coef = (coef < tmp) ? coef : tmp ;
220 res =
new std::vector<double>(
size);
221 for (i=0; i<
size; i++)
222 (*res)[
i] = centr[
i] + coef * (centr[
i] - pt[
i]);
226 std::vector<double> *
Point::milieu(std::vector<double> &un, std::vector<double> &deux)
229 std::vector<double> *res;
231 res =
new std::vector<double>(
size);
232 for (i=0; i<
size; i++)
233 (*res)[
i] = (un[
i] + deux[
i])/2.0;