File tree Expand file tree Collapse file tree 1 file changed +6
-10
lines changed Expand file tree Collapse file tree 1 file changed +6
-10
lines changed Original file line number Diff line number Diff line change @@ -59,21 +59,17 @@ struct TSize {
59
59
return {width - s.width , height - s.height };
60
60
}
61
61
62
- constexpr TSize Min (const TSize& s) const { return Intersection (s); }
63
-
64
- constexpr TSize Max (const TSize& s) const { return Union (s); }
65
-
66
- constexpr TSize Union (const TSize& o) const {
62
+ constexpr TSize Min (const TSize& o) const {
67
63
return {
68
- std::max (width, o.width ),
69
- std::max (height, o.height ),
64
+ std::min (width, o.width ),
65
+ std::min (height, o.height ),
70
66
};
71
67
}
72
68
73
- constexpr TSize Intersection (const TSize& o) const {
69
+ constexpr TSize Max (const TSize& o) const {
74
70
return {
75
- std::min (width, o.width ),
76
- std::min (height, o.height ),
71
+ std::max (width, o.width ),
72
+ std::max (height, o.height ),
77
73
};
78
74
}
79
75
You can’t perform that action at this time.
0 commit comments