|
SRM Reference Manual
Functions SRM ConvertVector3D |
|---|
| extern SRM_Status_Code | ||||
| SRM_ConvertVector3D | ||||
| ( | ||||
| const | SRM_SRF_Parameters_Pair | convert_params_ptr, | (notes) | |
| const | SRM_Coordinate | * | conversion_location_src_ptr, | (notes) |
| const | SRM_Vector_3D | * | source_vec_ptr, | (notes) |
| SRM_Vector_3D | * | dest_vec_ptr | (notes) | |
| ); | ||||
Assumptions:
The caller wishes to convert (x, y, z) from SRF1 into a different spatial reference frame SRF2, where the transformation from SRF1 to SRF2 is specified by convert_params_ptr.
| SRM_STAT_CODE_SUCCESS | and *dest_vec_ptr is set to the appropriate values, if valid parameters were passed in. |
| SRM_STAT_CODE_INVALID_SRF_PAIR | and *dest_vec_ptr, *conversion_location_dest_ptr are left unchanged, if convert_params_ptr was NULL. |
| SRM_STAT_CODE_INVALID_SOURCE_VECTOR | and *dest_vec_ptr, *conversion_location_dest_ptr are left unchanged, if source_vec_ptr is NULL. |
| SRM_STAT_CODE_INVALID_SOURCE_COORD | and *dest_vec_ptr, *conversion_location_dest_ptr are left unchanged, if conversion_location_src_ptr is NULL and required. |
| SRM_STAT_CODE_INVALID_DEST_VECTOR | and *dest_vec_ptr, *conversion_location_dest_ptr are left unchanged, if dest_vect_ptr is NULL. |
| SRM_STAT_CODE_INVALID_DEST_COORD | and *dest_vec_ptr, *conversion_location_dest_ptr are left unchanged, if conversion_location_dest_ptr is NULL. |
| SRM_STAT_CODE_UNSUPPORTED | and *dest_vec_ptr, *conversion_location_dest_ptr are left unchanged, if an invalid vector conversion was requested. |
| SRM_STAT_CODE_FAILURE | and *dest_vec_ptr, *conversion_location_dest_ptr are left unchanged, an unspecified error condition occurred. |
the spatial reference frame (SRF) parameters of the
source and destination SRFs
the "origin" of the source vector
a pointer to the incoming vector, which is to be converted
a pointer to where the converted vector will be stored.
This can be the same location that source_vec_ptr points to,
but it does not have to be.
Prev: SRM_ConvertMatrix3x3.
Next: SRM_Coordinate2DEqual.
Up:Index.
|