Calculates the dot product of two vectors and changes the sign of the surface normal.
IppStatus ipprDotChangeNorm_32f_IM(const Ipp32f* const pSrc[3], const Ipp32s* pMask, Ipp32f* pSrcDst[3], Ipp32f* pDot, int len);
pSrc |
Pointer to the array of pointers to separate coordinate (x, y, z) planes of the first source points. |
pSrcDst |
Pointer to the array of pointers to separate coordinate (x, y, z) planes of the second source and destination points. |
pMask |
Pointer to the array of masks. |
pDot |
Pointer to the destination array of dot product values. |
len |
Number of rays. |
The function ipprDotChangeNorm is declared in the ippr.h file. This function calculates the dot product of two source vectors pSrc and pSrcDst in the points where the pMask [i] is greater than or equal to 0; in other points the dot product is set to 0.f. The array of mask is the array of indexes of the triangles that intersect with the ray. If dot product value pDot[i]>0.f, the function changes the sign of pDot[i] and pSrcDst[i], that is the surface normal is reversed in direction to the origin point of the ray.
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.