public class CubeIterator
extends java.lang.Object
Obtain a CubeIterator by calling Bspt.allocateCubeIterator().
call initialize(...) or initializeHemizphere(...)
re-initialize in order to reuse the same CubeIterator
Modifier and Type | Field and Description |
---|---|
(package private) Bspt |
bspt |
(package private) float[] |
centerValues |
private float |
cx |
private float |
cy |
private float |
cz |
protected float |
dx |
protected float |
dy |
protected float |
dz |
(package private) Leaf |
leaf |
(package private) int |
leafIndex |
(package private) float |
radius |
(package private) int |
sp |
(package private) Element[] |
stack |
(package private) boolean |
tHemisphere |
Constructor and Description |
---|
CubeIterator(Bspt bspt) |
Modifier and Type | Method and Description |
---|---|
private void |
findLeftLeaf()
does the work
|
float |
foundDistance2()
After calling nextElement(), allows one to find out
the value of the distance squared.
|
boolean |
hasMoreElements()
normal iterator predicate
|
void |
initialize(javax.vecmath.Point3f center,
float radius,
boolean hemisphereOnly)
initialize to return all points within the sphere defined
by center and radius
|
private boolean |
isWithinRadius(javax.vecmath.Point3f t)
checks one Point3f for distance
|
javax.vecmath.Point3f |
nextElement()
normal iterator method
|
void |
release()
nulls internal references
|
Bspt bspt
Element[] stack
int sp
int leafIndex
Leaf leaf
float radius
float[] centerValues
private float cx
private float cy
private float cz
protected float dx
protected float dy
protected float dz
boolean tHemisphere
CubeIterator(Bspt bspt)
public void initialize(javax.vecmath.Point3f center, float radius, boolean hemisphereOnly)
center
- radius
- hemisphereOnly
- public void release()
public boolean hasMoreElements()
public javax.vecmath.Point3f nextElement()
public float foundDistance2()
private void findLeftLeaf()
private boolean isWithinRadius(javax.vecmath.Point3f t)
t
-