Function Name: Dot Product

Definition

Computes the dot product of 2 vectors.

Returns

SE_COORD_SUCCESS - if valid parameters were passed in.

SE_COORD_INVALID_SOURCE_VECTOR - if a_ptr or b_ptr is NULL.

SE_COORD_INVALID_DEST_VECTOR - if result_out_ptr is NULL.

Prototype


extern SE_COORD_STATUS_CODE_ENUM
SE_DotProduct
(
constSE_VECTOR_3_TYPE *a_ptr, (notes)
constSE_VECTOR_3_TYPE *b_ptr, (notes)
SE_FLOAT64 *result_out_ptr (notes)
);

Parameters Notes

a_ptr

 1st vector operand.

b_ptr

 2nd vector operand.

result_out_ptr

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

Prev: Derive Coord 3D From 2D For Given Elevation. Next: Free Coord Conversion Constants. Up:Index.