Index: ui/gfx/vector3d_f.h |
diff --git a/ui/gfx/vector3d_f.h b/ui/gfx/vector3d_f.h |
index bb93abdeaffb8d1e325123e65df121c27b1ea31f..17ad332f3aab68a66b887f4e093c0c3f25547e7f 100644 |
--- a/ui/gfx/vector3d_f.h |
+++ b/ui/gfx/vector3d_f.h |
@@ -44,16 +44,16 @@ class UI_EXPORT Vector3dF { |
void operator+=(const Vector3dF& other) { Add(other); } |
void operator-=(const Vector3dF& other) { Subtract(other); } |
- void ClampToMax(const Vector3dF& max) { |
- x_ = x_ <= max.x_ ? x_ : max.x_; |
- y_ = y_ <= max.y_ ? y_ : max.y_; |
- z_ = z_ <= max.z_ ? z_ : max.z_; |
+ void SetToMin(const Vector3dF& other) { |
+ x_ = x_ <= other.x_ ? x_ : other.x_; |
+ y_ = y_ <= other.y_ ? y_ : other.y_; |
+ z_ = z_ <= other.z_ ? z_ : other.z_; |
} |
- void ClampToMin(const Vector3dF& min) { |
- x_ = x_ >= min.x_ ? x_ : min.x_; |
- y_ = y_ >= min.y_ ? y_ : min.y_; |
- z_ = z_ >= min.z_ ? z_ : min.z_; |
+ void SetToMax(const Vector3dF& other) { |
+ x_ = x_ >= other.x_ ? x_ : other.x_; |
+ y_ = y_ >= other.y_ ? y_ : other.y_; |
+ z_ = z_ >= other.z_ ? z_ : other.z_; |
} |
// Gives the square of the diagonal length of the vector. |