#include <ColdetModelPair.h>
|
| int | calculateCentroidIntersection (float &cx, float &cy, float &A, float radius, std::vector< float > vx, std::vector< float > vy) |
| |
| int | calculateIntersection (std::vector< float > &x, std::vector< float > &y, float radius, float x1, float y1, float x2, float y2) |
| |
| float | calculatePolygonArea (const std::vector< float > &vx, const std::vector< float > &vy) |
| |
| void | calculateSectorCentroid (float &cx, float &cy, float radius, float th1, float th2) |
| |
| bool | checkCollision () |
| |
| void | clearCollisions () |
| |
| | ColdetModelPair () |
| |
| | ColdetModelPair (ColdetModelPtr model0, ColdetModelPtr model1, double tolerance=0) |
| |
| | ColdetModelPair (const ColdetModelPair &org) |
| |
| std::vector< collision_data > & | collisions () |
| |
| double | computeDistance (double *point0, double *point1) |
| |
| double | computeDistance (int &out_triangle0, double *out_point0, int &out_triangle1, double *out_point1) |
| |
| std::vector< collision_data > & | detectCollisions () |
| |
| bool | detectIntersection () |
| |
| void | enableNormalVectorCorrection (bool flag) |
| |
| bool | isInsideCircle (float r, float x, float y) |
| |
| bool | isInsideTriangle (float x, float y, const std::vector< float > &vx, const std::vector< float > &vy) |
| |
| int | makeCCW (std::vector< float > &vx, std::vector< float > &vy) |
| |
| ColdetModel * | model (int index) |
| |
| ColdetModelPair & | operator= (const ColdetModelPair &cmp) |
| |
| void | set (ColdetModelPtr model0, ColdetModelPtr model1) |
| |
| void | setCollisionPairInserter (CollisionPairInserterBase *inserter) |
| |
| double | tolerance () const |
| |
| IceMaths::Matrix4x4 * | transform (int index) |
| |
| virtual | ~ColdetModelPair () |
| |
| | Referenced () |
| |
| virtual | ~Referenced () |
| |
Definition at line 29 of file ColdetModelPair.h.
| ColdetModelPair::ColdetModelPair |
( |
| ) |
|
| ColdetModelPair::~ColdetModelPair |
( |
| ) |
|
|
virtual |
| int ColdetModelPair::calculateCentroidIntersection |
( |
float & |
cx, |
|
|
float & |
cy, |
|
|
float & |
A, |
|
|
float |
radius, |
|
|
std::vector< float > |
vx, |
|
|
std::vector< float > |
vy |
|
) |
| |
| int ColdetModelPair::calculateIntersection |
( |
std::vector< float > & |
x, |
|
|
std::vector< float > & |
y, |
|
|
float |
radius, |
|
|
float |
x1, |
|
|
float |
y1, |
|
|
float |
x2, |
|
|
float |
y2 |
|
) |
| |
| float ColdetModelPair::calculatePolygonArea |
( |
const std::vector< float > & |
vx, |
|
|
const std::vector< float > & |
vy |
|
) |
| |
| void ColdetModelPair::calculateSectorCentroid |
( |
float & |
cx, |
|
|
float & |
cy, |
|
|
float |
radius, |
|
|
float |
th1, |
|
|
float |
th2 |
|
) |
| |
| bool hrp::ColdetModelPair::checkCollision |
( |
| ) |
|
|
inline |
| void hrp::ColdetModelPair::clearCollisions |
( |
| ) |
|
|
inline |
| double ColdetModelPair::computeDistance |
( |
double * |
point0, |
|
|
double * |
point1 |
|
) |
| |
| double ColdetModelPair::computeDistance |
( |
int & |
out_triangle0, |
|
|
double * |
out_point0, |
|
|
int & |
out_triangle1, |
|
|
double * |
out_point1 |
|
) |
| |
- Parameters
-
| out_triangle0,out_triangle1 | Indices of the triangle pair that are originally registered by ColdeModel::setTraiangle(). |
| out_point0,out_point1 | The closest points |
Definition at line 595 of file ColdetModelPair.cpp.
| std::vector<collision_data>& hrp::ColdetModelPair::detectCollisions |
( |
| ) |
|
|
inline |
| std::vector< collision_data > & ColdetModelPair::detectCollisionsSub |
( |
bool |
detectAllContacts | ) |
|
|
private |
| bool ColdetModelPair::detectIntersection |
( |
| ) |
|
| bool ColdetModelPair::detectMeshMeshCollisions |
( |
bool |
detectAllContacts | ) |
|
|
private |
| bool ColdetModelPair::detectPlaneCylinderCollisions |
( |
bool |
detectAllContacts | ) |
|
|
private |
| bool ColdetModelPair::detectPlaneMeshCollisions |
( |
bool |
detectAllContacts | ) |
|
|
private |
| bool ColdetModelPair::detectSphereMeshCollisions |
( |
bool |
detectAllContacts | ) |
|
|
private |
| bool ColdetModelPair::detectSphereSphereCollisions |
( |
bool |
detectAllContacts | ) |
|
|
private |
| void hrp::ColdetModelPair::enableNormalVectorCorrection |
( |
bool |
flag | ) |
|
|
inline |
| bool hrp::ColdetModelPair::isInsideCircle |
( |
float |
r, |
|
|
float |
x, |
|
|
float |
y |
|
) |
| |
|
inline |
| bool ColdetModelPair::isInsideTriangle |
( |
float |
x, |
|
|
float |
y, |
|
|
const std::vector< float > & |
vx, |
|
|
const std::vector< float > & |
vy |
|
) |
| |
| int ColdetModelPair::makeCCW |
( |
std::vector< float > & |
vx, |
|
|
std::vector< float > & |
vy |
|
) |
| |
| double hrp::ColdetModelPair::tolerance |
( |
| ) |
const |
|
inline |
| int hrp::ColdetModelPair::boxTestsCount |
|
private |
| double hrp::ColdetModelPair::tolerance_ |
|
private |
| int hrp::ColdetModelPair::triTestsCount |
|
private |
The documentation for this class was generated from the following files: