com.bulletphysics.linearmath
Class AabbUtil2
java.lang.Object
com.bulletphysics.linearmath.AabbUtil2
public class AabbUtil2
- extends Object
Utility functions for axis aligned bounding boxes (AABB).
Method Summary |
static int |
outcode(Vector3f p,
Vector3f halfExtent)
|
static boolean |
rayAabb(Vector3f rayFrom,
Vector3f rayTo,
Vector3f aabbMin,
Vector3f aabbMax,
float[] param,
Vector3f normal)
|
static boolean |
testAabbAgainstAabb2(Vector3f aabbMin1,
Vector3f aabbMax1,
Vector3f aabbMin2,
Vector3f aabbMax2)
Conservative test for overlap between two AABBs. |
static boolean |
testTriangleAgainstAabb2(Vector3f[] vertices,
Vector3f aabbMin,
Vector3f aabbMax)
Conservative test for overlap between triangle and AABB. |
AabbUtil2
public AabbUtil2()
outcode
public static int outcode(Vector3f p,
Vector3f halfExtent)
rayAabb
public static boolean rayAabb(Vector3f rayFrom,
Vector3f rayTo,
Vector3f aabbMin,
Vector3f aabbMax,
float[] param,
Vector3f normal)
testAabbAgainstAabb2
public static boolean testAabbAgainstAabb2(Vector3f aabbMin1,
Vector3f aabbMax1,
Vector3f aabbMin2,
Vector3f aabbMax2)
- Conservative test for overlap between two AABBs.
testTriangleAgainstAabb2
public static boolean testTriangleAgainstAabb2(Vector3f[] vertices,
Vector3f aabbMin,
Vector3f aabbMax)
- Conservative test for overlap between triangle and AABB.