MCPcopy Create free account
hub / github.com/abess-team/abess / minimumOnObject

Method minimumOnObject

python/include/unsupported/test/BVH.cpp:78–78  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

76
77 double minimumOnVolume(const BoxType &r) { ++calls; return r.squaredExteriorDistance(p); }
78 double minimumOnObject(const BallType &b) { ++calls; return (std::max)(0., (b.center - p).squaredNorm() - SQR(b.radius)); }
79 double minimumOnVolumeVolume(const BoxType &r1, const BoxType &r2) { ++calls; return r1.squaredExteriorDistance(r2); }
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)); }

Callers 1

testMinimize1Method · 0.45

Calls 2

SQRFunction · 0.85
squaredNormMethod · 0.45

Tested by

no test coverage detected