PerspectiveRH, PerspectiveLH

Computes the 4x4 matrix of the right-handed or left-handed perspective projection.

Syntax

IppStatus ippmPerspectiveRH_m4_32f (Ipp32f w, Ipp32f h, Ipp32f zNear, Ipp32f zFar, Ipp32f* pDst);

IppStatus ippmPerspectiveLH_m4_32f (Ipp32f w, Ipp32f h, Ipp32f zNear, Ipp32f zFar, Ipp32f* pDst);

Parameters

w
Width of the view at the near plane.
h
Height of the view at the near plane.
zNear
z value of the near plane.
zFar
z value of the far plane.
pDst
Pointer to the perspective projection matrix.

Description

The functions ippmPerspectiveRH_m4_32f and ippmPerspectiveLH_m4_32f are declared in the ippm.h file. The functions compute the 4x4 matrix of the perspective projection defined by the parameters. The ippmPerspectiveRH_m4_32f function computes the matrix of the right-handed projection, and ippmPerspectiveLH_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.