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

Method xwrap

source/base/StarWorldGeometry.hpp:157–162  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

155}
156
157inline int WorldGeometry::xwrap(int x) const {
158 if (m_size[0] == 0)
159 return x;
160 else
161 return pmod<int>(x, m_size[0]);
162}
163
164inline float WorldGeometry::xwrap(float x) const {
165 if (m_size[0] == 0)

Callers 2

swingMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected