We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4417fa6 commit a63c047Copy full SHA for a63c047
impeller/geometry/size.h
@@ -59,21 +59,17 @@ struct TSize {
59
return {width - s.width, height - s.height};
60
}
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 {
+ constexpr TSize Min(const TSize& o) const {
67
return {
68
- std::max(width, o.width),
69
- std::max(height, o.height),
+ std::min(width, o.width),
+ std::min(height, o.height),
70
};
71
72
73
- constexpr TSize Intersection(const TSize& o) const {
+ constexpr TSize Max(const TSize& o) const {
74
75
- std::min(width, o.width),
76
- std::min(height, o.height),
+ std::max(width, o.width),
+ std::max(height, o.height),
77
78
79
0 commit comments