rect2sph - converts the coordinates of a point, line or triangle cloud from rectangular to spherical.
rect2sph [-l|--line] [-p INT|--precision INT] [-?|-h|--help]
rect2sph converts the coordinates of a point, line or triangle cloud from rectangular to spherical. The origin is (0,0,0) (use 'translate' to change the origin). The spherical coordinates are 'r' (radius), 'a' (azimuth), 'e' (elevation). Angles are expressed in radian (use 'scale' to change the unit). 'scale' can also be used to convert to an elliptic coordinate system. The program takes its input from the standard input and returns the result to the standard output.
for 'line files' with 2 points on each line
number of decimals (default: 6)
Refer to the manual page
Written by Pierre Smars (first version: 2013)
Reports of bugs or problems should be submitted via electronic mail to <smars@yuntech.edu.tw>.
Copyright (C) 2013-2020 Pierre Smars. License GPLv2 <http://www.gnu.org/licenses/gpl-2.0.html>. This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.
sph2rect(1), translate(1), rotate(1), scale(1), view_pt(1), view_li(1), view_tri(1)