|distance between agents [message #779443]
||Sun, 15 January 2012 18:57
Registered: October 2011
I was wondering what exactly does the function org.ascape.model.Scape.calculateDistance(LocatedAgent origin,LocatedAgent target)
calculates.Does it calculate the distance according to the option that has been chosen for the Neighborhood of the Space (Moore,Euclidian,Von_Neumann)? As I noticed by observing the values that the function returns, I think that is calculates only the difference of the x coordinate.For example, for the distance between agent1, whose hostCell is [8,14], and agent2, whose hostCell is [13,33], it returns 5 (13-8).
Agent1 Cell [8, 14]
Agent2 Cell [13, 33]
In this example, if I have understood well the meaning of the Moore distance, I think that the Moore distance is 19. Is there any other function that returns this distance?
Powered by FUDForum
. Page generated in 0.01976 seconds