Bullet Collision Detection & Physics Library
|
Go to the documentation of this file.
15 #ifndef BT_GEOMETRY_UTIL_H
16 #define BT_GEOMETRY_UTIL_H
36 #endif //BT_GEOMETRY_UTIL_H
float btScalar
The btScalar type abstracts floating point numbers, to easily switch between double and single floati...
static bool isPointInsidePlanes(const btAlignedObjectArray< btVector3 > &planeEquations, const btVector3 &point, btScalar margin)
The btGeometryUtil helper class provides a few methods to convert between plane equations and vertice...
static bool isInside(const btAlignedObjectArray< btVector3 > &vertices, const btVector3 &planeNormal, btScalar margin)
static bool areVerticesBehindPlane(const btVector3 &planeNormal, const btAlignedObjectArray< btVector3 > &vertices, btScalar margin)
btVector3 can be used to represent 3D points and vectors.
static void getPlaneEquationsFromVertices(btAlignedObjectArray< btVector3 > &vertices, btAlignedObjectArray< btVector3 > &planeEquationsOut)
static void getVerticesFromPlaneEquations(const btAlignedObjectArray< btVector3 > &planeEquations, btAlignedObjectArray< btVector3 > &verticesOut)