summaryrefslogtreecommitdiffstats
path: root/src/math
diff options
context:
space:
mode:
authorPiotr Dziwinski <piotrdz@gmail.com>2013-05-26 17:47:54 +0200
committerPiotr Dziwinski <piotrdz@gmail.com>2013-05-27 10:19:16 +0200
commit8765d58b02c9afd00186bae4a0045dff32f7d102 (patch)
tree884cd72d4b8b2fabbd109001412e315aa908b0e8 /src/math
parent538745a731d07facd7a1574c04a5d34d23ce3bfa (diff)
downloadcolobot-8765d58b02c9afd00186bae4a0045dff32f7d102.tar.gz
colobot-8765d58b02c9afd00186bae4a0045dff32f7d102.tar.bz2
colobot-8765d58b02c9afd00186bae4a0045dff32f7d102.zip
Fixed code formatting
* moved braces to new lines * fixed some function/variable names * fixed whitespace issues
Diffstat (limited to 'src/math')
-rw-r--r--src/math/README.txt1
-rw-r--r--src/math/all.h1
-rw-r--r--src/math/const.h1
-rw-r--r--src/math/func.h1
-rw-r--r--src/math/geometry.h1
-rw-r--r--src/math/intpoint.h1
-rw-r--r--src/math/matrix.h1
-rw-r--r--src/math/point.h1
-rw-r--r--src/math/vector.h1
9 files changed, 9 insertions, 0 deletions
diff --git a/src/math/README.txt b/src/math/README.txt
index 26069aa..fcc204f 100644
--- a/src/math/README.txt
+++ b/src/math/README.txt
@@ -10,3 +10,4 @@
* This namespace was created to avoid clashing with old code, but now it still serves,
* defining a border between math and non-math-related code.
*/
+
diff --git a/src/math/all.h b/src/math/all.h
index 10c17a9..7d716c8 100644
--- a/src/math/all.h
+++ b/src/math/all.h
@@ -28,3 +28,4 @@
#include "math/vector.h"
#include "math/matrix.h"
#include "math/geometry.h"
+
diff --git a/src/math/const.h b/src/math/const.h
index 8318b7a..fee635e 100644
--- a/src/math/const.h
+++ b/src/math/const.h
@@ -53,3 +53,4 @@ const float LOG_2 = log(2.0f);
} // namespace Math
+
diff --git a/src/math/func.h b/src/math/func.h
index 83e8ca4..98111c5 100644
--- a/src/math/func.h
+++ b/src/math/func.h
@@ -263,3 +263,4 @@ inline float Bounce(float progress, float middle = 0.3f, float bounce = 0.4f)
} // namespace Math
+
diff --git a/src/math/geometry.h b/src/math/geometry.h
index 23c149c..9dcb447 100644
--- a/src/math/geometry.h
+++ b/src/math/geometry.h
@@ -643,3 +643,4 @@ inline Math::Vector RotateView(Math::Vector center, float angleH, float angleV,
} // namespace Math
+
diff --git a/src/math/intpoint.h b/src/math/intpoint.h
index 010b0fb..872e614 100644
--- a/src/math/intpoint.h
+++ b/src/math/intpoint.h
@@ -59,3 +59,4 @@ struct IntPoint
} // namespace Math
+
diff --git a/src/math/matrix.h b/src/math/matrix.h
index e0cf492..67ccb48 100644
--- a/src/math/matrix.h
+++ b/src/math/matrix.h
@@ -462,3 +462,4 @@ inline Math::Vector MatrixVectorMultiply(const Math::Matrix &m, const Math::Vect
} // namespace Math
+
diff --git a/src/math/point.h b/src/math/point.h
index 456fe1e..65de94c 100644
--- a/src/math/point.h
+++ b/src/math/point.h
@@ -191,3 +191,4 @@ inline float Distance(const Point &a, const Point &b)
} // namespace Math
+
diff --git a/src/math/vector.h b/src/math/vector.h
index 73e8e44..38886d0 100644
--- a/src/math/vector.h
+++ b/src/math/vector.h
@@ -281,3 +281,4 @@ inline Vector Clamp(const Vector &vec, const Vector &min, const Vector &max)
} // namespace Math
+