public class AabbUtil2 extends Object
Constructor and Description |
---|
AabbUtil2() |
Modifier and Type | Method and Description |
---|---|
static void |
aabbExpand(javax.vecmath.Vector3f aabbMin,
javax.vecmath.Vector3f aabbMax,
javax.vecmath.Vector3f expansionMin,
javax.vecmath.Vector3f expansionMax) |
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.
|
static void |
transformAabb(javax.vecmath.Vector3f halfExtents,
float margin,
Transform t,
javax.vecmath.Vector3f aabbMinOut,
javax.vecmath.Vector3f aabbMaxOut) |
static void |
transformAabb(javax.vecmath.Vector3f localAabbMin,
javax.vecmath.Vector3f localAabbMax,
float margin,
Transform trans,
javax.vecmath.Vector3f aabbMinOut,
javax.vecmath.Vector3f aabbMaxOut) |
public static void aabbExpand(javax.vecmath.Vector3f aabbMin, javax.vecmath.Vector3f aabbMax, javax.vecmath.Vector3f expansionMin, javax.vecmath.Vector3f expansionMax)
public static int outcode(javax.vecmath.Vector3f p, javax.vecmath.Vector3f halfExtent)
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)
public static boolean testAabbAgainstAabb2(javax.vecmath.Vector3f aabbMin1, javax.vecmath.Vector3f aabbMax1, javax.vecmath.Vector3f aabbMin2, javax.vecmath.Vector3f aabbMax2)
public static boolean testTriangleAgainstAabb2(javax.vecmath.Vector3f[] vertices, javax.vecmath.Vector3f aabbMin, javax.vecmath.Vector3f aabbMax)
public static void transformAabb(javax.vecmath.Vector3f halfExtents, float margin, Transform t, javax.vecmath.Vector3f aabbMinOut, javax.vecmath.Vector3f aabbMaxOut)
public static void transformAabb(javax.vecmath.Vector3f localAabbMin, javax.vecmath.Vector3f localAabbMax, float margin, Transform trans, javax.vecmath.Vector3f aabbMinOut, javax.vecmath.Vector3f aabbMaxOut)
Copyright © 2013. All Rights Reserved.