MCPcopy Create free account
hub / github.com/LOOHP/Limbo / distance

Method distance

src/main/java/com/loohp/limbo/location/Location.java:314–316  ·  view source on GitHub ↗

Get the distance between this location and another. The value of this method is not cached and uses a costly square-root function, so do not repeatedly call this method to get the location's magnitude. NaN will be returned if the inner result of the sqrt() function overflows, which will be caused if

(Location o)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 1

distanceSquaredMethod · 0.95

Tested by

no test coverage detected