Package org.robwork.sdurw_geometry
Class OBBCollider_f
- java.lang.Object
-
- org.robwork.sdurw_geometry.BVColliderOBBColiderOBB_f
-
- org.robwork.sdurw_geometry.OBBCollider_f
-
public class OBBCollider_f extends BVColliderOBBColiderOBB_f
class for testing if two Oriented Bounding Boxes (OBBs) are overlapping.
The method used is based on the seperating axis theorem. Please see the article
"OBBTree: A Hierarchical Structure for Rapid Interference Detection".
-
-
Constructor Summary
Constructors Constructor Description OBBCollider_f()
constructorOBBCollider_f(long cPtr, boolean cMemoryOwn)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
collides(OBB_f obbA, OBB_f obbB, Transform3Df aTb)
test if obbA intersects obbB.void
delete()
static long
getCPtr(OBBCollider_f obj)
-
Methods inherited from class org.robwork.sdurw_geometry.BVColliderOBBColiderOBB_f
getCPtr, inCollision
-
-
-
-
Method Detail
-
getCPtr
public static long getCPtr(OBBCollider_f obj)
-
delete
public void delete()
- Overrides:
delete
in classBVColliderOBBColiderOBB_f
-
collides
public boolean collides(OBB_f obbA, OBB_f obbB, Transform3Df aTb)
test if obbA intersects obbB. The aTb transform describe
obbB relative to obbA's coordinate frame
-
-