diff options
Diffstat (limited to 'thirdparty/bullet/Bullet3Geometry/b3GeometryUtil.h')
-rw-r--r-- | thirdparty/bullet/Bullet3Geometry/b3GeometryUtil.h | 22 |
1 files changed, 8 insertions, 14 deletions
diff --git a/thirdparty/bullet/Bullet3Geometry/b3GeometryUtil.h b/thirdparty/bullet/Bullet3Geometry/b3GeometryUtil.h index 8b5fd7ad62..967c8d67e9 100644 --- a/thirdparty/bullet/Bullet3Geometry/b3GeometryUtil.h +++ b/thirdparty/bullet/Bullet3Geometry/b3GeometryUtil.h @@ -12,7 +12,6 @@ subject to the following restrictions: 3. This notice may not be removed or altered from any source distribution. */ - #ifndef B3_GEOMETRY_UTIL_H #define B3_GEOMETRY_UTIL_H @@ -22,21 +21,16 @@ subject to the following restrictions: ///The b3GeometryUtil helper class provides a few methods to convert between plane equations and vertices. class b3GeometryUtil { - public: - - - static void getPlaneEquationsFromVertices(b3AlignedObjectArray<b3Vector3>& vertices, b3AlignedObjectArray<b3Vector3>& planeEquationsOut ); - - static void getVerticesFromPlaneEquations(const b3AlignedObjectArray<b3Vector3>& planeEquations , b3AlignedObjectArray<b3Vector3>& verticesOut ); - - static bool isInside(const b3AlignedObjectArray<b3Vector3>& vertices, const b3Vector3& planeNormal, b3Scalar margin); - - static bool isPointInsidePlanes(const b3AlignedObjectArray<b3Vector3>& planeEquations, const b3Vector3& point, b3Scalar margin); +public: + static void getPlaneEquationsFromVertices(b3AlignedObjectArray<b3Vector3>& vertices, b3AlignedObjectArray<b3Vector3>& planeEquationsOut); - static bool areVerticesBehindPlane(const b3Vector3& planeNormal, const b3AlignedObjectArray<b3Vector3>& vertices, b3Scalar margin); + static void getVerticesFromPlaneEquations(const b3AlignedObjectArray<b3Vector3>& planeEquations, b3AlignedObjectArray<b3Vector3>& verticesOut); -}; + static bool isInside(const b3AlignedObjectArray<b3Vector3>& vertices, const b3Vector3& planeNormal, b3Scalar margin); + static bool isPointInsidePlanes(const b3AlignedObjectArray<b3Vector3>& planeEquations, const b3Vector3& point, b3Scalar margin); -#endif //B3_GEOMETRY_UTIL_H + static bool areVerticesBehindPlane(const b3Vector3& planeNormal, const b3AlignedObjectArray<b3Vector3>& vertices, b3Scalar margin); +}; +#endif //B3_GEOMETRY_UTIL_H |