head 1.4; access; symbols; locks; strict; comment @# @; 1.4 date 2002.09.07.01.50.37; author curt; state Exp; branches; next 1.3; 1.3 date 2002.08.31.19.01.53; author curt; state Exp; branches; next 1.2; 1.2 date 2002.08.31.18.54.00; author curt; state Exp; branches; next 1.1; 1.1 date 2002.02.15.17.21.55; author curt; state Exp; branches; next ; desc @@ 1.4 log @Updated doxygen docs. @ text @
Main Page Class Hierarchy Compound List File List Compound Members File Members

# constants.h File Reference

Various constant definitions. More...

`#include <simgear/compiler.h>`
`#include <math.h>`
`#include <plib/sg.h>`

Go to the source code of this file.

## Defines
#define | SGD_2PI 6.28318530717958647692
| 2 * PI
#define | SGD_PI_2 1.57079632679489661923
| PI / 2.
#define | SGD_PI_4 0.78539816339744830961
| PI / 4.
#define | SG_E 2.7182818284590452354
| "e"
#define | SG_ONE_SECOND 4.848136811E-6
| pi/180/60/60, or about 100 feet at earths' equator
#define | SG_EARTH_RAD 6378.155
| Radius of Earth in kilometers at the equator.
#define | SG_EQUATORIAL_RADIUS_FT 20925650.
| Value of earth radius from LaRCsim (ft).
#define | SG_EQUATORIAL_RADIUS_M 6378138.12
| Value of earth radius from LaRCsim (meter).
#define | SG_EQ_RAD_SQUARE_FT 437882827922500.
| Radius squared (ft).
#define | SG_EQ_RAD_SQUARE_M 40680645877797.1344
| Radius squared (meter).
#define | SG_ARCSEC_TO_RAD 4.84813681109535993589e-06
| Arc seconds to radians.
#define | SG_RAD_TO_ARCSEC 206264.806247096355156
| Radians to arc seconds.
#define | SG_FEET_TO_METER 0.3048
| Feet to Meters.
#define | SG_METER_TO_FEET 3.28083989501312335958
| Meters to Feet.
#define | SG_METER_TO_NM 0.00053995680
| Meters to Nautical Miles.
#define | SG_NM_TO_METER 1852.0000
| Nautical Miles to Meters.
#define | SG_NM_TO_RAD 0.00029088820866572159
| Radians to Nautical Miles.
#define | SG_RAD_TO_NM 3437.7467707849392526
| Nautical Miles to Radians.
#define | SG_EPSILON 0.0000001
| For divide by zero avoidance, this will be close enough to zero.
#define | SG_BINOBJ_VERSION 6
| Highest binobj format version we know how to read/write.
#define | SG_SCENERY_FILE_FORMAT "0.4"
| for backwards compatibility

## Detailed Description

Various constant definitions.

Definition in file constants.h.

## Define Documentation

#define SG_ARCSEC_TO_RAD 4.84813681109535993589e-06

| Arc seconds to radians. (arcsec*pi)/(3600*180) = rad Definition at line 97 of file constants.h.

#define SG_BINOBJ_VERSION 6

| Highest binobj format version we know how to read/write. This starts at 0 and can go up to 65535 Definition at line 126 of file constants.h.

#define SG_EARTH_RAD 6378.155

| Radius of Earth in kilometers at the equator. Another source had 6378.165 but this is probably close enough Definition at line 77 of file constants.h.

#define SG_METER_TO_NM 0.00053995680

| Meters to Nautical Miles. 1 nm = 6076.11549 feet Definition at line 109 of file constants.h. Referenced by calc_gc_lon_lat().

#define SG_NM_TO_RAD 0.00029088820866572159

| Radians to Nautical Miles. 1 nm = 1/60 of a degree Definition at line 115 of file constants.h. Referenced by calc_gc_lon_lat().

#define SG_RAD_TO_ARCSEC 206264.806247096355156

| Radians to arc seconds. (rad*3600*180)/pi = arcsec Definition at line 100 of file constants.h.

@ 1.3 log @Oops, try again. @ text @d245 1 a245 1