OLD | NEW |
| (Empty) |
1 // Copyright 2010 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef CC_GEOMETRY_H_ | |
6 #define CC_GEOMETRY_H_ | |
7 | |
8 #include "ui/gfx/rect.h" | |
9 #include "ui/gfx/rect_f.h" | |
10 #include "ui/gfx/vector2d.h" | |
11 #include "ui/gfx/vector2d_f.h" | |
12 | |
13 namespace cc { | |
14 | |
15 inline gfx::Point BottomRight(gfx::Rect rect) { | |
16 return gfx::Point(rect.right(), rect.bottom()); | |
17 } | |
18 | |
19 inline gfx::PointF BottomRight(gfx::RectF rect) { | |
20 return gfx::PointF(rect.right(), rect.bottom()); | |
21 } | |
22 | |
23 } // namespace cc | |
24 | |
25 #endif // CC_GEOMETRY_H_ | |
OLD | NEW |