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

Method pad

source/core/StarRect.hpp:570–575  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

568
569template <typename T, size_t N>
570void Box<T, N>::pad(T amount) {
571 for (size_t i = 0; i < N; ++i) {
572 m_min[i] -= amount;
573 m_max[i] += amount;
574 }
575}
576
577template <typename T, size_t N>
578Box<T, N> Box<T, N>::padded(T amount) const {

Callers 2

collisionMoveMethod · 0.80
paddedMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected