root/OpenSceneGraph/trunk/src/osgPlugins/geo/geoUnits.h @ 13041

Revision 13041, 2.5 kB (checked in by robert, 2 years ago)

Ran script to remove trailing spaces and tabs

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
Line 
1/*===========================================================================*\
2
3NAME:                   geoUnits.h
4
5DESCRIPTION:    Constants to convert coordinate data to/from meters (Geo
6                                default)
7
8AUTHOR:                 Andy Bushnell
9
10        -------------------------------------------------------------------------
11
12PROPRIETARY 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
31COPYRIGHT 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
43const float KM_TO_METERS        =               1000.0f;
44const float CM_TO_METERS        =               0.01f;
45const float MM_TO_METERS        =               0.001f;
46const float NM_TO_METERS        =               1852.0f;
47const float MILES_TO_METERS =           1609.344f;
48const float YARDS_TO_METERS =           0.9144f;
49const float FEET_TO_METERS      =               0.3048f;
50const float INCHES_TO_METERS=           0.0254f;
51
52const float METERS_TO_KM        =               0.001f;
53const float METERS_TO_CM        =               100.0f;
54const float METERS_TO_MM        =               1000.0f;
55const float METERS_TO_NM        =               0.0005399568035f;
56const float METERS_TO_MILES     =               0.0006213711922f;
57const float METERS_TO_YARDS     =               1.093613298f;
58const float METERS_TO_FEET      =               3.280839895f;
59const float METERS_TO_INCHES=           39.37007874f;
60
61const float CM_TO_FEET          =           0.03280839895f;
62const float CM_TO_INCHES        =               0.3937007874f;
63const float FEET_TO_YARDS       =               0.333333333f;
64const float FEET_TO_CM          =           30.48f;
65const float FEET_TO_INCHES      =               12.0f;
66const float INCHES_TO_FEET      =               0.083333333f;
67const float INCHES_TO_CM        =               2.54f;
68
69const float MPH_TO_FPS          =       1.4667f;
70const float MPH_TO_MPS          =       0.447f;
71
72
73
74#endif //_GEO_UNITS_H_
Note: See TracBrowser for help on using the browser.