From 4f1d3a1a26d1172331e16fb4a94823ea02cf262b Mon Sep 17 00:00:00 2001 From: Stefan Jahn Date: Sun, 5 Feb 2023 01:49:08 +0100 Subject: [PATCH] Fixed typo from last commit --- gui.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gui.h b/gui.h index 641d039..93a6937 100644 --- a/gui.h +++ b/gui.h @@ -59,7 +59,7 @@ public: double perpendicular(position_f_2d &pos, position_f_2d &base) { position_f_2d p = pos - base; double l = p.length(); - return l == 0.0 ? 0.0 : l = sinalpha(p); + return l == 0.0 ? 0.0 : l * sinalpha(p); } double length() { return hypot(x, y); }