I might be missing something, but I think the GPSR implementations are wrong (in both cpp, cx,#, js).
It return the direction vectors instead of a path:
ret.Add(new Vector(m));
for (int i = 1; i < resampled.Count; i++)
{
Vector delta = resampled[i] - resampled[i - 1];
ret.Add(delta.Normalize());
}
return ret;
I think it should be more like:
ret.Add(ret[ret.count - 1] + delta.Normalize());
I might be missing something, but I think the GPSR implementations are wrong (in both cpp, cx,#, js).
It return the direction vectors instead of a path:
I think it should be more like: