WCSLIB 6.2

wcsmath.h
Go to the documentation of this file.
1 /*============================================================================
2
3 WCSLIB 6.2 - an implementation of the FITS WCS standard.
4 Copyright (C) 1995-2018, 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.h,v 6.2 2018/10/20 10:03:13 mcalabre Exp $
26 *=============================================================================
27 *
28 * WCSLIB 6.2 - C routines that implement the FITS World Coordinate System
29 * (WCS) standard. Refer to the README file provided with WCSLIB for an
30 * overview of the library.
31 *
32 *
33 * Summary of wcsmath.h
34 * --------------------
35 * Definition of mathematical constants used by WCSLIB.
36 *
37 *===========================================================================*/
38
39 #ifndef WCSLIB_WCSMATH
40 #define WCSLIB_WCSMATH
41
42 #ifdef PI
43 #undef PI
44 #endif
45
46 #ifdef D2R
47 #undef D2R
48 #endif
49
50 #ifdef R2D
51 #undef R2D
52 #endif
53
54 #ifdef SQRT2
55 #undef SQRT2
56 #endif
57
58 #ifdef SQRT2INV
59 #undef SQRT2INV
60 #endif
61
62 #define PI 3.141592653589793238462643
63 #define D2R PI/180.0
64 #define R2D 180.0/PI
65 #define SQRT2 1.4142135623730950488
66 #define SQRT2INV 1.0/SQRT2
67
68 #ifdef UNDEFINED
69 #undef UNDEFINED
70 #endif
71
72 #define UNDEFINED 987654321.0e99
73 #define undefined(value) (value == UNDEFINED)
74
75 #endif /* WCSLIB_WCSMATH */