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