SRM Reference Manual
Functions
SRM DotProduct
extern SRM_Status_Code
SRM_DotProduct
(
const SRM_Vector_3D  a_ptr,1
const SRM_Vector_3D  b_ptr,2
SRM_Long_Float  *result_out_ptr3
);

Definition

Computes the dot product of 2 vectors.


Returns

SRM_STATCOD_SUCCESS and *result_out_ptr is set to the appropriate result, if valid parameters were passed in.
SRM_STATCOD_INACTIONABLE and no changes are made, if result_out_ptr, a_ptr, or b_ptr is NULL.

Parameters Notes

1 1st vector operand

2 2nd vector operand

3 pointer to an SRM_Long_Float variable in the user's memory space where the result will be stored.


Prev: SRM_DeriveCoordinate2DFrom3D. Next: SRM_EnumNameToAxisDirection. Up:Index.