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

Method diff

source/base/StarWorldGeometry.hpp:210–215  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

208}
209
210inline float WorldGeometry::diff(float x1, float x2) const {
211 if (m_size[0] == 0)
212 return x1 - x2;
213 else
214 return wrapDiffF<float>(x1, x2, m_size[0]);
215}
216
217inline int WorldGeometry::diff(int x1, int x2) const {
218 if (m_size[0] == 0)

Callers 1

splitLineMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected