Package com.jme3.collision.bih
Class BIHNode
java.lang.Object
com.jme3.collision.bih.BIHNode
- All Implemented Interfaces:
- Savable
Bounding Interval Hierarchy.
 Based on:
 Instant Ray Tracing: The Bounding Interval Hierarchy
 By Carsten Wächter and Alexander Keller
- 
Nested Class SummaryNested Classes
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionfloatfloatfinal intintersectBrute(Ray r, Matrix4f worldMatrix, BIHTree tree, float sceneMin, float sceneMax, CollisionResults results) final intintersectWhere(Collidable col, BoundingBox box, Matrix4f worldMatrix, BIHTree tree, CollisionResults results) final intintersectWhere(Ray r, Matrix4f worldMatrix, BIHTree tree, float sceneMin, float sceneMax, CollisionResults results) voidread(JmeImporter im) voidsetLeftChild(BIHNode left) voidsetLeftPlane(float leftPlane) voidsetRightChild(BIHNode right) voidsetRightPlane(float rightPlane) voidwrite(JmeExporter ex) 
- 
Constructor Details- 
BIHNodepublic BIHNode(int l, int r) 
- 
BIHNodepublic BIHNode(int axis) 
- 
BIHNodepublic BIHNode()
 
- 
- 
Method Details- 
getLeftChild
- 
setLeftChild
- 
getLeftPlanepublic float getLeftPlane()
- 
setLeftPlanepublic void setLeftPlane(float leftPlane) 
- 
getRightChild
- 
setRightChild
- 
getRightPlanepublic float getRightPlane()
- 
setRightPlanepublic void setRightPlane(float rightPlane) 
- 
write- Specified by:
- writein interface- Savable
- Throws:
- IOException
 
- 
read- Specified by:
- readin interface- Savable
- Throws:
- IOException
 
- 
intersectWherepublic final int intersectWhere(Collidable col, BoundingBox box, Matrix4f worldMatrix, BIHTree tree, CollisionResults results) 
- 
intersectBrutepublic final int intersectBrute(Ray r, Matrix4f worldMatrix, BIHTree tree, float sceneMin, float sceneMax, CollisionResults results) 
- 
intersectWherepublic final int intersectWhere(Ray r, Matrix4f worldMatrix, BIHTree tree, float sceneMin, float sceneMax, CollisionResults results) 
 
-