rect2sph

NAME

rect2sph - converts the coordinates of a point, line or triangle cloud from rectangular to spherical.

SYNOPSIS

rect2sph [-l|--line] [-p INT|--precision INT] [-?|-h|--help]

DESCRIPTION

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.

OPTIONS

-l,--line

for 'line files' with 2 points on each line

-p INTEGER, --precision INTEGER

number of decimals (default: 6)

-h,--help,-?

Refer to the manual page

AUTHORS

Written by Pierre Smars (first version: 2013)

BUGS

Reports of bugs or problems should be submitted via electronic mail to <smars@yuntech.edu.tw>.

COPYRIGHT

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.

SEE ALSO

sph2rect(1), translate(1), rotate(1), scale(1), view_pt(1), view_li(1), view_tri(1)

Pierre SMARS (tools, home page)