PerspectiveFovRH, PerspectiveFovLH

Computes the 4x4 matrix of the right-handed or left-handed perspective projection based on a field of view.

Syntax

IppStatus ippmPerspectiveFovRH_m4_32f (Ipp32f fovy, Ipp32f aspect, Ipp32f zNear, Ipp32f zFar, Ipp32f* pDst);

IppStatus ippmPerspectiveFovLH_m4_32f (Ipp32f fovy, Ipp32f aspect, Ipp32f zNear, Ipp32f zFar, Ipp32f* pDst);

Parameters

fovy
Field of view in the y direction.
aspect
Aspect ratio.
zNear
z coordinate of the near plane.
zFar
z coordinate of the far plane.
pDst
Pointer to the perspective projection matrix.

Description

The functions ippmPerspectiveFovRH_m4_32f and ippmPerspectiveFovLH_m4_32f are declared in the ippm.h file. The functions compute the 4x4 matrix of the perspective projection defined by the parameters of the field of view. The ippmPerspectiveFovRH_m4_32f function computes the matrix of the right-handed projection, and ippmPerspectiveFovLH_m4_32f computes the matrix of the left-handed projection.

Return Values

ippStsNoErr

Indicates no error.

See Also


Submit feedback on this help topic

Copyright © 2000 - 2011, Intel Corporation. All rights reserved.