blob: ca05e05a158cfa267dd751d163865476cc3f2b36 (
plain)
1
2
3
4
5
6
7
|
module;
module BasicPlane.Figures;
int area(const Rectangle& r) { return width(r) * height(r); }
int height(const Rectangle& r) { return r.ul.y - r.lr.y; }
int width(const Rectangle& r) { return r.lr.x - r.ul.x; }
|