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