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