Fixed typo from last commit

master
Stefan Jahn 3 years ago
parent c8de10a208
commit 4f1d3a1a26

@ -59,7 +59,7 @@ public:
double perpendicular(position_f_2d &pos, position_f_2d &base) { double perpendicular(position_f_2d &pos, position_f_2d &base) {
position_f_2d p = pos - base; position_f_2d p = pos - base;
double l = p.length(); 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); } double length() { return hypot(x, y); }

Loading…
Cancel
Save