src/main/java/de/javagl/geom/CatmullRomSpline.java
/**
     * Set the positions of the the control points so that they match
     * the given points. The number of points in the given list must 
     * be the same as the the number of points that was used to 
     * construct this spline.
     * 
     * @param points The control points
     * @throws IllegalArgumentException If the number of points in the
     * given list does not match the number of points that was given
     * in the constructor
     */
Set the positions of the the control points so that they match
the given points. The number of points in the given list must
be the same as the the number of points that was used to
construct this spline.

@param points The control points
@throws IllegalArgumentException If the number of points in the
given list does not match the number of points that was given
in the constructor
Set the positions of the the control points so that they match the given points . The number of points in the given list must be the same as the the number of points that was used to construct this spline . @param points The control points @throws IllegalArgumentException If the number of points in the given list does not match the number of points that was given in the constructor
public void updateControlPoints(List<? extends Point2D> points)
    {
        int numPoints = controlPoints.size() - (closed ? 3 : 2);
        if (points.size() != numPoints)
        {
            throw new IllegalArgumentException(
                "Expected "+numPoints+
                " points, but got "+points.size());
        }
        for (int j=0; j<points.size(); j++)
        {
            Point2D p = points.get(j);
            Point2D cp = controlPoints.get(j+1);
            cp.setLocation(p);
        }
        updateRequired = true;
    }
public void updateControlPoints ( List < ? extends Point2D > points ) { int numPoints = controlPoints . size ( ) - ( closed ? 3 : 2 ) ; if ( points . size ( ) != numPoints ) { throw new IllegalArgumentException ( "Expected " + numPoints + " points, but got " + points . size ( ) ) ; } for ( int j = 0 ; j < points . size ( ) ; j ++ ) { Point2D p = points . get ( j ) ; Point2D cp = controlPoints . get ( j + 1 ) ; cp . setLocation ( p ) ; } updateRequired = true ; }
Set the positions of the the control points so that they match
 the given points.
Set the positions of the the control points so that they match the given points .