SRM Reference Manual
Functions
SRM VectorMagnitude
extern SRM_Status_Code
SRM_VectorMagnitude
(
constSRM_Vector_3D *vec_ptr, (notes)
SRM_Long_Float *result_out_ptr (notes)
);

Definition

Computes the magnitude of a vector.


Returns

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


Parameters Notes


vec_ptr

 pointer to the vector operand

result_out_ptr

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


Prev: SRM_ValidateCoordinate. Next: SRM_VectorMultByScalar. Up:Index.

Last updated: May 15, 2003 Copyright © 2003 SEDRIS™