From d6cef8b0585dcadd7a4c6c5811e127fce8436ec3 Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Sun, 1 Feb 2015 15:08:32 +0100 Subject: Add info to problem.cpp --- problem.cpp | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'problem.cpp') diff --git a/problem.cpp b/problem.cpp index 25061c5..8078c33 100644 --- a/problem.cpp +++ b/problem.cpp @@ -8,6 +8,7 @@ using namespace std; double hilare_a_mvt::length() { // returns length traveled by the car + // TODO : two cases return domega * (center - from.pos()).norm(); } @@ -28,8 +29,17 @@ bool hilare_a_mvt::intersects(const problem &p) const { // ================================= // solution solution::direct_sol(const hilare_a &pos_a, const hilare_a &pos_b) { + vector sol; + // TODO: try different possibilities and chose the shortest one - return solution(vector()); + hilare_a_mvt mvt; + mvt.from = pos_a; + mvt.to = pos_b; + mvt.is_arc = false; + // la suite à compléter + sol.push_back(mvt); + + return solution(sol); } // =============================== // -- cgit v1.2.3 From 3b8497a4d6c71ac542a2992a645c00bf99d45390 Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Sun, 1 Feb 2015 17:17:35 +0100 Subject: Implement movement rendering --- problem.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'problem.cpp') diff --git a/problem.cpp b/problem.cpp index 8078c33..e56b0b3 100644 --- a/problem.cpp +++ b/problem.cpp @@ -46,6 +46,12 @@ solution solution::direct_sol(const hilare_a &pos_a, const hilare_a &pos_b) { // IMPLEMENTATION FOR CLASS SOLVER // // =============================== // -// TODO +solver::solver() { + // nothing ? +} + +solver_internal solver::peek_internal() { + return _d; +} /* vim: set ts=4 sw=4 tw=0 noet :*/ -- cgit v1.2.3