1
0
Fork 0

typedef-ified fgCartesianPoint3d

This commit is contained in:
curt 1998-05-02 01:48:38 +00:00
parent 5262fdde02
commit fd0160d5a1
2 changed files with 17 additions and 7 deletions

View file

@ -78,6 +78,7 @@ EXTRA_DIST = \
fg_limits.h \ fg_limits.h \
fg_typedefs.h \ fg_typedefs.h \
fg_types.h \ fg_types.h \
fg_zlib.h \
general.h \ general.h \
keys.h keys.h
mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs

View file

@ -28,25 +28,34 @@
#define _FG_TYPES_H #define _FG_TYPES_H
/* A simple cartesian point */ /* A simple 3d cartesian point */
struct fgCartesianPoint { typedef struct {
double x, y, z; double x, y, z;
}; } fgCartesianPoint3d;
/* A simple 3d polar point */
typedef struct {
double lon, lat, radius;
} fgPolarPoint3d;
/* A simple geodetic point */ /* A simple geodetic point */
struct fgGeodeticPoint { typedef struct {
double lon, lat, elev; double lon, lat, elev;
}; } fgGeodeticPoint3d;
#endif /* _FG_TYPES_H */ #endif /* _FG_TYPES_H */
/* $Log$ /* $Log$
/* Revision 1.2 1998/04/08 23:35:33 curt /* Revision 1.3 1998/05/02 01:48:39 curt
/* Tweaks to Gnu automake/autoconf system. /* typedef-ified fgCartesianPoint3d
/* /*
* Revision 1.2 1998/04/08 23:35:33 curt
* Tweaks to Gnu automake/autoconf system.
*
* Revision 1.1 1998/01/27 00:46:51 curt * Revision 1.1 1998/01/27 00:46:51 curt
* prepended "fg_" on the front of these to avoid potential conflicts with * prepended "fg_" on the front of these to avoid potential conflicts with
* system include files. * system include files.