-
Notifications
You must be signed in to change notification settings - Fork 944
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
along returns a point that is not found by pointOnLine #691
Comments
Nice to do: Can you use ```javascript to style your Markdown codeblocks (my eyes are bad at differentiating comments vs. code blocks). I also noticed location =
I would assume if the start point & closest point are the same, then the "distance along the line" would be |
I'm sorry, but I don't have a test setup for this repo. I'll try after the release and reopen if this is still an issue. |
Added tests for this issue, |
When I generate a point using the along function the pointOnLine function does not see this point as on line. It also returns a NaN value for location.
Example:
The resulting pointOnLine value looks like this:
It is not documented that location can become NaN.
I would assume that the pointOnLine should match the pointAlong. This is the case if I pass for example the point [8, 50]. The result is:
The text was updated successfully, but these errors were encountered: