def angle(point1, point2):
 angle = QLineF(point1, point2).angle()
 if (angle > 180):
  return (angle - 360)
 else:
  return angle

def angle ( point1 , point2 ) : angle = QLineF ( point1 , point2 ) . angle ( ) if ( angle > 180 ) : return ( angle - 360 ) else : return angle
return the angle between the two points in range from -180 to 180 .