const.c

Go to the documentation of this file.
00001 /*                         C O N S T . C
00002  * BRL-CAD
00003  *
00004  * Copyright (c) 1989-2006 United States Government as represented by
00005  * the U.S. Army Research Laboratory.
00006  *
00007  * This library is free software; you can redistribute it and/or
00008  * modify it under the terms of the GNU Lesser General Public License
00009  * as published by the Free Software Foundation; either version 2 of
00010  * the License, or (at your option) any later version.
00011  *
00012  * This library is distributed in the hope that it will be useful, but
00013  * WITHOUT ANY WARRANTY; without even the implied warranty of
00014  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00015  * Library General Public License for more details.
00016  *
00017  * You should have received a copy of the GNU Lesser General Public
00018  * License along with this file; see the file named COPYING for more
00019  * information.
00020  */
00021 
00022 /** \addtogroup const */
00023 /*@{*/
00024 /** @file const.c
00025  * @brief
00026  *  Constants used by the ray tracing library.
00027  *
00028  * @par Source -
00029  *      SECAD/VLD Computing Consortium, Bldg 394
00030  *@n    The U. S. Army Ballistic Research Laboratory
00031  *@n    Aberdeen Proving Ground, Maryland  21005
00032  *
00033  */
00034 /*@}*/
00035 
00036 #ifndef lint
00037 static const char RCSmat[] = "@(#)$Header: /cvsroot/brlcad/brlcad/src/libbn/const.c,v 14.11 2006/09/04 05:12:43 lbutler Exp $ (BRL)";
00038 #endif
00039 
00040 #include "common.h"
00041 
00042 
00043 
00044 #include <stdio.h>
00045 #include "machine.h"
00046 #include "bu.h"
00047 #include "vmath.h"
00048 #include "bn.h"
00049 
00050 
00051 const double bn_pi      = 3.14159265358979323846;       /**< @brief pi */
00052 const double bn_twopi   = 6.28318530717958647692;       /**< @brief pi*2 */
00053 const double bn_halfpi  = 1.57079632679489661923;       /**< @brief pi/2 */
00054 const double bn_quarterpi=0.78539816339744830961;       /**< @brief  pi/4 */
00055 const double bn_invpi   = 0.318309886183790671538;      /**< @brief  1/pi */
00056 const double bn_inv2pi  = 0.159154943091895335769;      /**< @brief  1/(pi*2) */
00057 const double bn_inv4pi  = 0.07957747154594766788;       /**< @brief  1/(pi*4) */
00058 
00059 const double bn_inv255 = 1.0/255.0;
00060 
00061 const double bn_degtorad =  0.0174532925199433;         /**< @brief  (pi*2)/360 */
00062 const double bn_radtodeg = 57.29577951308230698802;     /**< @brief  360/(pi*2) */
00063 /*@}*/
00064 /*
00065  * Local Variables:
00066  * mode: C
00067  * tab-width: 8
00068  * c-basic-offset: 4
00069  * indent-tabs-mode: t
00070  * End:
00071  * ex: shiftwidth=4 tabstop=8
00072  */

Generated on Mon Sep 18 01:24:47 2006 for BRL-CAD by  doxygen 1.4.6