]> Dogcows Code - chaz/yoink/blob - src/moof/cml/mathlib/epsilon.h
fixes for newer versions of g++
[chaz/yoink] / src / moof / cml / mathlib / epsilon.h
1 /* -*- C++ -*- ------------------------------------------------------------
2
3 Copyright (c) 2007 Jesse Anders and Demian Nave http://cmldev.net/
4
5 The Configurable Math Library (CML) is distributed under the terms of the
6 Boost Software License, v1.0 (see cml/LICENSE for details).
7
8 *-----------------------------------------------------------------------*/
9 /** @file
10 * @brief
11 */
12
13 #ifndef epsilon_h
14 #define epsilon_h
15
16 namespace cml {
17
18 /* @todo: epsilon and tolerance handling.
19 *
20 * @note This is a placeholder for a more sophisticated epsilon/tolerance
21 * system.
22 */
23
24 template < typename Real >
25 struct epsilon
26 {
27 typedef Real value_type;
28
29 private:
30
31 /** For convenience */
32 typedef value_type T;
33
34 public:
35
36 static T placeholder() {
37 /* Completely arbitrary placeholder value: */
38 return T(0.0001);
39 }
40 };
41
42 } // namespace cml
43
44 #endif
This page took 0.030322 seconds and 4 git commands to generate.