00001 /* 00002 * Author: Pawel A.Penczek, 09/09/2006 (Pawel.A.Penczek@uth.tmc.edu) 00003 * Copyright (c) 2000-2006 The University of Texas - Houston Medical School 00004 * 00005 * This software is issued under a joint BSD/GNU license. You may use the 00006 * source code in this file under either license. However, note that the 00007 * complete EMAN2 and SPARX software packages have some GPL dependencies, 00008 * so you are responsible for compliance with the licenses of these packages 00009 * if you opt to use BSD licensing. The warranty disclaimer below holds 00010 * in either instance. 00011 * 00012 * This complete copyright notice must be included in any revised version of the 00013 * source code. Additional authorship citations may be added, but existing 00014 * author citations must be preserved. 00015 * 00016 * This program is free software; you can redistribute it and/or modify 00017 * it under the terms of the GNU General Public License as published by 00018 * the Free Software Foundation; either version 2 of the License, or 00019 * (at your option) any later version. 00020 * 00021 * This program is distributed in the hope that it will be useful, 00022 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00023 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00024 * GNU General Public License for more details. 00025 * 00026 * You should have received a copy of the GNU General Public License 00027 * along with this program; if not, write to the Free Software 00028 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00029 * 00030 */ 00031 00032 #ifndef EMCONSTANTS_H 00033 #define EMCONSTANTS_H 00034 00035 #include <cmath> 00036 #include <complex> 00037 const long double pi = 3.141592653589793238462643383279502884197L; 00038 const long double twopi = 2*pi; 00039 const long double pihalf = pi/2; 00040 const long double dgr_to_rad = pi/180; 00041 const long double rad_to_dgr = 180/pi; 00042 const double e_base = std::exp(1.); 00043 const double sqrt2 = std::sqrt(2.); 00044 const std::complex<float> iimag(0.f,1.f); 00045 00046 #endif // EMCONSTANTS_H