Skip to content
Snippets Groups Projects
Commit 8b39f743 authored by Aleksandras Kostarevas's avatar Aleksandras Kostarevas
Browse files

Fix sqrt issue

parent ceee135d
No related branches found
No related tags found
No related merge requests found
......@@ -31,7 +31,7 @@ namespace util {
if(bx == 0 && by == 0) {
int dx = px - ax;
int dy = py - ay;
return (dx * dx + dy * dy);
return sqrtf((float)(dx * dx + dy * dy));
}
int p_dot_b = px * bx + py * by;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment