def update_properties(self):
        """
        Recalculate static properties, after changing related ones
        Returns: None

        """
        super(StraightLane, self).__init__(self.metadrive_type)
        self.length = norm((self.end - self.start)[0], (self.end - self.start)[1])
        self.heading = math.atan2(self.end[1] - self.start[1], self.end[0] - self.start[0])
        self.direction = (self.end - self.start) / self.length
        self.direction_lateral = np.array([self.direction[1], -self.direction[0]])

        Recalculate static properties, after changing related ones
        Returns: None

        
metadrive/component/lane/straight_lane.py