Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Small Vector Ergonomics Issue #39

Merged
merged 12 commits into from
Sep 25, 2024
Merged

Small Vector Ergonomics Issue #39

merged 12 commits into from
Sep 25, 2024

Conversation

maplant
Copy link
Owner

@maplant maplant commented Sep 24, 2024

This changes the default representation of small (N = 2, 3, 4) vectors to be fixed structs, allowing the fields of the vector to be made more readily accessible.

I think this is nice, it provides a good balance between "here are practical things you need for making a game" to "here is a very broad set of matrix operations for any size".

One thing that I have not done is to implement operations between column vectors and vectors yet, which I think would be cool so that there are two implementations for a lot of common implementations, a fast one and an obviously correct one. Would be great for testing when I start converting some of these to SIMD

@maplant maplant changed the title #38 - Small Vector Ergonomics Small Vector Ergonomics Issue - #38 Sep 25, 2024
@maplant maplant changed the title Small Vector Ergonomics Issue - #38 Small Vector Ergonomics Issue Sep 25, 2024
@maplant maplant merged commit a31c535 into main Sep 25, 2024
1 check passed
@maplant maplant deleted the map/small-vector-ergonomics branch September 25, 2024 01:50
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