SilverScreen Solid Modeler

dot_product

dot_product

Previous topic Next topic  

dot_product

Previous topic Next topic JavaScript is required for the print function  

SilverScreenAPI

 

double dot_product ( SS_XYZ *xyz1, SS_XYZ *xyz2 )

 

SS_XYZ *xyz1;        // a pointer to a 3D point

SS_XYZ *xyz2;        // a pointer to a 3D point

 

 




Synopsis

#include "silver.h"

 

The dot_product function computes the dot product of the two points at xyz1 and xyz2 . The dot product is computed by the following calculation:

C / C++ Code

 

 result = p1->x * p2->x + p1->y * p2->y + p1->z * p2->z;

 

 

 

Parameters

xyz1 and xyz2 are pointers to a SS_XYZ structures.

 

 

Return Value

The result of the specified computation is returned.

 

 

See Also

cross_product