24 lines
350 B
C++
24 lines
350 B
C++
#pragma once
|
|
|
|
class Size
|
|
{
|
|
using PointType = long long;
|
|
|
|
public:
|
|
Size(
|
|
PointType width = 0,
|
|
PointType height = 0
|
|
);
|
|
|
|
PointType width() const;
|
|
PointType height() const;
|
|
|
|
PointType& width();
|
|
PointType& height();
|
|
|
|
PointType area() const;
|
|
|
|
private:
|
|
PointType m_Width;
|
|
PointType m_Height;
|
|
}; |