Home
last modified time | relevance | path

Searched refs:ManhattanInternalDistance (Results 1 – 5 of 5) sorted by relevance

/external/libchrome/ui/gfx/geometry/
Drect_unittest.cc900 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 …]
Drect_f.h167 float ManhattanInternalDistance(const RectF& rect) const;
Drect_f.cc211 float RectF::ManhattanInternalDistance(const RectF& rect) const { in ManhattanInternalDistance() function in gfx::RectF
Drect.cc285 int Rect::ManhattanInternalDistance(const Rect& rect) const { in ManhattanInternalDistance() function in gfx::Rect
Drect.h207 int ManhattanInternalDistance(const Rect& rect) const;