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

Method makePositive

source/core/StarRect.hpp:407–412  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

405
406template <typename T, size_t N>
407void Box<T, N>::makePositive() {
408 for (size_t i = 0; i < N; ++i) {
409 if (m_max[i] < m_min[i])
410 std::swap(m_max[i], m_min[i]);
411 }
412}
413
414template <typename T, size_t N>
415void Box<T, N>::rangeSetIfEmpty(Box const& b) {

Callers 2

TESTFunction · 0.45
splitLineMethod · 0.45

Calls

no outgoing calls

Tested by 1

TESTFunction · 0.36