Contents

GLKMatrix4MakeFrustum(_:_:_:_:_:_:)

Returns a 4x4 perspective projection matrix.

Declaration

func GLKMatrix4MakeFrustum(_ left: Float, _ right: Float, _ bottom: Float, _ top: Float, _ nearZ: Float, _ farZ: Float) -> GLKMatrix4

Parameters

  • left:

    The left clipping plane.

  • right:

    The right clipping plane.

  • bottom:

    The bottom clipping plane.

  • top:

    The top clipping plane.

  • nearZ:

    The near clipping distance. Must be positive.

  • farZ:

    The far clipping distance. Must be positive and greater than the near distance.

Return Value

A projection matrix.

Discussion

This function creates the same orthographic projection matrix previously provided in OpenGL ES 1.1 by the glFrustum function.

See Also

Creating Matrices