While I don't fully understand the math behind it I'm able to draw curves on an HTML5 canvas using createjs and filling in my values:
bezierCurveTo(cp1x, cp1y, cp2x, cp2y, x, y);
Now what I'd like to do is take a dynamic set of user drawn points from the canvas and from the points determine the degree to which they are curving.
I'd like to store a value of how much the line is curving compared to a normal straight line. Any points in the right direction would be helpful. I feel I'm just not using the correct wording in my search.