Calculates the vectors of direction for secondary rays.
IppStatus ipprCastReflectionRay_32f(const Ipp32f* const pIncident[3], const Ipp32s* pMask, const Ipp32f* const pSurfNorm[3], Ipp32f* pDirection[3], int len);
pIncident |
Pointer to the array of pointers to separate coordinate (x, y, z) planes of the incident rays. |
pMask |
Pointer to the array of masks. |
pSurfNorm |
Pointer to the array of pointers to separate coordinate (x, y, z) planes of the normals at the intersection point. |
pDirection |
Pointer to the array of pointers to separate coordinate (x, y, z) planes of the destination vector. |
len |
Number of rays. |
The function ipprCastReflectionRay is declared in the ippr.h file. This function calculates the vector of direction of the reflected ray in accordance with the formula:
R = I - 2 * <I*N> * N,
where R is the reflected vector, I is the incident vector, N is the normal vector.
ippStsNoErr |
Indicates no error. Any other value indicates an error or a warning. |
ippStsNullPtrErr |
Indicates an error condition if one of the specified pointers is NULL. |
Copyright © 2000 - 2011, Intel Corporation. All rights reserved.