// TODO semantic SJ, JR
// TODO implementation
// TODO test
// TODO documentation
/* Initialise paramForPoints with set of first Segment */
ParamForPoint paramForPoints = this.curveSegments.get(0)
.getParamForPoint(p);
double minDistanceSquare = AlgoPointND.getDistanceSquare(p.getCoordinate(), paramForPoints.getPosition().getCoordinate());
//double minDistanceSquare = ((DirectPositionImpl) p).distanceSquare(paramForPoints.getDirectPosition());
double actDistanceSquare = 0.0;
/* Loop all other segments and check if the distance of them is smaller */
for (int i = 1; i < this.curveSegments.size(); i++) {
ParamForPoint paramForPoints1 = this.curveSegments.get(i)
.getParamForPoint(p);
actDistanceSquare = AlgoPointND.getDistanceSquare(p.getCoordinate(), paramForPoints1.getPosition().getCoordinate());
//actDistanceSquare = ((DirectPositionImpl) p).distanceSquare(paramForPoints1.getDirectPosition());
if (actDistanceSquare <= minDistanceSquare) {
// TODO
// /* If other params are closer, clear list of params */