MCPcopy Create free account
hub / github.com/PX4/eigen / intersectObjectObject

Method intersectObjectObject

unsupported/test/BVH.cpp:63–68  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

61 bool intersectVolumeObject(const BoxType &r, const BallType &b) { ++calls; return r.squaredExteriorDistance(b.center) < SQR(b.radius); }
62 bool intersectObjectVolume(const BallType &b, const BoxType &r) { ++calls; return r.squaredExteriorDistance(b.center) < SQR(b.radius); }
63 bool intersectObjectObject(const BallType &b1, const BallType &b2){
64 ++calls;
65 if((b1.center - b2.center).norm() < b1.radius + b2.radius)
66 ++count;
67 return false;
68 }
69 bool intersectVolumeObject(const BoxType &r, const VectorType &v) { ++calls; return r.contains(v); }
70 bool intersectObjectObject(const BallType &b, const VectorType &v){
71 ++calls;

Callers 4

intersectObjectMethod · 0.80
intersectObjectMethod · 0.80
BVIntersectFunction · 0.80
testIntersect2Method · 0.80

Calls 3

SQRFunction · 0.85
normMethod · 0.45
squaredNormMethod · 0.45

Tested by

no test coverage detected