EnvelopeDistance class

Functions for computing distances between {@link Envelope}s.

@author mdavis

Constructors

EnvelopeDistance()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

distance(double x1, double y1, double x2, double y2) double
maxDistance(double ax1, double ay1, double ax2, double ay2, double bx1, double by1, double bx2, double by2) double
Computes the maximum distance between two line segments.
maximumDistance(Envelope env1, Envelope env2) double
Computes the maximum distance between the points defining two envelopes. It is equal to the length of the diagonal of the envelope containing both input envelopes. This is a coarse upper bound on the distance between geometries bounded by the envelopes.
minMaxDistance(Envelope a, Envelope b) double
Computes the Min-Max Distance between two {@link 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.