Package org.robwork.sdurw_geometry
Class OBBToleranceColliderPtr
- java.lang.Object
-
- org.robwork.sdurw_geometry.OBBToleranceColliderPtr
-
public class OBBToleranceColliderPtr extends java.lang.Object
Ptr stores a pointer and optionally takes ownership of the value.
-
-
Constructor Summary
Constructors Constructor Description OBBToleranceColliderPtr()
Default constructor yielding a NULL-pointer.OBBToleranceColliderPtr(long cPtr, boolean cMemoryOwn)
OBBToleranceColliderPtr(OBBToleranceCollider ptr)
Do not take ownership of ptr.
ptr can be null.
The constructor is implicit on purpose.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description OBBToleranceCollider
__ref__()
Dereferencing operator.boolean
collides(OBB obbA, OBB obbB, Transform3D aTb)
test if obbA is closer than tolerance to obbB.boolean
collides(OBB obbA, OBB obbB, Transform3D aTb, double tolerance)
test if obbA is closer than tolerance to obbB.OBBToleranceColliderCPtr
cptr()
void
delete()
OBBToleranceCollider
deref()
The pointer stored in the object.boolean
equals(OBBToleranceCollider p)
static long
getCPtr(OBBToleranceColliderPtr obj)
OBBToleranceCollider
getDeref()
Member access operator.boolean
inCollision(OBB bvA, OBB bvB, Transform3D aTb)
test if two bounding volumes are collidingboolean
isNull()
checks if the pointer is nullboolean
isShared()
check if this Ptr has shared ownership or none
ownershipvoid
setTolerance(double tolerance)
set the tolerance of the collider
-
-
-
Constructor Detail
-
OBBToleranceColliderPtr
public OBBToleranceColliderPtr(long cPtr, boolean cMemoryOwn)
-
OBBToleranceColliderPtr
public OBBToleranceColliderPtr()
Default constructor yielding a NULL-pointer.
-
OBBToleranceColliderPtr
public OBBToleranceColliderPtr(OBBToleranceCollider ptr)
Do not take ownership of ptr.
ptr can be null.
The constructor is implicit on purpose.
-
-
Method Detail
-
getCPtr
public static long getCPtr(OBBToleranceColliderPtr obj)
-
delete
public void delete()
-
deref
public OBBToleranceCollider deref()
The pointer stored in the object.
-
__ref__
public OBBToleranceCollider __ref__()
Dereferencing operator.
-
getDeref
public OBBToleranceCollider getDeref()
Member access operator.
-
equals
public boolean equals(OBBToleranceCollider p)
-
isShared
public boolean isShared()
check if this Ptr has shared ownership or none
ownership- Returns:
- true if Ptr has shared ownership, false if it has no ownership.
-
isNull
public boolean isNull()
checks if the pointer is null- Returns:
- Returns true if the pointer is null
-
cptr
public OBBToleranceColliderCPtr cptr()
-
setTolerance
public void setTolerance(double tolerance)
set the tolerance of the collider- Parameters:
tolerance
- [in] meters
-
collides
public boolean collides(OBB obbA, OBB obbB, Transform3D 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 obbA, OBB obbB, Transform3D 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.
-
inCollision
public boolean inCollision(OBB bvA, OBB bvB, Transform3D aTb)
test if two bounding volumes are colliding- Parameters:
bvA
- [in] bounding volume AbvB
- [in] bounding volume BaTb
- [in] transform from bvA to bvB- Returns:
- true if in collision
-
-