borePoint.setBorePosition(point[0]);
double lastBorePosition = borePoint.getBorePosition();</BUG>
borePoint = (BorePoint) sortedPoints[referencePointNr() - 1];
double priorBorePosition = borePoint.getBorePosition();
<BUG>for (dimension = 1; dimension < nrDimensions; ++dimension)
{</BUG>
pointNr = borePointNr(dimension);
borePoint = (BorePoint) sortedPoints[pointNr - 1];
borePoint.setBorePosition(priorBorePosition
+ point[dimension] * (lastBorePosition - priorBorePosition));;

borePoint.setBorePosition(point[0]);
dimension = 1;
}
double lastBorePosition = borePoint.getBorePosition();
borePoint = (BorePoint) sortedPoints[referencePointNr() - 1];
double priorBorePosition = borePoint.getBorePosition();
for (; dimension < nrDimensions; ++dimension)
{
pointNr = borePointNr(dimension);
borePoint = (BorePoint) sortedPoints[pointNr - 1];
borePoint.setBorePosition(priorBorePosition
+ point[dimension] * (lastBorePosition - priorBorePosition));;
