bSplines.c
// Function to increase value of a knot.
// Increments are made first to knotsTimes10 to work with integers and
// avoid round-off error problems.

Function to increase value of a knot.
Increments are made first to knotsTimes10 to work with integers and
avoid round-off error problems.
Function to increase value of a knot . Increments are made first to knotsTimes10 to work with integers and avoid round - off error problems .
void increaseKnot(int i)
{
	if ( (i < 8) )
	{
		if (knotsTimes10[i] < knotsTimes10[i+1]) knotsTimes10[i] += 1;
		else 
		{
			increaseKnot(i+1);
			if (knotsTimes10[i] < knotsTimes10[i+1]) knotsTimes10[i] += 1;
		}
	}
	if ( (i == 8 )  && ( knotsTimes10[i] < 80) ) knotsTimes10[i] += 1;
	changeKnots();
}
void increaseKnot ( int i ) { if ( ( i < 8 ) ) { if ( knotsTimes10 [ i ] < knotsTimes10 [ i + 1 ] ) knotsTimes10 [ i ] += 1 ; else { increaseKnot ( i + 1 ) ; if ( knotsTimes10 [ i ] < knotsTimes10 [ i + 1 ] ) knotsTimes10 [ i ] += 1 ; } } if ( ( i == 8 ) && ( knotsTimes10 [ i ] < 80 ) ) knotsTimes10 [ i ] += 1 ; changeKnots ( ) ; }
Function to increase value of a knot.
Function to increase value of a knot .