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