In your calcDistance(…) subroutine is the Flag “this.is3D” already true for a 3D Pointlist with elevation and i can not change the Calc Algo like pointList.calcDistance(new DistanceCalc2D());
I just for fun to compare the different distance calculations.
Or how can I calculate from a 3D Pointlist the different distances otherwise?