public final class DistanceUtil extends Object
Constructor and Description |
---|
DistanceUtil() |
Modifier and Type | Method and Description |
---|---|
static <D extends Distance<D>> |
max(D d1,
D d2)
Returns the maximum of the given Distances or the first, if none is greater
than the other one.
|
static <D extends Distance<D>> |
min(D d1,
D d2)
Returns the minimum of the given Distances or the first, if none is less
than the other one.
|
public static <D extends Distance<D>> D max(D d1, D d2)
D
- distance typed1
- first Distanced2
- second Distancepublic static <D extends Distance<D>> D min(D d1, D d2)
D
- distance typed1
- first Distanced2
- second Distance