xglPushMatrix();
/* Translate to view position */
- xglTranslatef( v->cur_zero_elev.x, v->cur_zero_elev.y, v->cur_zero_elev.z );
+ xglTranslatef( v->cur_zero_elev.x(),
+ v->cur_zero_elev.y(),
+ v->cur_zero_elev.z() );
/* printf(" Translated to %.2f %.2f %.2f\n",
v->cur_zero_elev.x, v->cur_zero_elev.y, v->cur_zero_elev.z ); */
/* $Log$
-/* Revision 1.10 1998/08/29 13:07:16 curt
-/* Rewrite of event manager thanks to Bernie Bright.
+/* Revision 1.11 1998/10/16 00:52:19 curt
+/* Converted to Point3D class.
/*
+ * Revision 1.10 1998/08/29 13:07:16 curt
+ * Rewrite of event manager thanks to Bernie Bright.
+ *
* Revision 1.9 1998/08/22 01:18:59 curt
* Minor tweaks to avoid using unitialized memory.
*
#include <Aircraft/aircraft.h>
#include <Debug/fg_debug.h>
#include <Include/fg_constants.h>
-#include <Include/fg_types.h>
#include <Misc/fgstream.hxx>
#include <Main/options.hxx>
#include <Main/views.hxx>
// Initialize the Star Management Subsystem
int fgStarsInit( void ) {
- fgPoint3d starlist[FG_MAX_STARS];
+ Point3D starlist[FG_MAX_STARS];
// struct CelestialCoord pltPos;
double right_ascension, declination, magnitude;
double min_magnitude[FG_STAR_LEVELS];
{
in.eat_comments();
string name;
- char c = 0;
getline( in.stream(), name, ',' );
- in.stream() >> starlist[starcount].x >> c;
- in.stream() >> starlist[starcount].y >> c;
- // in.stream() >> starlist[starcount].x; in.get(c);
- // in.stream() >> starlist[starcount].y; in.get(c);
- in.stream() >> starlist[starcount].z;
+ in.stream() >> starlist[starcount];
++starcount;
}
count = 0;
for ( j = 0; j < starcount; j++ ) {
- magnitude = starlist[j].z;
+ magnitude = starlist[j].z();
// printf("magnitude = %.2f\n", magnitude);
if ( magnitude < min_magnitude[i] ) {
- right_ascension = starlist[j].x;
- declination = starlist[j].y;
+ right_ascension = starlist[j].x();
+ declination = starlist[j].y();
count++;
// $Log$
+// Revision 1.18 1998/10/16 00:52:20 curt
+// Converted to Point3D class.
+//
// Revision 1.17 1998/09/24 15:36:19 curt
// Converted to c++ style comments.
//