mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-24 06:51:17 +01:00
Remove the unused Rectangle::ClampLL
function
Also tweak the documentation of `ClampUL`, now that there's no accompanying `ClampLL`.
This commit is contained in:
parent
f412e2488c
commit
658a740955
@ -112,18 +112,12 @@ struct Rectangle
|
||||
|
||||
constexpr T GetWidth() const { return GetDistance(left, right); }
|
||||
constexpr T GetHeight() const { return GetDistance(top, bottom); }
|
||||
// If the rectangle is in a coordinate system with a lower-left origin, use
|
||||
// this Clamp.
|
||||
void ClampLL(T x1, T y1, T x2, T y2)
|
||||
{
|
||||
left = std::clamp(left, x1, x2);
|
||||
right = std::clamp(right, x1, x2);
|
||||
top = std::clamp(top, y2, y1);
|
||||
bottom = std::clamp(bottom, y2, y1);
|
||||
}
|
||||
|
||||
// If the rectangle is in a coordinate system with an upper-left origin,
|
||||
// use this Clamp.
|
||||
// Clamp this rectangle to the given rectangle, specified as coordinates in
|
||||
// a coordinate system with an upper-left origin.
|
||||
//
|
||||
// REQUIRES: x1 <= x2
|
||||
// REQUIRES: y1 <= y2
|
||||
void ClampUL(T x1, T y1, T x2, T y2)
|
||||
{
|
||||
left = std::clamp(left, x1, x2);
|
||||
|
Loading…
x
Reference in New Issue
Block a user