Skip to content

docs(Vector): clarify 3-component nature of vectors in 2D usage - #9027

Open
yuvrajnode wants to merge 617 commits into
processing:mainfrom
yuvrajnode:fix/vector-docs-clarity
Open

docs(Vector): clarify 3-component nature of vectors in 2D usage#9027
yuvrajnode wants to merge 617 commits into
processing:mainfrom
yuvrajnode:fix/vector-docs-clarity

Conversation

@yuvrajnode

Copy link
Copy Markdown

Changes

This PR improves the documentation for p5.Vector.fromAngle() to clarify that p5.Vector objects internally store three components [x, y, z], even when used in a 2D context.

Key updates:

  • Added a note to fromAngle explaining the internal [x, y, z] storage and that z is set to 0 for 2D consistency.
  • Updated @example comments to explicitly mention that the z component is 0 in the output.
  • Improved the description of the second example to specify it creates a vector with a defined length.

These changes help developers understand why they might see a third component when printing vectors and ensures consistency in how vector behavior is described across the library.

PR Checklist

  • npm run lint passes
  • Inline reference is included / updated
  • Unit tests are included / updated (not applicable for documentation-only changes)

skools-here and others added 30 commits July 18, 2025 20:03
Changing URL which comes when user is not in WEBGL mode
…dd-mudit06mah

docs: add mudit06mah as a contributor for doc
…dd-acgillette

docs: add acgillette as a contributor for code
Fix parameter documentation for bezierPoint
…dd-shawdm

docs: add shawdm as a contributor for doc
…d-objects

Bring 2.0 stroke ordering fixes to 1.x
…dd-skools-here

docs: add skools-here as a contributor for code
Remove incorrect mouseX/mouseY docs regarding WEBGL mode
…dd-ericrav

docs: add ericrav as a contributor for doc
…block

Fix: Corrected code block formatting for textureMode()
yugalkaushik and others added 30 commits January 2, 2026 15:36
Signed-off-by: yugalkaushik <yugalkaushik14@gmail.com>
WebGL: Apply per‑vertex stroke color to POINTS
…dd-rakesh2OO5

docs: add rakesh2OO5 as a contributor for code
…dd-doradocodes

docs: add doradocodes as a contributor for review
…dd-Nwakaego-Ego

docs: add Nwakaego-Ego as a contributor for review
…dd-vietnguyen2358

docs: add vietnguyen2358 as a contributor for code
feat: add accTitle/accDescr to class diagram in WebGL architecture doc
…dd-shuklaaryan367-byte

docs: add shuklaaryan367-byte as a contributor for code
…e-warning-buildGeometry

Suppress stroke warnings during buildGeometry
Adding @Nwakaego-Ego and @doradocodes as stewards for the website! They participated in last year's [GSoC program](https://medium.com/@ProcessingOrg/google-summer-of-code-2025-wrap-up-and-mentor-summit-d1e565e9fe1f) and will take on responding to incoming issues and helping to review PRs.
Add Nwakaego-Ego and doradocodes to stewards.yml
chore: update README table from stewards.yml
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.