Dot

Calculates the dot product of two vectors.

Syntax

IppStatus ipprDot_32f_P3C1M(const Ipp32f* const pSrc0[3], const Ipp32f* const pSrc1[3], const Ipp32s* pMask, Ipp32f* pDot, int len);

Parameters

pSrc0

Pointer to the array of pointers to separate coordinate (x, y, z) planes of the first source points.

pSrc1

Pointer to the array of pointers to separate coordinate (x, y, z) planes of the second source points.

pMask

Pointer to the array of masks.

pDot

Pointer to the destination array of dot product values.

len

Number of rays.

Description

The function ipprDot is declared in the ippr.h file. This function calculates the dot product of two source vectors 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.

The code example demonstrates how to use this function.

Return Values

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.

Submit feedback on this help topic

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