//
// Written by Curtis Olson, started August 1997.
//
-// Copyright (C) 1997 Curtis L. Olson - curt@infoplane.com
+// Copyright (C) 1997 Curtis L. Olson - curt@flightgear.org
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License as
# include <config.h>
#endif
-#include <ssg.h> // plib include
+#include <plib/ssg.h> // plib include
+
+#include <simgear/logstream.hxx>
+#include <simgear/constants.h>
+#include <simgear/point3d.hxx>
+#include <simgear/polar3d.hxx>
+#include <simgear/vector.hxx>
#include <Aircraft/aircraft.hxx>
#include <Cockpit/panel.hxx>
-#include <Debug/logstream.hxx>
-#include <Include/fg_constants.h>
-#include <Math/point3d.hxx>
-#include <Math/polar3d.hxx>
-#include <Math/vector.hxx>
#include <Scenery/scenery.hxx>
#include <Time/fg_time.hxx>
// Update the view parameters
void FGView::UpdateViewMath( const FGInterface& f ) {
+
Point3D p;
sgVec3 v0, minus_z, sgvec, forward;
sgMat4 VIEWo, TMP;
sgMultMat4( VIEW, VIEW_ROT, TRANS );
+//!!!!!!!!!!!!!!!!!!!
+ // THIS IS THE EXPERIMENTAL VIEWING ANGLE SHIFTER
+ // THE MAJORITY OF THE WORK IS DONE IN GUI.CXX
+ // this in gui.cxx for now just testing
+ extern float quat_mat[4][4];
+ sgPreMultMat4( VIEW, quat_mat);
+// !!!!!!!!!! testing
+
sgSetVec3( sgvec, 0.0, 0.0, 1.0 );
sgXformVec3( forward, sgvec, VIEWo );
// cout << "forward = " << forward[0] << ","