Constructor and Description |
---|
EnvelopeDistance() |
Modifier and Type | Method and Description |
---|---|
static double |
maximumDistance(Envelope env1,
Envelope env2)
Computes the maximum distance between the points defining two envelopes.
|
static double |
minMaxDistance(Envelope a,
Envelope b)
Computes the Min-Max Distance between two
Envelope s. |
public static double maximumDistance(Envelope env1, Envelope env2)
env1
- an envelopeenv2
- an envelopepublic static double minMaxDistance(Envelope a, Envelope b)
Envelope
s.
It is equal to the minimum of the maximum distances between all pairs of
edge segments from the two envelopes.
This is the tight upper bound on the distance between
geometric items bounded by the envelopes.
Theoretically this bound can be used in the R-tree nearest-neighbour branch-and-bound search
instead of maximumDistance(Envelope, Envelope)
.
However, little performance improvement is observed in practice.
a
- an envelopeb
- an envelopeCopyright © 2024. All rights reserved.