TCNVRT

TCNVRT converts translational coordinates from one representation to another.

Use

Called By

Any user-written subroutine

Prerequisite

None

Calling Sequence

CALL TCNVRT (sys1, coord1, sys2, coord2, istat)

Input Arguments

 
sys1
A character string specifying the system in which the values passed in coord1 were determined. The possible character strings and their meanings are:
CARTESIAN - Cartesian coordinates (x, y, and z).
CYLINDRICAL - Cylindrical coordinates (radius, theta, and z).
SPHERICAL - Spherical coordinates (radius, phi, and theta).
Note: Do not confuse this phi and theta with the Euler angles named phi and theta.
coord1
A double-precision array containing the coordinates to be converted. Angles should be input in radians.
sys2
A character string specifying the system in which the values returned as output in coord2 are to be determined. Possible character strings are the same as those for sys1.

Output Arguments

 
coord2
The converted coordinates as output. Angles are output in radians.
istat
An integer variable indicating either the success or the reason for the failure of the call to TCNVRT.

Extended Definition

MOTSUB, REQSUB, or SFOSUB can call TCNVRT to change the Cartesian coordinates used to specify a displacement vector to cylindrical coordinates.