MCPcopy Create free account
hub / github.com/OpenFodder/openfodder / getCentre

Method getCentre

Source/Dimension.hpp:37–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35 int getHeight() const { return mHeight; }
36
37 cPosition getCentre() const { return { mWidth / 2, mHeight / 2 }; };
38
39 cDimension operator/(const cDimension& pDim) {
40 return cDimension(mWidth / pDim.mWidth, mHeight / pDim.mHeight);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected