diff options
author | Yann Herklotz <ymherklotz@gmail.com> | 2017-05-19 20:08:23 +0100 |
---|---|---|
committer | Yann Herklotz <ymherklotz@gmail.com> | 2017-05-19 20:08:23 +0100 |
commit | 3308d13ad04fac43e7a111b299ff9444aea4ab9f (patch) | |
tree | 54a91113f75e506318101acf3151d3b11d309e96 /test | |
parent | e15b2c6dd405d008d9e892608c209fd980bcd8ff (diff) | |
download | YAGE-3308d13ad04fac43e7a111b299ff9444aea4ab9f.tar.gz YAGE-3308d13ad04fac43e7a111b299ff9444aea4ab9f.zip |
Adding math to yage
Diffstat (limited to 'test')
-rw-r--r-- | test/double_size.cpp | 11 | ||||
-rw-r--r-- | test/rigid_body_test.cpp | 4 | ||||
-rw-r--r-- | test/vector2d_test.cpp | 2 |
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> + |