angle between two curves problems