Package com.badlogic.gdx.math
Class Octree.OctreeNode
- java.lang.Object
-
- com.badlogic.gdx.math.Octree.OctreeNode
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
OctreeNode()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
add(T geometry)
protected void
getAll(ObjectSet<T> resultSet)
Get all geometries using Depth-First Search recursion.protected void
getBoundingBox(ObjectSet<BoundingBox> bounds)
Get bounding boxes using Depth-First Search recursion.protected boolean
isLeaf()
protected void
query(BoundingBox aabb, ObjectSet<T> result)
protected void
query(Frustum frustum, ObjectSet<T> result)
protected void
rayCast(Ray ray, Octree.RayCastResult<T> result)
protected boolean
remove(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
-
-
-