bool overlap = a.start < b.end && b.start < a.end;
Si on souhaite que les bornes soient inclues dans la collision, il faut mettre <=.
<=
Algorithm to detect overlapping periods Archive du 22/11/2012 le 25/10/2019