Ho risolto!...
Per chi fosse interessato il risultato è:

alfa = (y2-y1)/(x2-x1)
gradi = atan(alfa)*180/PI // PI = P greco.