com.bulletphysics.linearmath
Class GeometryUtil

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

public class GeometryUtil
extends Object

GeometryUtil helper class provides a few methods to convert between plane equations and vertices.


Constructor Summary
GeometryUtil()
           
 
Method Summary
static boolean areVerticesBehindPlane(Vector4f planeNormal, ObjectArrayList<Vector3f> vertices, float margin)
           
static void getPlaneEquationsFromVertices(ObjectArrayList<Vector3f> vertices, ObjectArrayList<Vector4f> planeEquationsOut)
           
static void getVerticesFromPlaneEquations(ObjectArrayList<Vector4f> planeEquations, ObjectArrayList<Vector3f> verticesOut)
           
static boolean isPointInsidePlanes(ObjectArrayList<Vector4f> planeEquations, Vector3f point, float margin)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GeometryUtil

public GeometryUtil()
Method Detail

isPointInsidePlanes

public static boolean isPointInsidePlanes(ObjectArrayList<Vector4f> planeEquations,
                                          Vector3f point,
                                          float margin)

areVerticesBehindPlane

public static boolean areVerticesBehindPlane(Vector4f planeNormal,
                                             ObjectArrayList<Vector3f> vertices,
                                             float margin)

getPlaneEquationsFromVertices

public static void getPlaneEquationsFromVertices(ObjectArrayList<Vector3f> vertices,
                                                 ObjectArrayList<Vector4f> planeEquationsOut)

getVerticesFromPlaneEquations

public static void getVerticesFromPlaneEquations(ObjectArrayList<Vector4f> planeEquations,
                                                 ObjectArrayList<Vector3f> verticesOut)