|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.miv.pherd.ntree.CellSpace
org.miv.pherd.ntree.QuadtreeCellSpace
public class QuadtreeCellSpace
Cell space for a quadtree.
This cell space defines four subcells for each cell subdivision.
| Field Summary | |
|---|---|
protected Anchor |
C
|
| Fields inherited from class org.miv.pherd.ntree.CellSpace |
|---|
diag, hi, lo |
| Constructor Summary | |
|---|---|
QuadtreeCellSpace(Anchor lo,
Anchor hi)
|
|
| Method Summary | |
|---|---|
boolean |
contains(double x,
double y)
|
boolean |
contains(double x,
double y,
double z)
Does this space contains the given position. |
boolean |
contains(Particle particle)
Does this space contains the given particle?. |
int |
getDivisions()
Number of sub-cells to create to divide a cell. |
CellSpace |
newSubCellSpace(int i)
Create the appropriate cell space for the given sub-cell index. |
void |
resize(Point3 min,
Point3 max)
Resize this space to the given bounding box. |
String |
toString()
|
| Methods inherited from class org.miv.pherd.ntree.CellSpace |
|---|
contains2, getHiAnchor, getLoAnchor, getSize |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected Anchor C
| Constructor Detail |
|---|
public QuadtreeCellSpace(Anchor lo,
Anchor hi)
| Method Detail |
|---|
public int getDivisions()
CellSpace
getDivisions in class CellSpacepublic boolean contains(Particle particle)
contains in class CellSpaceparticle - The particle to classify.
public boolean contains(double x,
double y,
double z)
CellSpace
contains in class CellSpacex - The abscissa.y - The ordinate.z - The depth.
public boolean contains(double x,
double y)
public CellSpace newSubCellSpace(int i)
CellSpace
newSubCellSpace in class CellSpacei - The sub-cell index, must be equal or larger than zero and less
than CellSpace.getDivisions().
public String toString()
toString in class Object
public void resize(Point3 min,
Point3 max)
CellSpace
resize in class CellSpacemin - The lowest point (bottom-left-front).max - The highest point (top-right-back).
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||