Skip to content

Add math module.#91

Open
tychedelia wants to merge 2 commits intoprocessing:mainfrom
tychedelia:glam
Open

Add math module.#91
tychedelia wants to merge 2 commits intoprocessing:mainfrom
tychedelia:glam

Conversation

@tychedelia
Copy link
Member

Wraps glam in Python, allowing users to call most processing methods as either: foo(1.0, 3.0, 4.0) or foo(vec2(1.0, 3.0, 4.0)).

Allowing both is helpful -- users can use the vec types to do linalg stuff and avoid having to pass things as v.x, v.y, v.z, etc.

Converts most internal processing_render APIs to use glam rather than explicit f32 args. We should have done this from the start and avoids unnecessary conversions.

We don't currently have matrices here, but they can be added later.

@tychedelia tychedelia requested a review from catilac March 21, 2026 19:23
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