distance

fun distance(a: A, b: A): Double(source)

Distance between two agents. Returns Double.NaN if either agent has no assigned position. Euclidean, or wrapped Euclidean if torus is true.


Distance between two points under this projection's metric (Euclidean, with torus wrap if enabled).