WCSLIB 4.20
wcsmath.h
Go to the documentation of this file.
1 /*============================================================================
2 
3  WCSLIB 4.20 - an implementation of the FITS WCS standard.
4  Copyright (C) 1995-2013, Mark Calabretta
5 
6  This file is part of WCSLIB.
7 
8  WCSLIB is free software: you can redistribute it and/or modify it under the
9  terms of the GNU Lesser General Public License as published by the Free
10  Software Foundation, either version 3 of the License, or (at your option)
11  any later version.
12 
13  WCSLIB is distributed in the hope that it will be useful, but WITHOUT ANY
14  WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
15  FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for
16  more details.
17 
18  You should have received a copy of the GNU Lesser General Public License
19  along with WCSLIB. If not, see http://www.gnu.org/licenses.
20 
21  Direct correspondence concerning WCSLIB to mark@calabretta.id.au
22 
23  Author: Mark Calabretta, Australia Telescope National Facility, CSIRO.
24  http://www.atnf.csiro.au/people/Mark.Calabretta
25  $Id: wcsmath_8h_source.html,v 1.1 2014/02/12 21:11:37 irby Exp $
26 *=============================================================================
27 *
28 * Summary of wcsmath.h
29 * --------------------
30 * Definition of mathematical constants used by WCSLIB.
31 *
32 *===========================================================================*/
33 
34 #ifndef WCSLIB_WCSMATH
35 #define WCSLIB_WCSMATH
36 
37 #ifdef PI
38 #undef PI
39 #endif
40 
41 #ifdef D2R
42 #undef D2R
43 #endif
44 
45 #ifdef R2D
46 #undef R2D
47 #endif
48 
49 #ifdef SQRT2
50 #undef SQRT2
51 #endif
52 
53 #ifdef SQRT2INV
54 #undef SQRT2INV
55 #endif
56 
57 #define PI 3.141592653589793238462643
58 #define D2R PI/180.0
59 #define R2D 180.0/PI
60 #define SQRT2 1.4142135623730950488
61 #define SQRT2INV 1.0/SQRT2
62 
63 #ifdef UNDEFINED
64 #undef UNDEFINED
65 #endif
66 
67 #define UNDEFINED 987654321.0e99
68 #define undefined(value) (value == UNDEFINED)
69 
70 #endif /* WCSLIB_WCSMATH */