DistAttenuationSO

Calculates the distance between the source point and intersection points.

Syntax

IppStatus ipprDistAttenuationSO_32f_M(IppPoint3D_32f point, const Ipp32f* const pSurfHit[3], const Ipp32s* pMask, Ipp32f* pDistance, int len);

Parameters

point

Source point.

pSurfHit

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

pMask

Pointer to the array of masks.

pDistance

Pointer to the computed distances from the source point (origin) to intersection points.

len

Number of of rays.

Description

The function ipprDistAttenuationSO is declared in the ippr.h file. This function calculates the distances pDistance between the source point point and those surface points pSurfHit where the mask pMask[i] is greater than or equal to 0. If the computed distance is less than 0, its value is set to 1.

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.