src/main/java/de/javagl/geom/CatmullRomSpline.java
/**
     * Update the positions of the interpolated points, based on the
     * current positions of the control points
     */
Update the positions of the interpolated points, based on the
current positions of the control points
Update the positions of the interpolated points based on the current positions of the control points
private void updateInterpolatedPoints()
    {
        int numPoints = controlPoints.size() - 2;
        for (int i=0; i<numPoints - 1; i++)
        {
            int stepsInCurrentSegment = stepsPerSegment;
            int lastStepInSegment = stepsInCurrentSegment;
            if (i == numPoints - 2)
            {
                stepsInCurrentSegment++;
                lastStepInSegment = stepsInCurrentSegment-1;
            }
            updateInterpolatedPoints(
                i, stepsInCurrentSegment, lastStepInSegment);
        }
    }
private void updateInterpolatedPoints ( ) { int numPoints = controlPoints . size ( ) - 2 ; for ( int i = 0 ; i < numPoints - 1 ; i ++ ) { int stepsInCurrentSegment = stepsPerSegment ; int lastStepInSegment = stepsInCurrentSegment ; if ( i == numPoints - 2 ) { stepsInCurrentSegment ++ ; lastStepInSegment = stepsInCurrentSegment - 1 ; } updateInterpolatedPoints ( i , stepsInCurrentSegment , lastStepInSegment ) ; } }
Update the positions of the interpolated points, based on the
 current positions of the control points
Update the positions of the interpolated points based on the current positions of the control points