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

Method operator/

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

Source from the content-addressed store, hash-verified

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);
41 }
42
43 bool operator==(const cDimension& pRight) {
44 return mWidth == pRight.mWidth && mHeight == pRight.mHeight;

Callers

nothing calls this directly

Calls 1

cDimensionClass · 0.85

Tested by

no test coverage detected