Skip to main content
. 2021 Oct 19;21(20):6937. doi: 10.3390/s21206937
Algorithm 1: Algorithm to find the accident zone
1: procedure ACCIDENT ZONE (xs(t), ys(t), R, xr, yr)
// location of vehicle in accident, R-Range and Range coordinates
2:  ds(t) = (xrxst2+yryst2)
3:  while ds(t) ⇐ R/2 do
4:    Read Accident Zone from [(xst,yst, xstR2,ystR2]
5:  while ds(t) > R/2 do
6:    B(t) = R − ds(t);
7:    Get Bxt and Byt;
8:    Read Accident Zone from xst,yst,Bxt,Byt