|  | 
| Custom Utility Routines View from aircraft:
 void pilotView(GLdouble planex, GLdouble planey,
GLdouble planez, GLdouble roll, GLdouble pitch, GLdouble heading) 
"Orbiting view" of object at origin:{
 glRotated(roll, 0.0, 0.0, 1.0);
 glRotated(pitch, 0.0, 1.0, 0.0);
 glRotated(heading, 1.0, 0.0, 0.0);
 glTranslated(-planex, -planey, -planez);
 }
 
 void polarView(GLdouble distance, GLdouble twist,
GLdouble elevation, GLdouble azimuth) 
{
 glTranslated(0.0, 0.0, -distance);
 glRotated(-twist, 0.0, 0.0, 1.0);
 glRotated(-elevation, 1.0, 0.0, 0.0);
 glRotated(azimuth, 0.0, 0.0, 1.0);
 }
 
 
 
 |  
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
   |