MCPcopy Create free account
hub / github.com/chrxh/alien / getCorrectedDirection

Method getCorrectedDirection

source/EngineInterface/SpaceCalculator.cpp:56–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

54}
55
56RealVector2D SpaceCalculator::getCorrectedDirection(RealVector2D const& pos) const
57{
58 auto result = pos + RealVector2D{_worldSizeFloat.x / 2, _worldSizeFloat.y / 2};
59 correctPosition(result);
60 return result - RealVector2D{_worldSizeFloat.x / 2, _worldSizeFloat.y / 2};
61}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected