From 98ba22e7064db57316dfff1ae127feb3dceeb73e Mon Sep 17 00:00:00 2001 From: Justin Worthe Date: Thu, 31 Jul 2014 13:58:22 +0200 Subject: Initial commit --- docs/html/_maze_math_8cpp_source.html | 125 ++++++++++++++++++++++++++++++++++ 1 file changed, 125 insertions(+) create mode 100644 docs/html/_maze_math_8cpp_source.html (limited to 'docs/html/_maze_math_8cpp_source.html') diff --git a/docs/html/_maze_math_8cpp_source.html b/docs/html/_maze_math_8cpp_source.html new file mode 100644 index 0000000..f3bf757 --- /dev/null +++ b/docs/html/_maze_math_8cpp_source.html @@ -0,0 +1,125 @@ + + + + +Rally X: source/logic/MazeMath.cpp Source File + + + + + + + + + + + +
+ + +
+ + + + + + + + + + + + + +
+
Rally X + +
+
ELEN3009 Project by Justin Wernick and David Schneider
+
+
+ + + + + +
+
+
source/logic/MazeMath.cpp
+
+
+Go to the documentation of this file.
00001 #include "MazeMath.h"
+00002 
+00003 double MazeMath::round(double value)
+00004 {
+00005     if (static_cast<int>(value*10)%10 < 5)
+00006     {
+00007         return floor(value);
+00008     }
+00009     else
+00010     {
+00011         return ceil(value);
+00012     }
+00013 }
+00014 
+00015 double MazeMath::distance(double x1, double y1, double x2, double y2)
+00016 {
+00017     return sqrt(pow(x1-x2, 2) + pow(y1-y2, 2));
+00018 }
+
+
+ +
+ All Classes Files Functions Variables Typedefs Enumerations Enumerator
+ + +
+ +
+ + + + + + + -- cgit v1.2.3