Mercurial > fife-parpg
comparison engine/core/util/math/math.i @ 623:684e5537eef7
* Moving the math constants to the FIFE namespace
* Added swig interfaces for the math constants
author | prock@33b003aa-7bff-0310-803a-e67f0ece8222 |
---|---|
date | Fri, 01 Oct 2010 16:26:22 +0000 |
parents | |
children | 07b1cf8e92b5 |
comparison
equal
deleted
inserted
replaced
622:c0c3f64bfc2d | 623:684e5537eef7 |
---|---|
1 /*************************************************************************** | |
2 * Copyright (C) 2005-2010 by the FIFE team * | |
3 * http://www.fifengine.net * | |
4 * This file is part of FIFE. * | |
5 * * | |
6 * FIFE is free software; you can redistribute it and/or * | |
7 * modify it under the terms of the GNU Lesser General Public * | |
8 * License as published by the Free Software Foundation; either * | |
9 * version 2.1 of the License, or (at your option) any later version. * | |
10 * * | |
11 * This library is distributed in the hope that it will be useful, * | |
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of * | |
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * | |
14 * Lesser General Public License for more details. * | |
15 * * | |
16 * You should have received a copy of the GNU Lesser General Public * | |
17 * License along with this library; if not, write to the * | |
18 * Free Software Foundation, Inc., * | |
19 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * | |
20 ***************************************************************************/ | |
21 %module fife | |
22 | |
23 %{ | |
24 #include "util/math/fife_math.h" | |
25 %} | |
26 | |
27 namespace FIFE { | |
28 | |
29 static const float FLT_ZERO_TOLERANCE; | |
30 static const float FLT_PI; | |
31 static const float FLT_TWO_PI; | |
32 static const float FLT_HALF_PI; | |
33 static const float FLT_INVERSE_PI; | |
34 static const float FLT_INVERSE_TWO_PI; | |
35 static const float FLT_DEG_TO_RAD; | |
36 static const float FLT_RAD_TO_DEG; | |
37 static const float FLT_LOG_2; | |
38 static const float FLT_LOG_10; | |
39 static const float FLT_INV_LOG_2; | |
40 static const float FLT_INV_LOG_10; | |
41 | |
42 static const double DBL_ZERO_TOLERANCE; | |
43 static const double DBL_PI; | |
44 static const double DBL_TWO_PI; | |
45 static const double DBL_HALF_PI; | |
46 static const double DBL_INVERSE_PI; | |
47 static const double DBL_INVERSE_TWO_PI; | |
48 static const double DBL_DEG_TO_RAD; | |
49 static const double DBL_RAD_TO_DEG; | |
50 static const double DBL_LOG_2; | |
51 static const double DBL_LOG_10; | |
52 static const double DBL_INV_LOG_2; | |
53 static const double DBL_INV_LOG_10; | |
54 | |
55 } |