Universal Robots Forum

Equation behind time based movements

I am developing a plugin that handles a 7th axes. I would like to know how Polyscope calculates the acceleration and speed during a time based movement (like 3 seconds for 90degree on the base).
I realized that under 45degrees it uses triangle form and above 45degrees it uses trapezoid, but I have no idea what is the equation behind the datas and it would be really important for my formula.

Has anybody worked with this problem?