TCNVRT
Utility/GeneralConverts translational coordinates between the various supported representations.
Use
This function can be called by any user-defined subroutine.
Format
- Fortran Calling Syntax
- CALL TCNVRT (SYS1, COORD1, SYS2, COORD2, ISTAT)
- C/C++ Calling Syntax
- c_tcnvrt(sys1, coord1, sys2, coord2, istat)
- Python Calling Syntax
- [coord2, istat] = py_tcnvrt(sys1, coord1, sys2)
- MATLAB Calling Syntax
- [coord2, istat] = m_tcnvrt(sys1, coord1, sys2)
Attributes
- SYS1
- [Character]
- COORD1
- [double precision]
- SYS2
- [Character]
Output
- COORD2
- [double precision]
- ISTAT
- [integer]
Comments
The following table lists the valid options you may specify for SYS1 or SYS2 and the corresponding sizes of the input or output arrays COORD1 or COORD2.
SYS1/SYS2 string | COORD1/COORD2 size | COORD1/COORD2 contents |
---|---|---|
CARTESIAN | 3 | [x, y, z] |
SPHERICAL | 3 | [rho, phi, theta] |
CYLINDRICAL | 3 | [r, theta, z] |