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

Fixed: outerProduct defintions and operator signatures for mat2x4 and vec4 #475

Merged
merged 2 commits into from
Mar 5, 2016
Merged

Fixed: outerProduct defintions and operator signatures for mat2x4 and vec4 #475

merged 2 commits into from
Mar 5, 2016

Conversation

MrApplejuice
Copy link

This sometimes causes problems when trying to refer to overloaded operators with signatures while using C++ meta programming.

I used the other classes mat4x3, mat4, ... (and vec2/vec3) as references, so these are probably the ones which do not use the intended signatures.

Paul Konstantin Gerke added 2 commits January 24, 2016 19:34
… E.g. outerProduct(vec2, vec4) did not succeed because the matrix return types were wrong. The computing function seemed fine. I used https://en.wikipedia.org/wiki/Outer_product as reference on what the number of columns/rows ''should'' be and fixed it so that it matches the description from wikipedia

Added: tests for outerProduct with unmatched vector dimensions (actually testing all combinations now)
@MrApplejuice
Copy link
Author

I also added a fix for the outerProduct, which did not compile anymore, because result were not matched.

@MrApplejuice MrApplejuice changed the title Fixed: operator signatures of mat2x4 and vec4 Fixed: outerProduct defintions and operator signatures for mat2x4 and vec4 Jan 24, 2016
@MrApplejuice
Copy link
Author

I just cross checked the outerProduct fixes with

https://www.opengl.org/sdk/docs/man4/html/outerProduct.xhtml

which handles the same definitions as wikipedia!

@Groovounet Groovounet added the bug label Mar 5, 2016
@Groovounet Groovounet added this to the GLM 0.9.8 milestone Mar 5, 2016
Groovounet added a commit that referenced this pull request Mar 5, 2016
Fixed: outerProduct defintions and operator signatures for mat2x4 and vec4 #475
@Groovounet Groovounet merged commit 72a8ba4 into g-truc:master Mar 5, 2016
@Groovounet
Copy link
Member

This is merged on master branch for GLM 0.9.8 release.

Thanks for contributing!
Christophe

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants