/**
 * calculates a smooth ramp curve from 0 to 1 or 1 to 0 based on time t
  * - based on a derivative of an expanded polynomial (using binomial coefficients 1,1,5,1,1)
 * @param {Float} t current progress (also used for starting value)
 * @author Michael Smith
 * 
 * compression notes:
 * remove all comments and space
 * 
 */
function smoothRamp(t)
{
	var m = (1 - t);
	var x = t + 0.9 * m*t*t*t - m*m*m*t;
	// check for start or end out of range 
	if (t >= 1) {
		x = 1;
	}
	return x;
}


