sum

public Pair<D1, D2> sum(Pair<D1, D2> x, Pair<D1, D2> y)

Method to combine two distances

Return

the resulting distance

Parameters

x

first distance to combine

y

second distance to combine