summaryrefslogtreecommitdiffstats
path: root/cc/geometry.h
blob: 5a0bf3d04e0b57022480c2c1b79263de59562561 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// Copyright 2010 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef CC_GEOMETRY_H_
#define CC_GEOMETRY_H_

#include "ui/gfx/rect.h"
#include "ui/gfx/rect_f.h"
#include "ui/gfx/vector2d.h"
#include "ui/gfx/vector2d_f.h"

namespace cc {

inline gfx::Point BottomRight(gfx::Rect rect) {
  return gfx::Point(rect.right(), rect.bottom());
}

inline gfx::PointF BottomRight(gfx::RectF rect) {
  return gfx::PointF(rect.right(), rect.bottom());
}

}  // namespace cc

#endif  // CC_GEOMETRY_H_