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

Method minimumOnObjectObject

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

Source from the content-addressed store, hash-verified

80 double minimumOnVolumeObject(const BoxType &r, const BallType &b) { ++calls; return SQR((std::max)(0., r.exteriorDistance(b.center) - b.radius)); }
81 double minimumOnObjectVolume(const BallType &b, const BoxType &r) { ++calls; return SQR((std::max)(0., r.exteriorDistance(b.center) - b.radius)); }
82 double minimumOnObjectObject(const BallType &b1, const BallType &b2){ ++calls; return SQR((std::max)(0., (b1.center - b2.center).norm() - b1.radius - b2.radius)); }
83 double minimumOnVolumeObject(const BoxType &r, const VectorType &v) { ++calls; return r.squaredExteriorDistance(v); }
84 double minimumOnObjectObject(const BallType &b, const VectorType &v){ ++calls; return SQR((std::max)(0., (b.center - v).norm() - b.radius)); }
85

Callers 4

minimumOnObjectMethod · 0.45
minimumOnObjectMethod · 0.45
BVMinimizeFunction · 0.45
testMinimize2Method · 0.45

Calls 2

SQRFunction · 0.85
normMethod · 0.45

Tested by

no test coverage detected