dimforge / dimforge/nalgebra

Add compatibility for glfrustum-style new in Perspective3

Open
#658 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
4.8k
Forks
565
PR merge metrics
No merged PRs in 30d

Description

I'm porting an application to use Nalgebra that previously used a C++ matrix library that had a glFrustum style initalization of the perspective matrix. What I mean by that is the parameter ordering:
left, right, bottom, top, near, far.

cgMath has this as a "Perspective" struct (cgMath also has a nalgebra style matrix is called "PerspectiveFov")

This would also be useful since the frustum would not need to be centered on the origin. (eg, if you are rendering to multiple monitors, you may want each frustum to border the y=0 plane. That is, one frustum from x -1..0, another from 0..1).

see also: [glFrustum](https://www.khronos.org/registry/OpenGL-Refpages/gl2.1/xhtml/glFrustum.xml)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.