Index: ui/gfx/vector2d.h |
diff --git a/ui/gfx/vector2d.h b/ui/gfx/vector2d.h |
index e22a7512c39cb402f7165eb268fdf805bed69fe0..69f6b400ce3d44c3b15c9b5a7d5c500b2fe41f43 100644 |
--- a/ui/gfx/vector2d.h |
+++ b/ui/gfx/vector2d.h |
@@ -40,14 +40,14 @@ class UI_EXPORT Vector2d { |
void operator+=(const Vector2d& other) { Add(other); } |
void operator-=(const Vector2d& other) { Subtract(other); } |
- void ClampToMax(const Vector2d& max) { |
- x_ = x_ <= max.x_ ? x_ : max.x_; |
- y_ = y_ <= max.y_ ? y_ : max.y_; |
+ void SetToMin(const Vector2d& other) { |
+ x_ = x_ <= other.x_ ? x_ : other.x_; |
+ y_ = y_ <= other.y_ ? y_ : other.y_; |
} |
- void ClampToMin(const Vector2d& min) { |
- x_ = x_ >= min.x_ ? x_ : min.x_; |
- y_ = y_ >= min.y_ ? y_ : min.y_; |
+ void SetToMax(const Vector2d& other) { |
+ x_ = x_ >= other.x_ ? x_ : other.x_; |
+ y_ = y_ >= other.y_ ? y_ : other.y_; |
} |
// Gives the square of the diagonal length of the vector. Since this is |