function clamp(v, min, max) {
                if (v < min) return min;
                if (v > max) return max;
                return v;
              }
@method quadError
@return {Number} the error

calculates the magnitude of error of this curve's
quadratic approximation.