org.openmali.spatial.octree
Class OcCell<T>
java.lang.Object
org.openmali.spatial.octree.OcCell<T>
public class OcCell<T>
- extends java.lang.Object
Spatial container holding the OcNodes.
This represents a location in space.
- Author:
- David Yazel, Marvin Froehlich (aka Qudus) [code cleaning]
|
Method Summary |
boolean |
fitsInBox(OcNode<T> o,
float cx,
float cy,
float cz,
float halfSize)
Tests whether the given object can fit in the box centered at (cx, cz),
with side dimensions of HalfSize * 2. |
boolean |
fitsInBox(Tuple3f c,
float radius,
float cx,
float cy,
float cz,
float HalfSize)
|
java.lang.String |
getName()
|
OcCell<T> |
getParent()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
cx
public float cx
cy
public float cy
cz
public float cz
halfSize
public float halfSize
OcCell
public OcCell()
OcCell
public OcCell(OcTree<T> tree,
OcCell<T> p,
float x,
float y,
float z,
int d)
getParent
public OcCell<T> getParent()
fitsInBox
public boolean fitsInBox(Tuple3f c,
float radius,
float cx,
float cy,
float cz,
float HalfSize)
fitsInBox
public boolean fitsInBox(OcNode<T> o,
float cx,
float cy,
float cz,
float halfSize)
- Tests whether the given object can fit in the box centered at (cx, cz),
with side dimensions of HalfSize * 2.
- Parameters:
o - cx - cz - halfSize -
- Returns:
- true, if the given object fits into the box
getName
public java.lang.String getName()