Function calculate_new_lenght

Function Documentation

std::pair<int, int> calculate_new_lenght(std::vector<std::array<float, 3>> cones, std::vector<int> right_configuration, std::vector<int> left_configuration, int right_intersection_index, int left_intersection_index)

Calculate the new lenght of the configurations.

Parameters:
  • cones – Vector of cones represented as arrays of three floats [x, y, type].

  • right_configurations – The calculated right configurations.

  • left_configurations – The calculated left configurations.

  • right_intersection_index – The index of the intersection in the right configuration.

  • left_intersection_index – The index of the intersection in the left configuration.

Returns:

A pair of integers containing the new right and left indices.