us.ihmc.utilities.dataStructures.hyperCubeTree
Class HyperCubeNode<T,D>
java.lang.Object
us.ihmc.utilities.dataStructures.hyperCubeTree.HyperCubeNode<T,D>
- All Implemented Interfaces:
- RecursableHyperTreeNode<T,D>
public class HyperCubeNode<T,D>
- extends java.lang.Object
- implements RecursableHyperTreeNode<T,D>
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
setMetaData
public void setMetaData(D metaData)
- Specified by:
setMetaData
in interface RecursableHyperTreeNode<T,D>
getMetaData
public D getMetaData()
- Specified by:
getMetaData
in interface RecursableHyperTreeNode<T,D>
clear
public void clear()
- Specified by:
clear
in interface RecursableHyperTreeNode<T,D>
getBounds
public OneDimensionalBounds getBounds(int i)
- Specified by:
getBounds
in interface RecursableHyperTreeNode<T,D>
getBoundsCopy
public OneDimensionalBounds[] getBoundsCopy()
- Specified by:
getBoundsCopy
in interface RecursableHyperTreeNode<T,D>
getDimensionality
public int getDimensionality()
- Specified by:
getDimensionality
in interface RecursableHyperTreeNode<T,D>
hasChildren
public boolean hasChildren()
- Specified by:
hasChildren
in interface RecursableHyperTreeNode<T,D>
getChildNumber
public int getChildNumber()
- Specified by:
getChildNumber
in interface RecursableHyperTreeNode<T,D>
getLeaf
public HyperCubeLeaf<T> getLeaf()
- Specified by:
getLeaf
in interface RecursableHyperTreeNode<T,D>
setLeaf
public void setLeaf(HyperCubeLeaf<T> leaf)
- Specified by:
setLeaf
in interface RecursableHyperTreeNode<T,D>
updateMetaDataListeners
public void updateMetaDataListeners()
- Specified by:
updateMetaDataListeners
in interface RecursableHyperTreeNode<T,D>
split
public void split()
- Specified by:
split
in interface RecursableHyperTreeNode<T,D>
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
getChildAtLocation
public RecursableHyperTreeNode<T,D> getChildAtLocation(double[] location)
- Specified by:
getChildAtLocation
in interface RecursableHyperTreeNode<T,D>
getChild
public RecursableHyperTreeNode<T,D> getChild(int number)
- Specified by:
getChild
in interface RecursableHyperTreeNode<T,D>
withinBounds
public static boolean withinBounds(OneDimensionalBounds[] bounds,
double[] input)
getMidpoint
public double[] getMidpoint()
- Specified by:
getMidpoint
in interface RecursableHyperTreeNode<T,D>