SRM Reference Manual
Functions SRM VectorMultByScalar |
---|
extern SRM_Status_Code | |||
SRM_VectorMultByScalar | |||
( | |||
const | SRM_Vector_3D | vec_ptr, | 1 |
SRM_Long_Float | scalar, | 2 | |
SRM_Vector_3D | result_out_ptr | 3 | |
); |
Multiplies vec_ptr's vector by scalar, returns the result in *result_out_ptr.
SRM_STATCOD_SUCCESS | and *result_out_ptr. is set to the appropriate value, if valid parameters were passed in. |
SRM_STATCOD_INACTIONABLE | and no changes are made, if vec_ptr is NULL. |
SRM_STATCOD_INACTIONABLE | and no changes are made, if result_out_ptr is NULL. |
1 pointer to the vector operand
2 the scalar multiplier.
3 pointer to an SRM_Vector_3D variable in the user's memory space where the result will be stored.
Prev: SRM_VectorMagnitude.
Up:Index.
|