alchemist-interfaces / it.unibo.alchemist.model.interfaces / Environment / getDistanceBetweenNodes

getDistanceBetweenNodes

abstract fun getDistanceBetweenNodes(n1: Node<T>!, n2: Node<T>!): Double

Measures the distance between two nodes in the environment.

Parameters

n1 - Node<T>!: the first node

n2 - Node<T>!: the second node

Return
Double: the distance between the two nodes