rotate

NAME

rotate - rotates point, line or triangle clouds

SYNOPSIS

rotate [-r|--reference] [-t STRING|--type STRING] [-l|--line] [-p INT|--precision INT] [-?|-h|--help] A1 A2 A3

DESCRIPTION

rotate rotates a point, line or triangle cloud around the origin. The input requires three angles (in degree): A1, A2 and A3. By default, the cloud is first rotated of A1 around the axis x, then of A2 around the new axis y (y'), then of A3 around the latest axis z (z''). Option --type can be used to specify other orders. The program reads the cloud from the standard input and returns the result to the standard output.

OPTIONS

-r,--reference

by default, the cloud is rotated. With option -r, the programs rotates the frame of reference.

-l,--line

for line clouds with 2 points on each line

-t STRING, --type STRING

Used to specify the order of the rotations:

'xyz': A1 around x, then A2 around y', then A3 around z'' (default).

'zxy': A1 around z, then A2 around x', then A3 around y''

'zxz': A1 around z, then A2 around x', then A3 around z''

-p INTEGER, --precision INTEGER

number of decimals (default: 6)

-h,--help,-?

Returns the manual page

AUTHORS

Written by Pierre Smars (first version: 2001)

BUGS

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

COPYRIGHT

Copyright (C) 2015 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

translate(1), mirror(1), scale(1), view_pt(1), view_li(1), view_tri(1)

Pierre SMARS (tools, home page)