Class CubeIterator
java.lang.Object
org.jmol.bspt.CubeIterator
Iterator used for finding all points within a box or a hemi-box
Obtain a CubeIterator by calling Bspt.allocateCubeIterator().
call initialize(...) or initializeHemizphere(...)
re-initialize in order to reuse the same CubeIterator
- Author:
- Miguel, miguel@jmol.org
-
Method Summary
Modifier and TypeMethodDescriptionfloatAfter calling nextElement(), allows one to find out the value of the distance squared.booleannormal iterator predicatevoidinitialize(T3 center, float radius, boolean hemisphereOnly) initialize to return all points within the sphere defined by center and radiusnormal iterator methodvoidrelease()nulls internal references
-
Method Details
-
initialize
initialize to return all points within the sphere defined by center and radius- Parameters:
center-radius-hemisphereOnly-
-
release
public void release()nulls internal references -
hasMoreElements
public boolean hasMoreElements()normal iterator predicate- Returns:
- boolean
-
nextElement
-
foundDistance2
public float foundDistance2()After calling nextElement(), allows one to find out the value of the distance squared. To get the distance just take the sqrt.- Returns:
- float
-