Cleanup: Use std::abs instead of abs.

This commit is contained in:
Jordan Woyak
2020-02-08 18:21:14 -06:00
parent a205ecb446
commit 4f47cccd9f
3 changed files with 5 additions and 5 deletions

View File

@ -70,8 +70,8 @@ struct Rectangle
return left == r.left && top == r.top && right == r.right && bottom == r.bottom;
}
T GetWidth() const { return abs(right - left); }
T GetHeight() const { return abs(bottom - top); }
T GetWidth() const { return std::abs(right - left); }
T GetHeight() const { return std::abs(bottom - top); }
// 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)