Skip to content
Snippets Groups Projects
Commit dcc70924 authored by phwitte's avatar phwitte
Browse files

Update agent2.1.py

parent 916fec03
No related branches found
No related tags found
No related merge requests found
......@@ -88,8 +88,10 @@ def neigbour_in_zones(a, aas, zor_r, zoo_r, zoa_r, blind):
for agent in aas:
#alpha = calc_angle(agent[0].getX(), agent[0].getY(),a[1],a[2])
alpha = calc_angle(agent[1], agent[2],a[1],a[2])
disVecX = agent[0].getX() - a[0].getX()
disVecY = agent[0].getY() - a[0].getY()
alpha = calc_angle(a[1],a[2], disVecX, disVecY)
if (a == agent):
True
elif alpha < 180 - blind and alpha > 180 + blind:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment