If two cars are moving in the same direction. let’s say ego car is in the front and another follower car. the speed, location in x, y coordinates of both cars are given.
How to calculates the distance between the cars in seconds? I have tried the following formula:
time = euclidean distance / (ego speed – follower speed), but something seems not correct.
Can anyone please answer?