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