scripts/lane.py
def calculate_slope(self):
    """ Calculates slope of a line."""
    if abs(self.x2 - self.x1) == 0:
      return math.inf
    return (self.y2 - self.y1) / (self.x2 - self.x1)
 Calculates slope of a line.
Calculates slope of a line.
Calculates slope of a line .
def calculate_slope(self):
    if abs(self.x2 - self.x1) == 0:
      return math.inf
    return (self.y2 - self.y1) / (self.x2 - self.x1)
def calculate_slope ( self ) : if abs ( self . x2 - self . x1 ) == 0 : return math . inf return ( self . y2 - self . y1 ) / ( self . x2 - self . x1 )
Calculates slope of a line.
Calculates slope of a line .
""" Calculates slope of a line."""
self