- Main Page
- Related Pages
- Data Structures
- Files

# wcsmath.h

Go to the documentation of this file.

    00001 /*============================================================================
    00002
    00003   WCSLIB 4.15 - an implementation of the FITS WCS standard.
    00004   Copyright (C) 1995-2012, Mark Calabretta
    00005
    00006   This file is part of WCSLIB.
    00007
    00008   WCSLIB is free software: you can redistribute it and/or modify it under the
    00009   terms of the GNU Lesser General Public License as published by the Free
    00010   Software Foundation, either version 3 of the License, or (at your option)
    00011   any later version.
    00012
    00013   WCSLIB is distributed in the hope that it will be useful, but WITHOUT ANY
    00014   WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
    00015   FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License for
    00016   more details.
    00017
    00018   You should have received a copy of the GNU Lesser General Public License
    00019   along with WCSLIB.  If not, see http://www.gnu.org/licenses.
    00020
    00021   Direct correspondence concerning WCSLIB to mark@calabretta.id.au
    00022
    00023   Author: Mark Calabretta, Australia Telescope National Facility, CSIRO.
    00024   http://www.atnf.csiro.au/people/Mark.Calabretta
    00025   $Id: wcsmath.h,v 4.15 2012/09/26 14:26:05 cal103 Exp $
    00026 *=============================================================================
    00027 *
    00028 * Summary of wcsmath.h
    00029 * --------------------
    00030 * Definition of mathematical constants used by WCSLIB.
    00031 *
    00032 *===========================================================================*/
    00033
    00034 #ifndef WCSLIB_WCSMATH
    00035 #define WCSLIB_WCSMATH
    00036
    00037 #ifdef PI
    00038 #undef PI
    00039 #endif
    00040
    00041 #ifdef D2R
    00042 #undef D2R
    00043 #endif
    00044
    00045 #ifdef R2D
    00046 #undef R2D
    00047 #endif
    00048
    00049 #ifdef SQRT2
    00050 #undef SQRT2
    00051 #endif
    00052
    00053 #ifdef SQRT2INV
    00054 #undef SQRT2INV
    00055 #endif
    00056
    00057 #define PI 3.141592653589793238462643
    00058 #define D2R PI/180.0
    00059 #define R2D 180.0/PI
    00060 #define SQRT2 1.4142135623730950488
    00061 #define SQRT2INV 1.0/SQRT2
    00062
    00063 #ifdef UNDEFINED
    00064 #undef UNDEFINED
    00065 #endif
    00066
    00067 #define UNDEFINED 987654321.0e99
    00068 #define undefined(value) (value == UNDEFINED)
    00069
    00070 #endif /* WCSLIB_WCSMATH */