Skip to content
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

Avoid rendering zero-length vectors in VectorField #165

Merged
merged 1 commit into from
May 31, 2024

Conversation

stevenpetryk
Copy link
Owner

@stevenpetryk stevenpetryk commented 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.

Copy link

vercel bot commented May 31, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
mafs ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 31, 2024 11:51pm

@stevenpetryk stevenpetryk marked this pull request as ready for review May 31, 2024 23:49
@stevenpetryk stevenpetryk merged commit 808ad2f into main May 31, 2024
8 checks passed
@stevenpetryk stevenpetryk deleted the vector-field-zero-vectors branch May 31, 2024 23:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

"simple" vector field plot not displaying many points
1 participant