def heading_deg(self):
    ' Calculate heading in degrees of vector from origin '
    heading_rad = math.atan2(self.x, self.y)
    heading_deg_normalised = ((math.degrees(heading_rad) + 360) % 360)
    return heading_deg_normalised
Calculate heading in degrees of vector from origin
def heading_deg(self):
    '  '
    heading_rad = math.atan2(self.x, self.y)
    heading_deg_normalised = ((math.degrees(heading_rad) + 360) % 360)
    return heading_deg_normalised