invoke

abstract operator fun invoke(start: Location, end: Location): Double(source)

Calculates the cost of traveling between two locations. The cost should be positive and non-negative.


open operator fun invoke(start: Locatable, end: Locatable): Double(source)

Calculates the cost of traveling between two locatable objects. The cost should be positive and non-negative. Note: If at least on of the locatable objects is a de.jvstvshd.vyreka.core.Movable, only the current location will be considered.