Package com.badlogic.gdx.math
Class Octree.OctreeNode
- java.lang.Object
-
- com.badlogic.gdx.math.Octree.OctreeNode
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedOctreeNode()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidadd(T geometry)protected voidgetAll(ObjectSet<T> resultSet)Get all geometries using Depth-First Search recursion.protected voidgetBoundingBox(ObjectSet<BoundingBox> bounds)Get bounding boxes using Depth-First Search recursion.protected booleanisLeaf()protected voidquery(BoundingBox aabb, ObjectSet<T> result)protected voidquery(Frustum frustum, ObjectSet<T> result)protected voidrayCast(Ray ray, Octree.RayCastResult<T> result)protected booleanremove(T object)
-
-
-
Method Detail
-
add
protected void add(T geometry)
-
remove
protected boolean remove(T object)
-
isLeaf
protected boolean isLeaf()
-
query
protected void query(BoundingBox aabb, ObjectSet<T> result)
-
rayCast
protected void rayCast(Ray ray, Octree.RayCastResult<T> result)
-
getAll
protected void getAll(ObjectSet<T> resultSet)
Get all geometries using Depth-First Search recursion.- Parameters:
resultSet-
-
getBoundingBox
protected void getBoundingBox(ObjectSet<BoundingBox> bounds)
Get bounding boxes using Depth-First Search recursion.- Parameters:
bounds-
-
-