Package com.irurueta.geometry
Class KDTree.BoxNode<P extends Point<P>>
java.lang.Object
com.irurueta.geometry.Box<P>
com.irurueta.geometry.KDTree.BoxNode<P>
- All Implemented Interfaces:
Serializable
Contains a node of a KD Tree.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate intPosition of 1st daughter node in the list of nodes of a tree.private intPosition of 2nd daughter node of a tree.private final intPosition of mother node in the list of nodes of a tree.private final intHigh index of list of points inside this box.private final intLow index of list of points inside this box. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintgetDau1()Gets position of 1st daughter node in the list of nodes of a tree.intgetDau2()Gets position of 2nd daughter node of a tree.intgetMom()Gets position of mother node in the list of nodes of a tree.intgetPtHi()Gets high index of list of points inside this box.intgetPtLo()Gets low index of list of points inside this box.voidSets boundaries.voidSets high coordinate values.voidSets low coordinate values.Methods inherited from class com.irurueta.geometry.Box
getDistance, getHi, getLo, getSqrDistance
-
Field Details
-
mom
private final int momPosition of mother node in the list of nodes of a tree. -
dau1
private int dau1Position of 1st daughter node in the list of nodes of a tree. -
dau2
private int dau2Position of 2nd daughter node of a tree. -
ptLo
private final int ptLoLow index of list of points inside this box. mPtLo and mPtHi define the range of points inside the box. -
ptHi
private final int ptHiHigh index of list of points inside this box. mPtLo and mPtHi define the range of points inside the box.
-
-
Constructor Details
-
BoxNode
Constructor.- Parameters:
lo- low coordinate values.hi- high coordinate values.mom- index of mother node.d1- index of 1st daughter.d2- index of 2nd daughter.ptLo- low index of list of points inside this box.ptHi- high index of list of points inside this box.
-
-
Method Details
-
getMom
public int getMom()Gets position of mother node in the list of nodes of a tree.- Returns:
- position of mother node in the list of nodes of a tree.
-
getDau1
public int getDau1()Gets position of 1st daughter node in the list of nodes of a tree.- Returns:
- position of 1st daughter node in the list of nodes of a tree.
-
getDau2
public int getDau2()Gets position of 2nd daughter node of a tree.- Returns:
- position of 2nd daughter node of a tree.
-
getPtLo
public int getPtLo()Gets low index of list of points inside this box. getPtLo() andgetPtHi()define the range of indices of points contained in this box.- Returns:
- low index of list of points inside this box.
-
getPtHi
public int getPtHi()Gets high index of list of points inside this box.getPtLo()and getPtHi() define the range of indices of points contained in this box.- Returns:
- high index of list of points inside this box.
-
setLo
Sets low coordinate values. -
setHi
Sets high coordinate values. -
setBounds
Sets boundaries.
-