SRM Reference Manual
Functions
SRM VectorMultByScalar
extern SRM_Status_Code
SRM_VectorMultByScalar
(
constSRM_Vector_3D *vec_ptr, (notes)
SRM_Long_Float scalar, (notes)
SRM_Vector_3D *result_out_ptr (notes)
);

Definition

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


Returns

SRM_STAT_CODE_SUCCESS and *result_out_ptr. is set to the appropriate value, if valid parameters were passed in.
SRM_STAT_CODE_INACTIONABLE and no changes are made, if vec_ptr is NULL.
SRM_STAT_CODE_INACTIONABLE and no changes are made, if result_out_ptr is NULL.

Parameters Notes


vec_ptr

 pointer to the vector operand

scalar

 the scalar multiplier.

result_out_ptr

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


Prev: SRM_VectorMagnitude. Up:Index.

Last updated: August 23, 2005 Copyright © 2005 SEDRIS