| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef UI_GFX_BOX_F_H_ | 5 #ifndef UI_GFX_GEOMETRY_BOX_F_H_ |
| 6 #define UI_GFX_BOX_F_H_ | 6 #define UI_GFX_GEOMETRY_BOX_F_H_ |
| 7 | 7 |
| 8 #include "ui/gfx/point3_f.h" | 8 #include "ui/gfx/geometry/point3_f.h" |
| 9 #include "ui/gfx/vector3d_f.h" | 9 #include "ui/gfx/geometry/vector3d_f.h" |
| 10 | 10 |
| 11 namespace gfx { | 11 namespace gfx { |
| 12 | 12 |
| 13 // A 3d version of gfx::RectF, with the positive z-axis pointed towards | 13 // A 3d version of gfx::RectF, with the positive z-axis pointed towards |
| 14 // the camera. | 14 // the camera. |
| 15 class GFX_EXPORT BoxF { | 15 class GFX_EXPORT BoxF { |
| 16 public: | 16 public: |
| 17 BoxF() | 17 BoxF() |
| 18 : width_(0.f), | 18 : width_(0.f), |
| 19 height_(0.f), | 19 height_(0.f), |
| (...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 150 return BoxF(b.x() + v.x(), | 150 return BoxF(b.x() + v.x(), |
| 151 b.y() + v.y(), | 151 b.y() + v.y(), |
| 152 b.z() + v.z(), | 152 b.z() + v.z(), |
| 153 b.width(), | 153 b.width(), |
| 154 b.height(), | 154 b.height(), |
| 155 b.depth()); | 155 b.depth()); |
| 156 } | 156 } |
| 157 | 157 |
| 158 } // namespace gfx | 158 } // namespace gfx |
| 159 | 159 |
| 160 #endif // UI_GFX_BOX_F_H_ | 160 #endif // UI_GFX_GEOMETRY_BOX_F_H_ |
| OLD | NEW |