| 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; |