Searched refs:ManhattanDistanceToPoint (Results 1 – 5 of 5) sorted by relevance
/external/libchrome/ui/gfx/geometry/ |
D | rect_unittest.cc | 872 TEST(RectTest, ManhattanDistanceToPoint) { in TEST() argument 874 EXPECT_EQ(0, i.ManhattanDistanceToPoint(Point(1, 2))); in TEST() 875 EXPECT_EQ(0, i.ManhattanDistanceToPoint(Point(4, 6))); in TEST() 876 EXPECT_EQ(0, i.ManhattanDistanceToPoint(Point(2, 4))); in TEST() 877 EXPECT_EQ(3, i.ManhattanDistanceToPoint(Point(0, 0))); in TEST() 878 EXPECT_EQ(2, i.ManhattanDistanceToPoint(Point(2, 0))); in TEST() 879 EXPECT_EQ(3, i.ManhattanDistanceToPoint(Point(5, 0))); in TEST() 880 EXPECT_EQ(1, i.ManhattanDistanceToPoint(Point(5, 4))); in TEST() 881 EXPECT_EQ(3, i.ManhattanDistanceToPoint(Point(5, 8))); in TEST() 882 EXPECT_EQ(2, i.ManhattanDistanceToPoint(Point(3, 8))); in TEST() [all …]
|
D | rect_f.h | 161 float ManhattanDistanceToPoint(const PointF& point) const;
|
D | rect_f.cc | 202 float RectF::ManhattanDistanceToPoint(const PointF& point) const { in ManhattanDistanceToPoint() function in gfx::RectF
|
D | rect.cc | 276 int Rect::ManhattanDistanceToPoint(const Point& point) const { in ManhattanDistanceToPoint() function in gfx::Rect
|
D | rect.h | 201 int ManhattanDistanceToPoint(const Point& point) const;
|