Skip to content

Add more vec methods/aliases and features.#152

Merged
tychedelia merged 2 commits intoprocessing:mainfrom
tychedelia:features/more-linalg
Apr 28, 2026
Merged

Add more vec methods/aliases and features.#152
tychedelia merged 2 commits intoprocessing:mainfrom
tychedelia:features/more-linalg

Conversation

@tychedelia
Copy link
Copy Markdown
Member

Adds a few things to our vec impls:

  • Aliases for the Processing4 names. I disagree strongly with some of these names but am going to make them available to assist porting sketches. I think aliases are fine and we can make a final decision (either to alias, make canonical, or remove later).
  • Adds some more functional methods like truncate and extend that are necessary in order to go from Vec2 to Vec3, etc.
  • Adds swizzles! These are dispatched dynamically and also allow easily changing dimensions, e.g. vec2.xxyy, etc.

@tychedelia tychedelia merged commit 56dba94 into processing:main Apr 28, 2026
1 of 4 checks passed
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.

1 participant