1 /**********************************************************************
3 FILENAME: uiuc_convert.cpp
5 ----------------------------------------------------------------------
7 DESCRIPTION: reads conversion type and sets conversion factors
9 ----------------------------------------------------------------------
13 ----------------------------------------------------------------------
17 ----------------------------------------------------------------------
19 HISTORY: 02/22/2000 initial release
21 ----------------------------------------------------------------------
23 AUTHOR(S): Jeff Scott <jscott@mail.com>
25 ----------------------------------------------------------------------
29 ----------------------------------------------------------------------
31 INPUTS: -conversion type
33 ----------------------------------------------------------------------
35 OUTPUTS: -conversion factor
37 ----------------------------------------------------------------------
39 CALLED BY: uiuc_menu.cpp
41 ----------------------------------------------------------------------
45 ----------------------------------------------------------------------
47 COPYRIGHT: (C) 2000 by Michael Selig
49 This program is free software; you can redistribute it and/or
50 modify it under the terms of the GNU General Public License
51 as published by the Free Software Foundation.
53 This program is distributed in the hope that it will be useful,
54 but WITHOUT ANY WARRANTY; without even the implied warranty of
55 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
56 GNU General Public License for more details.
58 You should have received a copy of the GNU General Public License
59 along with this program; if not, write to the Free Software
60 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
61 USA or view http://www.gnu.org/copyleft/gpl.html.
63 **********************************************************************/
65 #include "uiuc_convert.h"
68 double uiuc_convert( int conversionType )
72 switch(conversionType)
76 /* no conversion, multiply by 1 */
82 /* convert from degrees to radians */
90 // end uiuc_convert.cpp