summaryrefslogtreecommitdiff
path: root/2004/i/nono/src/motor/test_goto_hermite.cc
diff options
context:
space:
mode:
Diffstat (limited to '2004/i/nono/src/motor/test_goto_hermite.cc')
-rw-r--r--2004/i/nono/src/motor/test_goto_hermite.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/2004/i/nono/src/motor/test_goto_hermite.cc b/2004/i/nono/src/motor/test_goto_hermite.cc
index 431347a..bfa8b1e 100644
--- a/2004/i/nono/src/motor/test_goto_hermite.cc
+++ b/2004/i/nono/src/motor/test_goto_hermite.cc
@@ -25,10 +25,17 @@
#include "goto_hermite.h"
#include <cstdlib>
+#include <iostream>
int
main (int argc, char **argv)
{
+ if (argc < 3)
+ {
+ std::cerr <<
+ "test_goto_hermite - teste la généation de courbes d'hermite.\n"
+ " <x> <y> destination" << std::endl;
+ }
GotoHermite g (0);
for (int i = 1; i < argc - 1; i += 2)
g.add (atof (argv[i]), atof (argv[i + 1]));