Calculates the distance between every point in the track and the last point (target).
dist2target.3d(track)
a track data.frame containing x, y and z coordinates
A numeric vector with the distances to target
dist2target.3d(niclas)
#> [1] 113760.930 111464.912 109480.157 107366.045 106092.794 101412.913
#> [7] 95775.880 90973.994 87132.578 85343.898 82222.633 78295.705
#> [13] 74574.198 73005.726 71648.284 70716.833 66265.189 61230.013
#> [19] 56518.210 50951.786 48274.536 42820.076 39390.140 33523.444
#> [25] 28052.162 21952.562 15543.602 9886.572 5422.300 3247.638
#> [31] 0.000