distanceTo

abstract fun distanceTo(other: P): Double

Computes the distance between this position and another compatible position.

Return

the distance between this and p

Parameters

other
the position you want to know the distance to