const vector<TrackType::Endpoint> &eps = type.get_endpoints();
const vector<TrackType::Endpoint> &other_eps = other.get_type().get_endpoints();
const vector<TrackType::Endpoint> &eps = type.get_endpoints();
const vector<TrackType::Endpoint> &other_eps = other.get_type().get_endpoints();