aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorYann Herklotz <ymherklotz@gmail.com>2017-05-19 20:08:23 +0100
committerYann Herklotz <ymherklotz@gmail.com>2017-05-19 20:08:23 +0100
commit3308d13ad04fac43e7a111b299ff9444aea4ab9f (patch)
tree54a91113f75e506318101acf3151d3b11d309e96 /test
parente15b2c6dd405d008d9e892608c209fd980bcd8ff (diff)
downloadYAGE-3308d13ad04fac43e7a111b299ff9444aea4ab9f.tar.gz
YAGE-3308d13ad04fac43e7a111b299ff9444aea4ab9f.zip
Adding math to yage
Diffstat (limited to 'test')
-rw-r--r--test/double_size.cpp11
-rw-r--r--test/rigid_body_test.cpp4
-rw-r--r--test/vector2d_test.cpp2
3 files changed, 15 insertions, 2 deletions
diff --git a/test/double_size.cpp b/test/double_size.cpp
new file mode 100644
index 00000000..25c7cef7
--- /dev/null
+++ b/test/double_size.cpp
@@ -0,0 +1,11 @@
+#include <iostream>
+
+int main()
+{
+ std::cout<<"Size of double: "<<sizeof(double)<<'\n';
+ std::cout<<"Size of long double: "<<sizeof(long double)<<'\n';
+
+ if(sizeof(long double) > 8)
+ return 0;
+ return 1;
+}
diff --git a/test/rigid_body_test.cpp b/test/rigid_body_test.cpp
index 39488599..b898a1b4 100644
--- a/test/rigid_body_test.cpp
+++ b/test/rigid_body_test.cpp
@@ -1,10 +1,10 @@
-#include "Physics/rigidbody.hpp"
+#include "Physics/particlebody.hpp"
#include <iostream>
int main(int, char**)
{
- yage::RigidBody body(glm::vec2(0.f, 0.f), 1, glm::vec2(0.f, 9.81f));
+ yage::ParticleBody body;
for(int i=0; i<60*3; ++i)
{
body.update();
diff --git a/test/vector2d_test.cpp b/test/vector2d_test.cpp
new file mode 100644
index 00000000..2c37bba7
--- /dev/null
+++ b/test/vector2d_test.cpp
@@ -0,0 +1,2 @@
+#include <YAGE/Math/vector2d.hpp>
+