aboutsummaryrefslogtreecommitdiff
path: root/problem.cpp
diff options
context:
space:
mode:
authorAlex Auvolat <alex.auvolat@ens.fr>2015-02-02 12:11:58 +0100
committerAlex Auvolat <alex.auvolat@ens.fr>2015-02-02 12:11:58 +0100
commit72a70d44ab6768ee9d82f13d536b4951841cc9df (patch)
tree3d579dfc04ec86070a29d6f894be6eec36e70fe0 /problem.cpp
parentcc87971a493e760b00fa9f78e985727979b95c76 (diff)
downloadRobotique-Projet-72a70d44ab6768ee9d82f13d536b4951841cc9df.tar.gz
Robotique-Projet-72a70d44ab6768ee9d82f13d536b4951841cc9df.zip
Populate README
Diffstat (limited to 'problem.cpp')
-rw-r--r--problem.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/problem.cpp b/problem.cpp
index c919710..bcae056 100644
--- a/problem.cpp
+++ b/problem.cpp
@@ -110,7 +110,7 @@ vector<solution> solution::direct_sol(const hilare_a &pos_a, const hilare_a &pos
int eps[4][2] = { { 1, 1 }, { 1, -1 }, { -1, 1 }, { -1, -1 } };
double delta = cca.x * ccb.y - cca.y * ccb.x;
- assert(delta != 0);
+ if (delta == 0) return ret; // no solution in this case, we count on direct_sol_r
for (int i_eps = 0; i_eps < 4; i_eps++) {
int ea = eps[i_eps][0];