Influence of the dynamics of space on the spatial distance
Modeling the distance depends directly on the metric space. In the Euclidean metrics, the distance between two points is the
length of the straight line connecting them. The calculation is based on the coordinates of the two points, cf. illustration
below.
If the path is constrained and the movement cannot follow a linear network and the different segments which the path is composed
of have different energy costs (if the coefficient of friction varies from one spatial unit to another), the weighted
distance is
calculated as follows:
The principle of the calculation is the same as in the case in which the ambler is free to choose his path. The coefficient
of friction becomes an attribute of each mesh.