sph2rect

NAME

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

SYNOPSIS

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

DESCRIPTION

sph2rect converts the coordinates of a point, line or triangle cloud from spherical to rectangular. 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). 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

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

Pierre SMARS (tools, home page)