distanceTo

abstract fun distanceTo(otherPosition: P): Double

Computes the distance between this position and another compatible position.

Return

the distance between this and p

Parameters

otherPosition
    the position you want to know the distance to