Searched refs:ManhattanInternalDistance (Results 1 – 5 of 5) sorted by relevance
/external/libchrome/ui/gfx/geometry/ |
D | rect_unittest.cc | 900 TEST(RectTest, ManhattanInternalDistance) { in TEST() argument 902 EXPECT_EQ(0, i.ManhattanInternalDistance(gfx::Rect(-1, 0, 2, 1))); in TEST() 903 EXPECT_EQ(1, i.ManhattanInternalDistance(gfx::Rect(400, 0, 1, 400))); in TEST() 904 EXPECT_EQ(2, i.ManhattanInternalDistance(gfx::Rect(-100, -100, 100, 100))); in TEST() 905 EXPECT_EQ(2, i.ManhattanInternalDistance(gfx::Rect(-101, 100, 100, 100))); in TEST() 906 EXPECT_EQ(4, i.ManhattanInternalDistance(gfx::Rect(-101, -101, 100, 100))); in TEST() 907 EXPECT_EQ(435, i.ManhattanInternalDistance(gfx::Rect(630, 603, 100, 100))); in TEST() 913 0.0f, f.ManhattanInternalDistance(gfx::RectF(-1.0f, 0.0f, 2.0f, 1.0f))); in TEST() 916 f.ManhattanInternalDistance(gfx::RectF(400.0f, 0.0f, 1.0f, 400.0f))); in TEST() 918 f.ManhattanInternalDistance( in TEST() [all …]
|
D | rect_f.h | 167 float ManhattanInternalDistance(const RectF& rect) const;
|
D | rect_f.cc | 211 float RectF::ManhattanInternalDistance(const RectF& rect) const { in ManhattanInternalDistance() function in gfx::RectF
|
D | rect.cc | 285 int Rect::ManhattanInternalDistance(const Rect& rect) const { in ManhattanInternalDistance() function in gfx::Rect
|
D | rect.h | 207 int ManhattanInternalDistance(const Rect& rect) const;
|