1: 2:
double angleInRadians = Math.Atan(y2-y1,x2-x1); double angleInDegrees = angleInRadians / Math.PI * 180.0f;