From 1dff2ab8390a31459cb85fd48c9d02a2400a7411 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Oudin?= Date: Mon, 12 Feb 2018 01:12:31 +0100 Subject: [PATCH] test for a ball --- main_ball.cpp | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 main_ball.cpp diff --git a/main_ball.cpp b/main_ball.cpp new file mode 100644 index 0000000..4738b02 --- /dev/null +++ b/main_ball.cpp @@ -0,0 +1,19 @@ +/** + * Test file for the movement of a ball. + **/ + +#include "Ball.hpp" +#include +#include + +using namespace std; + +int main(int argc, char** argv) { + int i; + Point center(0,0,10); + Ball ball(center, 0, 1, 1); + for(i=0; i< 100; i++) { + ball.update_pos(0.2); + cout << ball << "\n"; + } +}