Astro-PAL
view release on metacpan or search on metacpan
palsrc/palmac.h view on Meta::CPAN
#ifndef PALMACDEF
#define PALMACDEF
/*
*+
* Name:
* palmac.h
* Purpose:
* Macros used by the PAL library
* Language:
* Starlink ANSI C
* Type of Module:
* Include file
* Description:
* A collection of useful macros provided and used by the PAL library
* Authors:
* TIMJ: Tim Jenness (JAC, Hawaii)
* DSB: David Berry (JAC, Hawaii)
* {enter_new_authors_here}
* Notes:
*
* History:
* 2012-02-08 (TIMJ):
* Initial version.
* Adapted with permission from the Fortran SLALIB library.
* 2012-04-13 (DSB):
* Added PAL__DR2H and PAL__DR2S
* {enter_further_changes_here}
* Copyright:
* Copyright (C) 2012 Science and Technology Facilities Council.
* All Rights Reserved.
* Licence:
* This program is free software: you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation, either
* version 3 of the License, or (at your option) any later
* version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General
* License along with this program. If not, see
* <http://www.gnu.org/licenses/>.
* Bugs:
* {note_any_bugs_here}
*-
*/
/* Pi */
static const double PAL__DPI = 3.1415926535897932384626433832795028841971693993751;
/* 2Pi */
static const double PAL__D2PI = 6.2831853071795864769252867665590057683943387987502;
/* pi/2: 90 degrees in radians */
static const double PAL__DPIBY2 = 1.5707963267948966192313216916397514420985846996876;
( run in 1.700 second using v1.01-cache-2.11-cpan-5837b0d9d2c )