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

Include perspective/ortho projection helpers #2

Open
swiftcoder opened this issue Apr 26, 2018 · 1 comment
Open

Include perspective/ortho projection helpers #2

swiftcoder opened this issue Apr 26, 2018 · 1 comment

Comments

@swiftcoder
Copy link

Defining perspective projections by hand is time consuming and error prone. Seeing as cgmath already has implementations of the various projection matrices, it would be nice to expose them.

@alteous
Copy link
Owner

alteous commented Apr 27, 2018

Originally this was omitted since there are multiple ways of making perspective/orthographic matrices and there is a special case too for 'infinite' projection matrices. I figured it was trivial for the user to write it themselves; however, I can see your point.

How about we add the two simple cases orthographic_projection (like cgmath::Ortho) and finite_perspective_projection (like cgmath::Perspective)?

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

2 participants