org.jmol.bspt
class Node extends Element
The current implementation allows for the case where the maximum left value is == the minimum right value. This can happen when the tree is filled with coordinate values that contain the same value along one dimension ... as with very regular crystals
The tree is not kept balanced.
Modifier and Type | Field and Description |
---|---|
(package private) int |
dim |
(package private) Element |
eleLeft |
(package private) Element |
eleRight |
(package private) float |
maxLeft |
(package private) float |
maxRight |
(package private) float |
minLeft |
(package private) float |
minRight |
Constructor and Description |
---|
Node(Bspt bspt,
int level,
Leaf leafLeft) |
Modifier and Type | Method and Description |
---|---|
(package private) Element |
addTuple(int level,
Point3f tuple) |
(package private) void |
dump(int level,
StringBuffer sb) |
(package private) static float |
getDimensionValue(Point3f pt,
int dim) |
String |
toString() |
int dim
float minLeft
float maxLeft
Element eleLeft
float minRight
float maxRight
Element eleRight
void dump(int level, StringBuffer sb)
static float getDimensionValue(Point3f pt, int dim)