|
Blender V4.5
|
#include "btBoxBoxDetector.h"#include "BulletCollision/CollisionShapes/btBoxShape.h"#include <float.h>#include <string.h>Go to the source code of this file.
Macros | |
| #define | dDOTpq(a, b, p, q) |
| #define | dInfinity FLT_MAX |
| #define | dMULTIPLYOP1_331(A, op, B, C) |
| #define | dMULTIPLYOP0_331(A, op, B, C) |
| #define | dMULTIPLY1_331(A, B, C) |
| #define | dMULTIPLY0_331(A, B, C) |
| #define | M__PI 3.14159265f |
| #define | TST(expr1, expr2, norm, cc) |
| #define | TST(expr1, expr2, n1, n2, n3, cc) |
Typedefs | |
| typedef btScalar | dMatrix3[4 *3] |
Functions | |
| static btScalar | dDOT (const btScalar *a, const btScalar *b) |
| static btScalar | dDOT44 (const btScalar *a, const btScalar *b) |
| static btScalar | dDOT41 (const btScalar *a, const btScalar *b) |
| static btScalar | dDOT14 (const btScalar *a, const btScalar *b) |
| void | dLineClosestApproach (const btVector3 &pa, const btVector3 &ua, const btVector3 &pb, const btVector3 &ub, btScalar *alpha, btScalar *beta) |
| static int | intersectRectQuad2 (btScalar h[2], btScalar p[8], btScalar ret[16]) |
| void | cullPoints2 (int n, btScalar p[], int m, int i0, int iret[]) |
| int | dBoxBox2 (const btVector3 &p1, const dMatrix3 R1, const btVector3 &side1, const btVector3 &p2, const dMatrix3 R2, const btVector3 &side2, btVector3 &normal, btScalar *depth, int *return_code, int maxc, dContactGeom *, int, btDiscreteCollisionDetectorInterface::Result &output) |
| #define dDOTpq | ( | a, | |
| b, | |||
| p, | |||
| q ) |
| #define dInfinity FLT_MAX |
Definition at line 50 of file btBoxBoxDetector.cpp.
Referenced by dBoxBox2().
| #define M__PI 3.14159265f |
Definition at line 177 of file btBoxBoxDetector.cpp.
Referenced by cullPoints2().
| #define TST | ( | expr1, | |
| expr2, | |||
| n1, | |||
| n2, | |||
| n3, | |||
| cc ) |
| #define TST | ( | expr1, | |
| expr2, | |||
| norm, | |||
| cc ) |
Referenced by dBoxBox2().
Definition at line 78 of file btBoxBoxDetector.cpp.
| void cullPoints2 | ( | int | n, |
| btScalar | p[], | ||
| int | m, | ||
| int | i0, | ||
| int | iret[] ) |
Definition at line 188 of file btBoxBoxDetector.cpp.
References A, BT_LARGE_FLOAT, btAssert, btAtan2(), btFabs(), cullPoints2(), diff(), i, M__PI, and SIMD_EPSILON.
Referenced by cullPoints2(), and dBoxBox2().
| int dBoxBox2 | ( | const btVector3 & | p1, |
| const dMatrix3 | R1, | ||
| const btVector3 & | side1, | ||
| const btVector3 & | p2, | ||
| const dMatrix3 | R2, | ||
| const btVector3 & | side2, | ||
| btVector3 & | normal, | ||
| btScalar * | depth, | ||
| int * | return_code, | ||
| int | maxc, | ||
| dContactGeom * | , | ||
| int | , | ||
| btDiscreteCollisionDetectorInterface::Result & | output ) |
Definition at line 272 of file btBoxBoxDetector.cpp.
References A, B, beta(), btFabs(), btVector3, cullPoints2(), dBoxBox2(), dDOT(), dDOT14(), dDOT41(), dDOT44(), dInfinity, dLineClosestApproach(), dMULTIPLY0_331, dMULTIPLY1_331, i, intersectRectQuad2(), l, output, ret, sign(), and TST.
Referenced by dBoxBox2(), and btBoxBoxDetector::getClosestPoints().
Definition at line 57 of file btBoxBoxDetector.cpp.
References b, dDOT(), and dDOTpq.
Referenced by dBoxBox2(), dDOT(), and dLineClosestApproach().
Definition at line 60 of file btBoxBoxDetector.cpp.
References b, dDOT14(), and dDOTpq.
Referenced by dBoxBox2(), and dDOT14().
Definition at line 59 of file btBoxBoxDetector.cpp.
References b, dDOT41(), and dDOTpq.
Referenced by dBoxBox2(), and dDOT41().
Definition at line 58 of file btBoxBoxDetector.cpp.
References b, dDOT44(), and dDOTpq.
Referenced by dBoxBox2(), and dDOT44().
| void dLineClosestApproach | ( | const btVector3 & | pa, |
| const btVector3 & | ua, | ||
| const btVector3 & | pb, | ||
| const btVector3 & | ub, | ||
| btScalar * | alpha, | ||
| btScalar * | beta ) |
Definition at line 83 of file btBoxBoxDetector.cpp.
References beta(), btVector3, dDOT(), and dLineClosestApproach().
Referenced by dBoxBox2(), and dLineClosestApproach().
Definition at line 117 of file btBoxBoxDetector.cpp.
References i, intersectRectQuad2(), ret, and sign().
Referenced by dBoxBox2(), and intersectRectQuad2().