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 |
---|---|
private Bspt |
bspt |
private float |
cx |
private float |
cy |
private float |
cz |
private float |
dx |
private float |
dy |
private float |
dz |
private Leaf |
leaf |
private int |
leafIndex |
private float |
radius |
private int |
sp |
private Element[] |
stack |
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(javajs.util.T3 center,
float radius,
boolean hemisphereOnly)
initialize to return all points within the sphere defined
by center and radius
|
private boolean |
isWithinRadius(javajs.util.T3 t)
checks one Point3f for distance
|
javajs.util.T3 |
nextElement()
normal iterator method
|
void |
release()
nulls internal references
|
(package private) void |
set(Bspt bspt) |
private Bspt bspt
private Element[] stack
private int sp
private int leafIndex
private Leaf leaf
private float radius
private float cx
private float cy
private float cz
private float dx
private float dy
private float dz
private boolean tHemisphere
CubeIterator(Bspt bspt)
void set(Bspt bspt)
public void initialize(javajs.util.T3 center, float radius, boolean hemisphereOnly)
center
- radius
- hemisphereOnly
- public void release()
public boolean hasMoreElements()
public javajs.util.T3 nextElement()
public float foundDistance2()
private void findLeftLeaf()
private boolean isWithinRadius(javajs.util.T3 t)
t
-