Function Name: Vector Mult By Scalar

Definition

Multiplies vec_ptr's vector by scalar, returns the result in *result_out_ptr.

Returns

SE_COORD_SUCCESS - if valid parameters were passed in.

SE_COORD_INVALID_SOURCE_VECTOR - if vec_ptr is NULL.

SE_COORD_INVALID_DEST_VECTOR - if result_out_ptr is NULL.

Prototype


extern SE_COORD_STATUS_CODE_ENUM
SE_VectorMultByScalar
(
constSE_VECTOR_3_TYPE *vec_ptr, (notes)
SE_FLOAT64 scalar, (notes)
SE_VECTOR_3_TYPE *result_out_ptr (notes)
);

Parameters Notes

vec_ptr

 pointer to the vector operand.

scalar

 the scalar multiplier.

result_out_ptr

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

Prev: Vector Magnitude. Next: YIQ to RGB. Up:Index.