You are given a batch of 2D waypoint trajectories.
points
with shape
[B, N, 2]
, where
points[b][i] = (x, y)
is the i-th waypoint for batch item
b
.
rem
with shape
[B, N]
.
For each batch item b and waypoint index i, define rem[b][i] as the remaining path length from waypoint i to the end, computed as the suffix sum of Euclidean segment lengths:
Also define rem[b][N-1] = 0.
N = 1
.