15#ifndef BT_GEOMETRY_UTIL_H
16#define BT_GEOMETRY_UTIL_H
float btScalar
The btScalar type abstracts floating point numbers, to easily switch between double and single floati...
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 void getVerticesFromPlaneEquations(const btAlignedObjectArray< btVector3 > &planeEquations, btAlignedObjectArray< btVector3 > &verticesOut)
static bool areVerticesBehindPlane(const btVector3 &planeNormal, const btAlignedObjectArray< btVector3 > &vertices, btScalar margin)
static void getPlaneEquationsFromVertices(btAlignedObjectArray< btVector3 > &vertices, btAlignedObjectArray< btVector3 > &planeEquationsOut)
static bool isPointInsidePlanes(const btAlignedObjectArray< btVector3 > &planeEquations, const btVector3 &point, btScalar margin)
btVector3 can be used to represent 3D points and vectors.