SRM Reference Manual
Functions
SRM DotProduct
extern SRM_Status_Code
SRM_DotProduct
(
constSRM_Vector_3D *a_ptr, (notes)
constSRM_Vector_3D *b_ptr, (notes)
SRM_Long_Float *result_out_ptr (notes)
);

Definition

Computes the dot product of 2 vectors.


Returns

SRM_STAT_CODE_SUCCESS and *result_out_ptr is set to the appropriate result, if valid parameters were passed in.
SRM_STAT_CODE_INVALID_SOURCE_VECTOR and no changes are made, if a_ptr or b_ptr is NULL.
SRM_STAT_CODE_INVALID_DEST_VECTOR and *result_out_ptr is left unchanged, if result_out_ptr is NULL.


Parameters Notes


a_ptr

 1st vector operand

b_ptr

 2nd vector operand

result_out_ptr

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


Prev: SRM_DeriveCoordinate3DFrom2DForGivenElevation. Next: SRM_EnumNameToBoolean. Up:Index.

Last updated: October 1, 2002 Copyright © 2002 SEDRIS™