Package org.robwork.sdurw_geometry
Class OBBToleranceCollider_f
- java.lang.Object
-
- org.robwork.sdurw_geometry.BVColliderOBBToleranceCollider_f
-
- org.robwork.sdurw_geometry.OBBToleranceCollider_f
-
public class OBBToleranceCollider_f extends BVColliderOBBToleranceCollider_f
class for testing if two Oriented Bounding Boxes are overlapping
-
-
Constructor Summary
Constructors Constructor Description OBBToleranceCollider_f()
constructorOBBToleranceCollider_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 is closer than tolerance to obbB.boolean
collides(OBB_f obbA, OBB_f obbB, Transform3Df aTb, double tolerance)
test if obbA is closer than tolerance to obbB.void
delete()
static long
getCPtr(OBBToleranceCollider_f obj)
void
setTolerance(float tolerance)
set the tolerance of the collider-
Methods inherited from class org.robwork.sdurw_geometry.BVColliderOBBToleranceCollider_f
getCPtr, inCollision
-
-
-
-
Method Detail
-
getCPtr
public static long getCPtr(OBBToleranceCollider_f obj)
-
delete
public void delete()
- Overrides:
delete
in classBVColliderOBBToleranceCollider_f
-
setTolerance
public void setTolerance(float tolerance)
set the tolerance of the collider- Parameters:
tolerance
- [in] meters
-
collides
public boolean collides(OBB_f obbA, OBB_f obbB, Transform3Df aTb)
test if obbA is closer than tolerance to obbB. The aTb transform describe
obbB relative to obbA's coordinate frame. This method is approximate and the obb's
may lie up to sqrt(tolerance^2+tolerance^2) away from each other.
-
collides
public boolean collides(OBB_f obbA, OBB_f obbB, Transform3Df aTb, double tolerance)
test if obbA is closer than tolerance to obbB. The aTb transform describe
obbB relative to obbA's coordinate frame. This method is approximate and the obb's
may lie up to sqrt(tolerance^2+tolerance^2) away from each other.
-
-