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

Method equal

source/base/StarWorldGeometry.hpp:191–193  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

189}
190
191inline bool WorldGeometry::equal(Vec2I const& p1, Vec2I const& p2) const {
192 return index(p1) == index(p2);
193}
194
195inline unsigned WorldGeometry::index(int x) const {
196 return (unsigned)xwrap(x);

Callers 4

forEachEntityAtTileMethod · 0.45
findEntityAtTileMethod · 0.45
tileIsOccupiedMethod · 0.45
baseDamagePositionMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected