/*  
    Geodesy and Mapping C++ Library (GNU GaMa / GaMaLib)
    Copyright (C) 2000  Ales Cepek <cepek@fsv.cvut.cz>

    This file is part of the GNU GaMa / GaMaLib C++ Library.
    
    This library is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation; either version 2 of the License, or
    (at your option) any later version.

    This library 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 General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this library; if not, write to the Free Software
    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
*/

/*
 *  $Id: float.h,v 1.1 2001/12/07 12:22:42 cepek Exp $
 */

#ifndef GaMaLib___Float_h
#define GaMaLib___Float_h

#include <cmath>

namespace GaMaLib {

typedef double Double;
typedef double Float;

inline double abs(double x)           { return x >= 0 ? x : -x; }
inline double max(double x, double y) { return x >= y ? x : y; }
inline double min(double x, double y) { return x <= y ? x : y; }


#ifdef _MSC_VER
   #ifndef M_PI
   #define M_PI 3.14159265358979323846
   #endif
#endif

#define R2G  200.0/M_PI
#define G2R  M_PI/200.0
#define R2CC 200.0E4/M_PI
#define CC2R M_PI/200.0E4

}   // namespace GaMaLib

#endif








