Skip to content

GPSR sampling seems to be wrong #4

Description

@dil-zgaal

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());

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions