hrma2osac - convert from HRMA to OSAC coordinates
hrma2osac uses the standard parameter interface
stdin, it reads
the UNIX standard input stream. It accepts rays in bpipe format.
stdout, it writes to
the UNIX standard output stream. It writes rays in bpipe format.
hrma2osac reads a ray stream in bpipe format, converts the coordinates into OSAC coordinates (assuming the original is in HRMA coordinates) and writes the stream out.
The conversion from HRMA to OSAC is as follows: x = y, y = -z, z = -x.
Both positions and direction cosines are converted.
It writes out a bpipe formatted ray stream.
D. Jerius