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