Function cgmath::perspective

source ·
pub fn perspective<S: BaseFloat, A: Into<Rad<S>>>(
    fovy: A,
    aspect: S,
    near: S,
    far: S
) -> Matrix4<S>
Expand description

Create a perspective projection matrix.

This is the equivalent to the [gluPerspective] (http://www.opengl.org/sdk/docs/man2/xhtml/gluPerspective.xml) function.