|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jmol.bspt.SphereIterator
public class SphereIterator
Iterator used for finding all points within a sphere or a hemisphere
Obtain a SphereIterator by calling Bspt.allocateSphereIterator().
call initialize(...) or initializeHemizphere(...)
re-initialize in order to reuse the same SphereIterator
| Method Summary | |
|---|---|
float |
foundDistance2()
After calling nextElement(), allows one to find out the value of the distance squared. |
boolean |
hasMoreElements()
normal iterator predicate |
void |
initialize(Tuple center,
float radius)
initialize to return all points within the sphere defined by center and radius |
void |
initializeHemisphere(Tuple center,
float radius)
initialize to return all points within the hemisphere defined by center and radius. |
Tuple |
nextElement()
normal iterator method |
void |
release()
nulls internal references |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public void initialize(Tuple center,
float radius)
center - radius -
public void initializeHemisphere(Tuple center,
float radius)
the points returned are those that have a coordinate value >= to center along the first (x) dimension
Note that if you are iterating through all points, and two points are within radius and have the same x coordinate, then each will return the other.
center - radius - public void release()
public boolean hasMoreElements()
public Tuple nextElement()
public float foundDistance2()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||