mirror of
https://git.coom.tech/drummyfish/raycastlib.git
synced 2024-11-21 20:29:59 +01:00
Fix a bug
This commit is contained in:
parent
1142ceb1ba
commit
bb09c50496
1 changed files with 1 additions and 1 deletions
|
@ -195,7 +195,7 @@ Unit dist(Vector2D p1, Vector2D p2)
|
||||||
{
|
{
|
||||||
Unit dx = p2.x - p1.x;
|
Unit dx = p2.x - p1.x;
|
||||||
Unit dy = p2.y - p1.y;
|
Unit dy = p2.y - p1.y;
|
||||||
return sqrtInt(((uint16_t) dx * dx) + ((uint16_t) dy * dy));
|
return sqrtInt((dx * dx) + (dy * dy));
|
||||||
}
|
}
|
||||||
|
|
||||||
int8_t pointIsLeftOfRay(Vector2D point, Ray ray)
|
int8_t pointIsLeftOfRay(Vector2D point, Ray ray)
|
||||||
|
|
Loading…
Reference in a new issue