Skip to content

fix: correct parallelogram visualization for vector subtraction - #341

Merged
mattqdev merged 1 commit into
physicshub:mainfrom
iamjaysingh:fix-vector-subtraction-parallelogram
Jun 6, 2026
Merged

fix: correct parallelogram visualization for vector subtraction#341
mattqdev merged 1 commit into
physicshub:mainfrom
iamjaysingh:fix-vector-subtraction-parallelogram

Conversation

@iamjaysingh

Copy link
Copy Markdown
Contributor

Fixes #87

The parallelogram subtraction visualization was drawing a spurious line
from the tip of vector A to the tip of vector B, which had no geometric
meaning and made the diagram look broken.

Removed the incorrect p.line() call so the visualization now correctly
shows B and -A as adjacent sides of the parallelogram, with the diagonal
R = B + (-A) as the resultant.

@vercel

vercel Bot commented Jun 4, 2026

Copy link
Copy Markdown

@iamjaysingh is attempting to deploy a commit to the PhysicsHub's projects Team on Vercel.

A member of the Team first needs to authorize it.

@iamjaysingh

Copy link
Copy Markdown
Contributor Author

Hi @mattqdev! I've fixed the parallelogram subtraction bug from issue #87.
Would love to get your feedback whenever you get a chance!

@mattqdev
mattqdev merged commit 6247b32 into physicshub:main Jun 6, 2026
1 of 2 checks passed
@mattqdev

mattqdev commented Jun 6, 2026

Copy link
Copy Markdown
Collaborator

thank you @iamjaysingh !

@physicshub

Copy link
Copy Markdown
Owner

🎉 This PR is included in version 3.29.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: In VectorsOperation Simulation, Subtraction with Parallelogram method is bugged

3 participants