| 1 |
< |
/* |
| 1 |
> |
/* |
| 2 |
|
* Copyright (c) 2005 The University of Notre Dame. All Rights Reserved. |
| 3 |
|
* |
| 4 |
|
* The University of Notre Dame grants you ("Licensee") a |
| 39 |
|
* such damages. |
| 40 |
|
*/ |
| 41 |
|
|
| 42 |
< |
/** |
| 43 |
< |
* @file NumericConstant.hpp |
| 44 |
< |
* @author teng lin |
| 45 |
< |
* @date 11/17/2004 |
| 46 |
< |
* @time 23:33am |
| 47 |
< |
* @version 1.0 |
| 48 |
< |
*/ |
| 42 |
> |
/** |
| 43 |
> |
* @file NumericConstant.hpp |
| 44 |
> |
* @author teng lin |
| 45 |
> |
* @date 11/17/2004 |
| 46 |
> |
* @time 23:33am |
| 47 |
> |
* @version 1.0 |
| 48 |
> |
*/ |
| 49 |
|
|
| 50 |
|
#ifndef UTILS_NUMERICCONSTANT_HPP |
| 51 |
|
#define UTILS_NUMERICCONSTANT_HPP |
| 52 |
|
#include <cmath> |
| 53 |
+ |
#include <limits> |
| 54 |
|
namespace oopse { |
| 55 |
|
|
| 56 |
< |
/** |
| 57 |
< |
* @class NumericConstant NumericConstant.hpp "utils/NumericConstant.hpp" |
| 58 |
< |
* @todo document |
| 59 |
< |
*/ |
| 60 |
< |
namespace NumericConstant { |
| 56 |
> |
/** |
| 57 |
> |
* @class NumericConstant NumericConstant.hpp "utils/NumericConstant.hpp" |
| 58 |
> |
* @todo document |
| 59 |
> |
*/ |
| 60 |
> |
namespace NumericConstant { |
| 61 |
|
|
| 62 |
< |
static const double epsilon = 0.000001; |
| 62 |
> |
static const double epsilon = std::numeric_limits<double>::epsilon(); |
| 63 |
|
static const double PI = M_PI; |
| 64 |
|
static const double TWO_PI = 2.0 * PI; |
| 65 |
< |
} |
| 65 |
> |
} |
| 66 |
|
|
| 67 |
|
|
| 68 |
|
} //end namespace oopse |