alchemist-interfaces / it.unibo.alchemist.model.interfaces / Position / getDistanceTo

getDistanceTo

abstract fun getDistanceTo(p: P): Double

Computes the distance between this position and another compatible position.

Parameters

p -

    the position you want to know the distance to

Return
the distance between this and p