casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
BeamCalcConstants.h
Go to the documentation of this file.
1 #ifndef __BEAMCALC_CONSTANTS_H__
2 #define __BEAMCALC_CONSTANTS_H__
3 
4 #include <math.h>
5 
6 /* X_Y = multiplicitive constant required to convert a number in X units to
7  * a number in Y units.
8  *
9  * 39.37 * INCH_METER = 1.0
10  */
11 
12 #define METER_INCH 39.37008
13 #define INCH_METER (1.0/METER_INCH)
14 
15 #define NS_METER 0.299792458 /* Exact */
16 #define METER_NS (1.0/NS_METER)
17 
18 #define DEG_RAD M_PI/180.0
19 #define RAD_DEG 180.0/M_PI
20 
21 #endif