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

Generalize swizzles to work with any storage type #406

Closed
arturoc opened this issue Sep 24, 2018 · 1 comment
Closed

Generalize swizzles to work with any storage type #406

arturoc opened this issue Sep 24, 2018 · 1 comment

Comments

@arturoc
Copy link
Contributor

arturoc commented Sep 24, 2018

Right now the swizzles in nalgebra-glm only apply to vectors (with owned storage) if they were generalized to 1 column matrices of other storage types it would allow to do things like:

let mat = look_at(...);
let z_axis = mat.column(2).xyz();

Perhaps the swizzles could be moved to nalgebra so they can also be implemented for other types like points?

@arturoc
Copy link
Contributor Author

arturoc commented Sep 24, 2018

Sorry I assumed wrongly that swizzles were implemented for owned storage only and in glm when they are already implemented for any type of storage

@arturoc arturoc closed this as completed Sep 24, 2018
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

No branches or pull requests

1 participant