root/OpenSceneGraph/trunk/src/osgPlugins/geo/geoUnits.h
@
13041
| Revision 13041, 2.5 kB (checked in by robert, 14 months ago) | |
|---|---|
|
|
| Line | |
|---|---|
| 1 | /*===========================================================================*\ |
| 2 | |
| 3 | NAME: geoUnits.h |
| 4 | |
| 5 | DESCRIPTION: Constants to convert coordinate data to/from meters (Geo |
| 6 | default) |
| 7 | |
| 8 | AUTHOR: Andy Bushnell |
| 9 | |
| 10 | ------------------------------------------------------------------------- |
| 11 | |
| 12 | PROPRIETARY RIGHTS NOTICE: |
| 13 | |
| 14 | This software contains proprietary information and trade secrets of Carbon |
| 15 | Graphics LLC. No part or all of this software may be reproduced in any form, |
| 16 | without the written permission of Carbon Graphics LLC. |
| 17 | |
| 18 | Exception: |
| 19 | This Software file can be used by third-party software developers (without |
| 20 | using the Geo SDK libraries) for any purpose OTHER THAN loading Geo format |
| 21 | files into an application or executable (such as, though not limited to, |
| 22 | geometry Modelers & animation systems) which is primarily intended to allow for |
| 23 | the CREATION or MODIFICATION of geometric or animation data. |
| 24 | |
| 25 | Specifically,using this software (either all or part thereof) to aid in the |
| 26 | creation of a Geo format loader for a run-time system, game engine, toolkit |
| 27 | IG (Image Generation) System or any software where the PRIMARY purpose is |
| 28 | real-time image playback and interactivity and not Model Creation and/or |
| 29 | modification is permitted. |
| 30 | |
| 31 | COPYRIGHT NOTICE: |
| 32 | |
| 33 | Copyright © 1998-2001 Carbon Graphics Llc, ALL RIGHTS RESERVED |
| 34 | |
| 35 | \*===========================================================================*/ |
| 36 | |
| 37 | |
| 38 | |
| 39 | #ifndef _GEO_UNITS_H_ |
| 40 | #define _GEO_UNITS_H_ |
| 41 | |
| 42 | |
| 43 | const float KM_TO_METERS = 1000.0f; |
| 44 | const float CM_TO_METERS = 0.01f; |
| 45 | const float MM_TO_METERS = 0.001f; |
| 46 | const float NM_TO_METERS = 1852.0f; |
| 47 | const float MILES_TO_METERS = 1609.344f; |
| 48 | const float YARDS_TO_METERS = 0.9144f; |
| 49 | const float FEET_TO_METERS = 0.3048f; |
| 50 | const float INCHES_TO_METERS= 0.0254f; |
| 51 | |
| 52 | const float METERS_TO_KM = 0.001f; |
| 53 | const float METERS_TO_CM = 100.0f; |
| 54 | const float METERS_TO_MM = 1000.0f; |
| 55 | const float METERS_TO_NM = 0.0005399568035f; |
| 56 | const float METERS_TO_MILES = 0.0006213711922f; |
| 57 | const float METERS_TO_YARDS = 1.093613298f; |
| 58 | const float METERS_TO_FEET = 3.280839895f; |
| 59 | const float METERS_TO_INCHES= 39.37007874f; |
| 60 | |
| 61 | const float CM_TO_FEET = 0.03280839895f; |
| 62 | const float CM_TO_INCHES = 0.3937007874f; |
| 63 | const float FEET_TO_YARDS = 0.333333333f; |
| 64 | const float FEET_TO_CM = 30.48f; |
| 65 | const float FEET_TO_INCHES = 12.0f; |
| 66 | const float INCHES_TO_FEET = 0.083333333f; |
| 67 | const float INCHES_TO_CM = 2.54f; |
| 68 | |
| 69 | const float MPH_TO_FPS = 1.4667f; |
| 70 | const float MPH_TO_MPS = 0.447f; |
| 71 | |
| 72 | |
| 73 | |
| 74 | #endif //_GEO_UNITS_H_ |
Note: See TracBrowser
for help on using the browser.
