com.bulletphysics.linearmath
Class AabbUtil2

java.lang.Object
  extended by com.bulletphysics.linearmath.AabbUtil2

public class AabbUtil2
extends java.lang.Object


Constructor Summary
AabbUtil2()
           
 
Method Summary
static int outcode(javax.vecmath.Vector3f p, javax.vecmath.Vector3f halfExtent)
           
static boolean rayAabb(javax.vecmath.Vector3f rayFrom, javax.vecmath.Vector3f rayTo, javax.vecmath.Vector3f aabbMin, javax.vecmath.Vector3f aabbMax, float[] param, javax.vecmath.Vector3f normal)
           
static boolean testAabbAgainstAabb2(javax.vecmath.Vector3f aabbMin1, javax.vecmath.Vector3f aabbMax1, javax.vecmath.Vector3f aabbMin2, javax.vecmath.Vector3f aabbMax2)
          Conservative test for overlap between two aabbs.
static boolean testTriangleAgainstAabb2(javax.vecmath.Vector3f[] vertices, javax.vecmath.Vector3f aabbMin, javax.vecmath.Vector3f aabbMax)
          Conservative test for overlap between triangle and aabb.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AabbUtil2

public AabbUtil2()
Method Detail

outcode

public static int outcode(javax.vecmath.Vector3f p,
                          javax.vecmath.Vector3f halfExtent)

rayAabb

public static boolean rayAabb(javax.vecmath.Vector3f rayFrom,
                              javax.vecmath.Vector3f rayTo,
                              javax.vecmath.Vector3f aabbMin,
                              javax.vecmath.Vector3f aabbMax,
                              float[] param,
                              javax.vecmath.Vector3f normal)

testAabbAgainstAabb2

public static boolean testAabbAgainstAabb2(javax.vecmath.Vector3f aabbMin1,
                                           javax.vecmath.Vector3f aabbMax1,
                                           javax.vecmath.Vector3f aabbMin2,
                                           javax.vecmath.Vector3f aabbMax2)
Conservative test for overlap between two aabbs.


testTriangleAgainstAabb2

public static boolean testTriangleAgainstAabb2(javax.vecmath.Vector3f[] vertices,
                                               javax.vecmath.Vector3f aabbMin,
                                               javax.vecmath.Vector3f aabbMax)
Conservative test for overlap between triangle and aabb.