Package org.robwork.sdurw_geometry
Class OBBColliderPtr
- java.lang.Object
-
- org.robwork.sdurw_geometry.OBBColliderPtr
-
public class OBBColliderPtr extends java.lang.Object
Ptr stores a pointer and optionally takes ownership of the value.
-
-
Constructor Summary
Constructors Constructor Description OBBColliderPtr()
Default constructor yielding a NULL-pointer.OBBColliderPtr(long cPtr, boolean cMemoryOwn)
OBBColliderPtr(OBBCollider 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 OBBCollider
__ref__()
Dereferencing operator.boolean
collides(OBB obbA, OBB obbB, Transform3D aTb)
test if obbA intersects obbB.OBBColliderCPtr
cptr()
void
delete()
OBBCollider
deref()
The pointer stored in the object.boolean
equals(OBBCollider p)
static long
getCPtr(OBBColliderPtr obj)
OBBCollider
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
ownership
-
-
-
Constructor Detail
-
OBBColliderPtr
public OBBColliderPtr(long cPtr, boolean cMemoryOwn)
-
OBBColliderPtr
public OBBColliderPtr()
Default constructor yielding a NULL-pointer.
-
OBBColliderPtr
public OBBColliderPtr(OBBCollider ptr)
Do not take ownership of ptr.
ptr can be null.
The constructor is implicit on purpose.
-
-
Method Detail
-
getCPtr
public static long getCPtr(OBBColliderPtr obj)
-
delete
public void delete()
-
deref
public OBBCollider deref()
The pointer stored in the object.
-
__ref__
public OBBCollider __ref__()
Dereferencing operator.
-
getDeref
public OBBCollider getDeref()
Member access operator.
-
equals
public boolean equals(OBBCollider 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 OBBColliderCPtr cptr()
-
collides
public boolean collides(OBB obbA, OBB obbB, Transform3D aTb)
test if obbA intersects obbB. The aTb transform describe
obbB relative to obbA's coordinate frame
-
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
-
-