|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.vividsolutions.jts.index.quadtree.IntervalSize
Provides a test for whether an interval is so small it should be considered as zero for the purposes of inserting it into a binary tree. The reason this check is necessary is that round-off error can cause the algorithm used to subdivide an interval to fail, by computing a midpoint value which does not lie strictly between the endpoints.
Field Summary | |
static int |
MIN_BINARY_EXPONENT
This value is chosen to be a few powers of 2 less than the number of bits available in the double representation (i.e. |
Constructor Summary | |
IntervalSize()
|
Method Summary | |
static boolean |
isZeroWidth(double min,
double max)
Computes whether the interval [min, max] is effectively zero width. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int MIN_BINARY_EXPONENT
Constructor Detail |
public IntervalSize()
Method Detail |
public static boolean isZeroWidth(double min, double max)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |