Function Name: Cross Product

Definition

Computes the cross 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_CrossProduct
(
constSE_VECTOR_3_TYPE *a_ptr, (notes)
constSE_VECTOR_3_TYPE *b_ptr, (notes)
SE_VECTOR_3_TYPE *result_out_ptr (notes)
);

Parameters Notes

a_ptr

 1st vector operand.

b_ptr

 2nd vector operand.

result_out_ptr

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

Prev: Create Coord Conversion Constants. Next: Derive Coord 2D From 3D. Up:Index.