-
Notifications
You must be signed in to change notification settings - Fork 91
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
"simple" vector field plot not displaying many points #164
Comments
stevenpetryk
added a commit
that referenced
this issue
May 31, 2024
stevenpetryk
added a commit
that referenced
this issue
May 31, 2024
Closes #164. `vec.normalize([0,0])` returns `[NaN, NaN]` (which is perhaps not great? perhaps `vec.normalize`'s return value should be nullable or something). Anyway, those NaNs were making their way into the SVG path, breaking it.
Thanks @stevenpetryk !! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @stevenpetryk! I was playing around with some vector field examples, and noticed that some simple functions, like
([x, y]) => [x, y]
or similar versions with[y, x]
,[y, -x]
etc, all failed to fill in values in 3 quadrants:Here's a stackblitz reproducing the problem:
https://stackblitz.com/edit/react-aqgdx6?file=src%2Findex.tsx
and the code:
If I change the step size to a non-multiple-of-0.25, like
0.25001
, then 2 more quadrants appear but the top right is missing:I don't see anything in the Stackblitz logs. Apologies if there is something obvious I'm not seeing in this example!
The text was updated successfully, but these errors were encountered: