Function:ss2sfra

From S2PLOT

Revision as of 02:36, 23 November 2007; view current revision
←Older revision | Newer revision→
Jump to: navigation, search

ss2sfra

Set the fisheye rotation angle (degrees).

Prototype

void ss2sfra(float rot);

Description

Set the fisheye rotation angle (degrees). This is only functional if the projection is in use is a fisheye, and it has the effect of rotating the projection "pole" away from the centre of the "screen", towards the bottom of the screen, by rot degrees.

See Also

ss2qfra Query the fisheye rotation angle.
s2ldev List the available S2PLOT devices on stdout.
ss2tc Enable/disable (1,0) camera translation.


Code Example

#include <stdio.h>
#include <stdlib.h>
#include "s2plot.h"

int main(int argc, char *argv[])
{
   XYZ start, end;				/* End-points of line */
   COLOUR col = { 1.0, 1.0, 0.0 };		/* Line colour */

   s2opend("/S2FISH",argc, argv);		/* Open the display: fisheye */
   s2swin(-1.,1., -1.,1., -1.,1.);		/* Set the window coordinates */

   start.x = -1.0; end.x = +1.0;		/* Set the end-points */
   start.y =  0.0; end.y =  0.0;
   start.z =  0.0; end.z =  0.0;
 
   ns2vthline(start, end, col, 4);		/* Draw a line */

   ss2tc(0);					/* Don't allow translation */
   ss2sfra(-45.0);				/* Rotate the centre up */
   s2show(1);					/* Open the s2plot window */
   
   return 1;
}

Back to S2PLOT function list.


Personal tools