Coordinate.distanceTo

Returns the Vivaldi distance to other in estimated round-trip time.

To include adjustments in a hybrid coordinate system, see Node.

struct Coordinate(size_t dims, double maxError = 1.5, double minHeight = 1.0e-5, double ce = 0.25, double cc = 0.25, double rho = 150.0)
const pure nothrow @safe @nogc
double
distanceTo
(
const ref Coordinate other
)
if (
dims > 0 &&
isValid01!ce
&&
isValid01!cc
&&
isFinite(rho)
&&
rho > 0.0
)

Meta