--- trunk/src/utils/NumericConstant.hpp 2005/01/12 22:41:40 246 +++ trunk/src/utils/NumericConstant.hpp 2006/05/17 21:51:42 963 @@ -1,4 +1,4 @@ - /* +/* * Copyright (c) 2005 The University of Notre Dame. All Rights Reserved. * * The University of Notre Dame grants you ("Licensee") a @@ -39,29 +39,30 @@ * such damages. */ - /** - * @file NumericConstant.hpp - * @author teng lin - * @date 11/17/2004 - * @time 23:33am - * @version 1.0 - */ +/** + * @file NumericConstant.hpp + * @author teng lin + * @date 11/17/2004 + * @time 23:33am + * @version 1.0 + */ #ifndef UTILS_NUMERICCONSTANT_HPP #define UTILS_NUMERICCONSTANT_HPP #include +#include namespace oopse { -/** - * @class NumericConstant NumericConstant.hpp "utils/NumericConstant.hpp" - * @todo document - */ -namespace NumericConstant { + /** + * @class NumericConstant NumericConstant.hpp "utils/NumericConstant.hpp" + * @todo document + */ + namespace NumericConstant { - static const double epsilon = 0.000001; - static const double PI = M_PI; - static const double TWO_PI = 2.0 * PI; -} + static const RealType epsilon = std::numeric_limits::epsilon(); + static const RealType PI = M_PI; + static const RealType TWO_PI = 2.0 * PI; + } } //end namespace oopse