# Generating bezier handles based on constraints [closed]

I want to try to emulate what this application can do:

Given the red round dots (from the mouse) it is able to solve for the bezier handles given that the tension of the curve is set to $0.6$. How could I solve for the bezier handles? Is there some way I could do this with the slope or perpendicular of the previous and next curve?

Thanks

*I should also add that each point is equidistant meaning point $i + 1$ is the distance to point $i$ or point $i + 2$.

-

## closed as unclear what you're asking by ᴡᴏʀᴅs, Batominovski, graydad, Solid Snake, ClaytonAug 18 '15 at 1:50

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question.If this question can be reworded to fit the rules in the help center, please edit the question.

With no image, it's impossible to know what the (now-deleted) user was asking about. – ᴡᴏʀᴅs Aug 17 '15 at 23:12

From the graphic, it appears that the handles at a given point $p_k$ are parallel to the line through $p_{k-1}$ and $p_{k+1}$ and that the lengths of the handles at every point are equal. I suspect that the length of the handles is determined by the "tension" that you mention.