Skip to content

Conversation

@Geethegreat
Copy link
Contributor

@Geethegreat Geethegreat commented Dec 17, 2025

Resolves #8335

Changes:

Updated the JSDoc return type for p5.Vector.cross(v1, v2) to reflect its actual runtime behavior (returns p5.Vector).

PR Checklist

@welcome
Copy link

welcome bot commented Dec 17, 2025

🎉 Thanks for opening this pull request! For guidance on contributing, check out our contributor guidelines and other resources for contributors!
🤔 Please ensure that your PR links to an issue, which has been approved for work by a maintainer; otherwise, there might already be someone working on it, or still ongoing discussion about implementation. You are welcome to join the discussion in an Issue if you're not sure!
🌸 Once your PR is merged, be sure to add yourself to the list of contributors on the readme page !

Thank You!

Copy link
Contributor

@davepagurek davepagurek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Have you checked to see if this is an issue in p5 2.0 too? If so, are you interested in making a PR into the dev-2.0 branch with a similar update?

@Geethegreat
Copy link
Contributor Author

Yes, I checked and the same issue exists in the dev-2.0 branch as well.
I’d be happy to make a similar PR targeting dev-2.0.

@davepagurek davepagurek merged commit fca49c5 into processing:main Dec 18, 2025
2 checks passed
@davepagurek
Copy link
Contributor

@all-contributors please add @Geethegreat for code

@allcontributors
Copy link
Contributor

@davepagurek

I've put up a pull request to add @Geethegreat! 🎉

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.

[p5.js 2.0 Bug Report]: types say p5.Vector.cross(v1,v2) returns number not Vector (jsdoc+types only)

2 participants