main.py
def angle_diff(self, a, b):
        """Returns the smallest distance between 2 angles
        """
        # TODO #modulo 2pi et recuperer l'angle le plus petit !
        d = a - b
        d = ((d + math.pi) % (2 * math.pi)) - math.pi
        return d
Returns the smallest distance between 2 angles
        
Returns the smallest distance between 2 angles
Returns the smallest distance between 2 angles
def angle_diff(self, a, b):
        d = a - b
        d = ((d + math.pi) % (2 * math.pi)) - math.pi
        return d
def angle_diff ( self , a , b ) : d = a - b d = ( ( d + math . pi ) % ( 2 * math . pi ) ) - math . pi return d
Returns the smallest distance between 2 angles
Returns the smallest distance between 2 angles
"""Returns the smallest distance between 2 angles
        """ # TODO #modulo 2pi et recuperer l'angle le plus petit !
self
a
b