Calculation of the pursuit curve length