MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / rangeSetIfEmpty

Method rangeSetIfEmpty

source/core/StarRect.hpp:415–420  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

413
414template <typename T, size_t N>
415void Box<T, N>::rangeSetIfEmpty(Box const& b) {
416 for (size_t i = 0; i < N; ++i) {
417 if (m_max[i] <= m_min[i])
418 setRange(i, b.range(i));
419 }
420}
421
422template <typename T, size_t N>
423void Box<T, N>::makeCube() {

Callers 1

updateCollisionPolyMethod · 0.80

Calls 1

rangeMethod · 0.80

Tested by

no test coverage detected