public ParameterizedOperator operator ( double ... controlPoints ) { if ( controlPoints . length != 2 * length ) { throw new IllegalArgumentException ( "control-points length not " + length ) ; } return operator ( controlPoints , 0 ) ; }
Creates Bezier function for fixed control points . Note that it is not same if you pass an array or separate parameters . Array is not copied so if you modify it it will make change . If you want to have function with immutable control points use separate parameters or copy the array .