finish the function which can determine the coordinates of alpha and beta
finish the function that can determine the slopes of points, alpha and beta.