Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Fix setHeading behavior for non-2D p5.Vector instances#8330

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
aashu2006 wants to merge1 commit intoprocessing:main
base:main
Choose a base branch
Loading
fromaashu2006:branch_akshat

Conversation

@aashu2006
Copy link

@aashu2006aashu2006 commentedDec 15, 2025
edited
Loading

Resolves#8215

Changes:

  • Restrictp5.Vector.prototype.setHeading() to vectors with a zero or undefined z component.
  • Throw an error whensetHeading() is called on vectors with a non-zero z value.
  • Added unit tests to cover invalid-dimension behavior.

Screenshots of the change:
N/A (non-visual change)

PR Checklist

  • npm run lint passes
  • [Inline reference] is included / updated
  • [Unit tests] are included / updated

@aashu2006
Copy link
Author

Happy to adjust this if a different error behavior or messaging is preferred.

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

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

[2.x] Fix dimensional quirk in thesetHeading() method ofp5.Vector

1 participant

@aashu2006

[8]ページ先頭

©2009-2025 Movatter.jp